phidata
phidata copied to clipboard
chromadb implementation w.i.p
new file: phi/vectordb/chromadb/chromadb.py
can we collaborate on this? @hoxsec
can we collaborate on this? @hoxsec
Ofcourse, go ahead.
can you share me information on what you are working on actually?
Problem Description
I encountered an error related to type hinting with the chromadb.Client
in a property decorator. The error message was:
error: Function "chromadb.Client" is not valid as a type [valid-type]
This issue prevented the mypy unit tests from passing, as the type hint was not recognized properly.
Do you have a solution?
that's because you are returning the chromadb.Client()
, instead create a new type for the chromadb.Client()
.
chromaClient = Type[chromaeb.Client()]
this should work. @hoxsec
Thanks for this @Hk669 and @hoxsec, happy to review when ready :)