hnswlib
hnswlib copied to clipboard
RuntimeError: Cannot return the results in a contigious 2D array. Probably ef or M is too small
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?