frdel / agent-zero

Agent Zero AI framework
Other
4.76k stars 1.04k forks source link

Error with chromadb, model_fields #84

Open jakeshs12 opened 2 months ago

jakeshs12 commented 2 months ago

Prompt:

Agent 0: Using tool 'knowledge_tool': Question: What are the latest updates or known issues with the chromadb library version 0.4.2?

Initializing VectorDB...

{ "system_error": "Traceback (most recent call last): File "C:\Users\jakes\anaconda3\Lib\site-packages\chromadb\db\mixins\sysdb.py", line 257, in create_collection ParameterValue(self.uuid_to_db(collection["id"])),


  File "C:\Users\jakes\anaconda3\Lib\site-packages\chromadb\types.py", line 95, in __getitem__
    if key in self.model_fields:
              ^^^^^^^^^^^^^^^^^
AttributeError: 'Collection' object has no attribute 'model_fields'

AttributeError: 'Collection' object has no attribute 'model_fields'"
}

   Running into this error when agent tries to use the knowledge_tool and, I'm assuming, failing to access the web. Would love to know if I am using the right library versions.

Name: langchain-chroma
Version: 0.1.2
Name: chromadb
Version: 0.4.2
Python 3.11.2

   Beginner programmer but love agent zero so far, would love to give it web capability.
jpetro416 commented 2 months ago

I'm also seeing this