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

community[patch]: Allow must_not filter in Elasticsearch VectorStore #4664

Conversation

LaurensTsestigh
Copy link
Contributor

For our project we needed to exclude some ids of certain entities when searching the VectorStore.
As the current implementation doesn't support the must_not filter yet, I've added it as an "exclude" operator to be flexible and populate the must_not filter accordingly.

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Mar 7, 2024
Copy link

vercel bot commented Mar 7, 2024

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

Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 12, 2024 9:00am
langchainjs-docs ✅ Ready (Inspect) Visit Preview Mar 12, 2024 9:00am

@dosubot dosubot bot added the auto:improvement Medium size change to existing code to handle new use-cases label Mar 7, 2024
@jacoblee93 jacoblee93 changed the title Allow must_not filter in Elasticsearch VectorStore community[patch]: Allow must_not filter in Elasticsearch VectorStore Mar 9, 2024
@jacoblee93
Copy link
Collaborator

Hey @LaurensTsestigh, I can't fix lint - can you update?

@LaurensTsestigh
Copy link
Contributor Author

LaurensTsestigh commented Mar 12, 2024

Hey @LaurensTsestigh, I can't fix lint - can you update?

I think this should be fine now!

Copy link

@joemcelroy joemcelroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jacoblee93 jacoblee93 merged commit 7e000e3 into langchain-ai:main Mar 12, 2024
17 checks passed
@jacoblee93
Copy link
Collaborator

Thank you both!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:improvement Medium size change to existing code to handle new use-cases lgtm PRs that are ready to be merged as-is size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants