phidatahq / phidata

Build AI Assistants with memory, knowledge and tools.
https://docs.phidata.com
Mozilla Public License 2.0
11.24k stars 1.67k forks source link

Add ChromaDB knowledge base #60

Closed ashpreetbedi closed 2 months ago

hoxsec commented 5 months ago

Hi guys,

Tried implementing this feature, however I'm getting stuck at the following mypy test:

error: Function "chromadb.Client" is not valid as a type [valid-type]

@property
    def client(self) -> chromadb.Client:
        if self._client is None:
            return chromadb.Client(
                namespace=self.namespace,
                hostname=self.hostname,
                port=self.port,
                headers=self.headers,
                ssl=self.ssl,
            )
        return self._client
ysolanky commented 5 months ago

@hoxsec Thanks for contributing! Why don't you create a PR so that I can take a look at this

hoxsec commented 5 months ago

Thanks @ysolanky, PR created. https://github.com/phidatahq/phidata/pull/196

ysolanky commented 2 months ago

ChromaDb was released as a part of v2.4.27 :)