-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MB-62230 - Optimizing cluster selection in pre-filtered kNN (#261)
Modifies the pre-filtering kNN path for IVF indexes to factor in the distribution of filtered hits in the index. 1. Filter the clusters which have at least one filter hit. 2. Rank the filtered clusters in decreasing order of proximity. 3. Pick either the closest 'nprobe' clusters or as many as needed to satisfy at least K hits, whichever comes first. 4. Search the selected clusters for the k nearest neighbours from among the filtered hits. There is no change in the pre-filtered search path for Flat indexes. --------- Co-authored-by: Abhinav Dangeti <[email protected]>
- Loading branch information
1 parent
e148470
commit f2ee767
Showing
3 changed files
with
86 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters