Open mirekphd opened 5 days ago
One workaround I found is uninstalling the package that pins chromadb to an older version and upgrading chromadb to latest, thus:
$ pip uninstall langchain-chroma
Found existing installation: langchain-chroma 0.1.4
Uninstalling langchain-chroma-0.1.4:
Would remove:
/opt/conda/lib/python3.11/site-packages/langchain_chroma-0.1.4.dist-info/*
/opt/conda/lib/python3.11/site-packages/langchain_chroma/*
Proceed (Y/n)? y
Successfully uninstalled langchain-chroma-0.1.4
$ pip install chromadb==0.5.5
$ pip show chromadb
Name: chromadb
Version: 0.5.5
Summary: Chroma.
Home-page: https://github.com/chroma-core/chroma
Author:
Author-email: Jeff Huber <jeff@trychroma.com>, Anton Troynikov <anton@trychroma.com>
License:
Location: /opt/conda/lib/python3.11/site-packages
[..]
$ python -c "import chromadb; print(chromadb.__version__)"
0.5.5
@mirekphd making sure i have this right - latest chroma works ok? we would consider that a "valid workaround" if so...
On its own and in general: if one can upgrade chromadb to its latest version - it is not even a problem that your users would encounter, but the last 2 versions including the latest i.e. the working one are for some reason blocklisted by LangChain... so effectively you cannot upgrade it to latest (if users want to use chromadb through LangChain).
@jeffchuber, this is how LC have defined their version string in 0.1.4
of the langchain-chroma
package:
It might be so that 0.5.4 and 0.5.5 break backward compatibility.
What happened?
Users tried to import
chromadb
in our AI containers (latestml/ml-gpu-py311-cuda118-hf:TAG), but the import failed withTypeError
(see below for stack trace).Versions
Chroma 0.5.3 Python 3.11.10 Ubuntu 22.04
Note: the reason why we cannot upgrade chromadb from 0.5.3 to either 0.5.4 or 0.5.5 is that both of these newer versions are blocklisted by another package as seen by this error message displayed by
pip
during such attempt:Relevant log output
Local run (inside the above containers):