Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Support unlimited KNN search #43

Merged
merged 3 commits into from
Aug 30, 2023
Merged

Support unlimited KNN search #43

merged 3 commits into from
Aug 30, 2023

Conversation

knizhnik
Copy link
Contributor

Number of results returned HNSW search is limited by K=efSearch parameter.
But if query need to perform extra filtering of the results, then efSearch results may be not enough.
This PR repeats search with doubled efSearch parameter.

Copy link

@save-buffer save-buffer left a comment

Choose a reason for hiding this comment

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

I think looks good besides a few typos. Just to understand correctly: you are making it so that if we call gettuple many times, and we've run out of results, we'll re-search the index, returning more and more results each time? Is there a guarantee that searching with a larger ef_search will return all the same records, plus more?

Konstantin Knizhnik and others added 3 commits August 28, 2023 22:09
Co-authored-by: Sasha Krassovsky <[email protected]>
Co-authored-by: Sasha Krassovsky <[email protected]>
@knizhnik knizhnik merged commit 9fc4878 into main Aug 30, 2023
@knizhnik knizhnik deleted the unlimited_knn branch August 30, 2023 19:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants