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

feat: efficient knn filtering support for OpenSearch #1134

Merged
merged 4 commits into from
Oct 29, 2024

Conversation

tstadel
Copy link
Member

@tstadel tstadel commented Oct 12, 2024

Related Issues

  • for using efficient knn filtering in OpenSearch the location to place filters in a query is different than for ordinary filters

Proposed Changes:

How did you test it?

  • added tests

Notes for the reviewer

Checklist

@tstadel tstadel requested a review from a team as a code owner October 12, 2024 08:37
@tstadel tstadel requested review from silvanocerza and removed request for a team October 12, 2024 08:37
@github-actions github-actions bot added integration:opensearch type:documentation Improvements or additions to documentation labels Oct 12, 2024
@tstadel tstadel changed the title feat: efficient filtering support for OpenSearch feat: efficient knn filtering support for OpenSearch Oct 12, 2024

filters = {"field": "meta_field", "operator": "==", "value": "custom_value"}
# we set top_k=3, to make the test pass as we are not sure whether efficient filtering is supported for nmslib
# TODO: remove top_k=3, when efficient filtering is supported for nmslib
Copy link
Contributor

Choose a reason for hiding this comment

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

It doesn't seem necessary for this test already, I tried running it locally without setting top_k and it passed.

@tstadel tstadel requested a review from silvanocerza October 29, 2024 10:13
@tstadel tstadel merged commit 701a790 into main Oct 29, 2024
8 checks passed
@tstadel tstadel deleted the feat/opensearch/efficient_filtering branch October 29, 2024 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration:opensearch type:documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants