Open startakovsky opened 3 days ago
from llama_index.vectorstores.chroma import ChromaVectorStore still have same issue
AttributeError: `np.floatwas removed in the NumPy 2.0 release. Use
np.float64` instead.
Traceback:
File "/usr/local/lib/python3.10/dist-packages/streamlit/runtime/scriptrunner/script_runner.py", line 589, in _run_script
exec(code, module.dict)
File "/app/streamlit_app.py", line 10, in
llama-index-vector-stores-chroma => 0.1.9
chromadb = 0.5.3
Rollback numpy to 1.26.4 work for me.
chromadb (0.4.24)
conda install numpy=1.26.4
@startakovsky, we've made a deliberate choice of pinning the version of numpy we use to <2.0 in the latest Chroma release (0.5.3).
@Prashantsaini25, we'll have a look at llama-index-vector-stores-chroma
and we'll bump Chroma version to 0.5.3 there too. I can see that even LlamaIndex have not yet adopted numpy2 https://github.com/run-llama/llama_index/blob/663e1700f58c2414e549b9f5005abe87a275dd77/llama-index-core/pyproject.toml#L56
What happened?
This issue occurs when
import chromadb
and having NumPy 2.0 installed.Related issue: https://github.com/chroma-core/chroma/issues/2407
Versions
Chromadb 0.5.2
Relevant log output
No response