You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Testing a tangential issue, I've run into a reproducible HNSW index error:
...
File "/Users/tazarov/experiments/chroma/chroma-taz-21/chromadb/segment/impl/vector/local_hnsw.py", line 157, in query_vectors
result_labels, distances = self._index.knn_query(
^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Cannot return the results in a contigious 2D array. Probably ef or M is too small
Traceback (most recent call last):
File "/home/ubuntu/hnsw_contiguous.py", line 22, in<module>main()
File "/home/ubuntu/hnsw_contiguous.py", line 17, in main
collection.query(query_embeddings=[data[i][np.random.choice(data[i].shape[0])].tolist()], n_results=10)
File "/home/ubuntu/venv/lib/python3.12/site-packages/chromadb/api/models/Collection.py", line 195, in query
query_results = self._client._query(
^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/venv/lib/python3.12/site-packages/chromadb/telemetry/opentelemetry/__init__.py", line 146, in wrapper
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/venv/lib/python3.12/site-packages/chromadb/rate_limiting/__init__.py", line 47, in wrapper
return f(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/venv/lib/python3.12/site-packages/chromadb/api/segment.py", line 738, in _query
results = vector_reader.query_vectors(query)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/venv/lib/python3.12/site-packages/chromadb/telemetry/opentelemetry/__init__.py", line 146, in wrapper
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/venv/lib/python3.12/site-packages/chromadb/segment/impl/vector/local_persistent_hnsw.py", line 372, in query_vectors
hnsw_results = super().query_vectors(hnsw_query)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/venv/lib/python3.12/site-packages/chromadb/telemetry/opentelemetry/__init__.py", line 146, in wrapper
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/venv/lib/python3.12/site-packages/chromadb/segment/impl/vector/local_hnsw.py", line 156, in query_vectors
result_labels, distances = self._index.knn_query(
^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Cannot return the results in a contigious 2D array. Probably ef or M is too small
The text was updated successfully, but these errors were encountered:
What happened?
Testing a tangential issue, I've run into a reproducible HNSW index error:
The code to reproduce this:
The issue can be reproduced with both PersistentClient and HttpClient with server in Docker container.
Versions
Chroma 0.5.3/latest main, hnswlib 0.7.3/0.7.5
Tested HW configs:
Relevant log output
The text was updated successfully, but these errors were encountered: