Skip to content
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

docs: Update Milvus documentation to correctly show how to filter in similarity_search #27723

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

MartinHex
Copy link
Contributor

Description/Issue:

I had problems filtering when setting up a local Milvus db and noticed that the filter option in the similarity_search and similarity_search_with_score appeared to do nothing. Instead, the expr option should be used.

The expr option is correctly used in the retriever example further down in the documentation.

The expr option seems to be correctly passed on, for example here

Solution:

Update the documentation for the functions mentioned to show intended behavior.

The filter option for `similarity_search` and `similarity_search_with_score` seems to not have been implemented as presented in the documentation.
Commit changes the `filter` option to use `expr` in documentation since this appears to have the intended behavior.
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Oct 29, 2024
Copy link

vercel bot commented Oct 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchain ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 30, 2024 2:15pm

@dosubot dosubot bot added the 🤖:docs Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder label Oct 29, 2024
@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Oct 30, 2024
@ccurme ccurme enabled auto-merge (squash) October 30, 2024 14:06
@ccurme ccurme merged commit 8a5807a into langchain-ai:master Oct 30, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:docs Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder lgtm PR looks good. Use to confirm that a PR is ready for merging. size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants