hnswlib icon indicating copy to clipboard operation
hnswlib copied to clipboard

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

Open AmanKishore opened this issue 1 year ago • 3 comments

Getting this error with the following code:

vectordb = Chroma.from_documents(results, embeddings)
relevant_docs = vectordb.similarity_search(query=item.question, k=min(len(vectordb.get()["ids"]), num_search_results))

Any ideas how to fix?

AmanKishore avatar May 22 '23 20:05 AmanKishore