Skip to content

support for similarity threshold in VectorStoreChatMemoryAdvisor #3341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

scionaltera
Copy link
Contributor

This advisor did not have support for setting the similarity threshold, so it defaulted to returning every document regardless of similarity. In a conversation where the user has changed to a different topic the result was returning a bunch of documents with no relevance to the user's latest input.

I experimented with setting a value greater than 0 and liked the results because it would begin to include results more relevant to the conversation. I thought it would be nice to contribute the change back.

I left the default at 0 so as not to change the earlier behavior.

@sobychacko
Copy link
Contributor

Can you follow the DCO guidelines outlined here and resubmit the PR? https://spring.io/blog/2025/01/06/hello-dco-goodbye-cla-simplifying-contributions-to-spring. Thanks!

@scionaltera scionaltera force-pushed the add-vector-store-similarity branch from 2fdf065 to c2e65ff Compare June 5, 2025 20:20
@scionaltera
Copy link
Contributor Author

Closing and resubmitting this to comply with new DCO policy.

@scionaltera scionaltera closed this Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants