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

MB-62230 - Avoiding unnecessary computations for un-filtered kNN. #2076

Merged
merged 5 commits into from
Sep 19, 2024

Conversation

metonymic-smokey
Copy link
Member

@metonymic-smokey metonymic-smokey commented Sep 19, 2024

Currently, there are a bunch of additional computations done on every kNN query that are necessary only for pre-filtered kNN.
This PR adds checks to perform these only when at least one kNN query, out of one or more in the search request, is a filtered kNN query.

Also added some commentary.

@abhinavdangeti
Copy link
Member

@metonymic-smokey Let's also add some unit test coverage for pre filtering here, seperately.

@abhinavdangeti abhinavdangeti merged commit ea7f589 into master Sep 19, 2024
9 checks passed
@abhinavdangeti abhinavdangeti deleted the pre-filter-perf branch September 19, 2024 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants