private-gpt icon indicating copy to clipboard operation
private-gpt copied to clipboard

Error: Cannot return the results in a contigious 2D array. Probably ef or M is too small

Open GeospatialPython opened this issue 1 year ago • 0 comments

The ingest went fine. When I tried a simple query I got the following:

File "D:\Dropbox\code\PrivateGPT\privateGPT\privateGPT.py", line 48, in main res = qa(query) File "C:\Users\JoelLawhead\anaconda3\envs\privategpt\lib\site-packages\langchain\chains\base.py", line 140, in call raise e File "C:\Users\JoelLawhead\anaconda3\envs\privategpt\lib\site-packages\langchain\chains\base.py", line 134, in call self._call(inputs, run_manager=run_manager) File "C:\Users\JoelLawhead\anaconda3\envs\privategpt\lib\site-packages\langchain\chains\retrieval_qa\base.py", line 119, in _call docs = self._get_docs(question) File "C:\Users\JoelLawhead\anaconda3\envs\privategpt\lib\site-packages\langchain\chains\retrieval_qa\base.py", line 181, in _get_docs return self.retriever.get_relevant_documents(question) File "C:\Users\JoelLawhead\anaconda3\envs\privategpt\lib\site-packages\langchain\vectorstores\base.py", line 377, in get_relevant_documents docs = self.vectorstore.similarity_search(query, **self.search_kwargs) File "C:\Users\JoelLawhead\anaconda3\envs\privategpt\lib\site-packages\langchain\vectorstores\chroma.py", line 182, in similarity_search docs_and_scores = self.similarity_search_with_score(query, k, filter=filter) File "C:\Users\JoelLawhead\anaconda3\envs\privategpt\lib\site-packages\langchain\vectorstores\chroma.py", line 229, in similarity_search_with_score results = self.__query_collection( File "C:\Users\JoelLawhead\anaconda3\envs\privategpt\lib\site-packages\langchain\utils.py", line 52, in wrapper return func(*args, **kwargs) File "C:\Users\JoelLawhead\anaconda3\envs\privategpt\lib\site-packages\langchain\vectorstores\chroma.py", line 121, in __query_collection return self._collection.query( File "C:\Users\JoelLawhead\anaconda3\envs\privategpt\lib\site-packages\chromadb\api\models\Collection.py", line 227, in query return self._client._query( File "C:\Users\JoelLawhead\anaconda3\envs\privategpt\lib\site-packages\chromadb\api\local.py", line 437, in _query uuids, distances = self._db.get_nearest_neighbors( File "C:\Users\JoelLawhead\anaconda3\envs\privategpt\lib\site-packages\chromadb\db\clickhouse.py", line 585, in get_nearest_neighbors uuids, distances = index.get_nearest_neighbors(embeddings, n_results, ids) File "C:\Users\JoelLawhead\anaconda3\envs\privategpt\lib\site-packages\chromadb\db\index\hnswlib.py", line 267, in get_nearest_neighbors database_labels, distances = self._index.knn_query( RuntimeError: Cannot return the results in a contigious 2D array. Probably ef or M is too small

GeospatialPython avatar Jun 06 '23 20:06 GeospatialPython