ChromaDB Similarity Search Not Applying to Entire Collection #1108
Unanswered
zelhaddioui
asked this question in
Q&A
Replies: 1 comment
-
In the similarity search method, it returns a document object created by the Spring AI team. This object only tracks content, metadata, and embedding. If you want to return all the data in the domain model, you need to add additional variables inside the metadata to retrieve those values during the similarity search. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am encountering an issue with the ChromaVectorStore implementation in Spring AI, similar to a problem I faced with Elasticsearch. When performing a similarity search, it seems that the search is not applied to the entire collection. As a result, only a subset of the expected results is returned.
Here is the configuration setup I am using:
When I perform a similarity search like this:
List similarDocuments = vectorStore.similaritySearch(request);
The search does not cover the entire collection, leading to incomplete results.
Beta Was this translation helpful? Give feedback.
All reactions