phidata icon indicating copy to clipboard operation
phidata copied to clipboard

Add ChromaDB knowledge base

Open ashpreetbedi opened this issue 1 year ago • 3 comments

ashpreetbedi avatar Jan 26 '24 13:01 ashpreetbedi

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

hoxsec avatar Apr 27 '24 23:04 hoxsec

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

ysolanky avatar Apr 27 '24 23:04 ysolanky

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

hoxsec avatar Apr 28 '24 08:04 hoxsec

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

ysolanky avatar Jul 22 '24 15:07 ysolanky