-
Notifications
You must be signed in to change notification settings - Fork 229
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
Porting multi-filter OR search support from the DLVS branch #546
base: main
Are you sure you want to change the base?
Conversation
include/neighbor.h
Outdated
@@ -109,6 +109,11 @@ class NeighborPriorityQueue | |||
return _cur < _size; | |||
} | |||
|
|||
void sort() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can remove this
src/pq_flash_index.cpp
Outdated
const std::vector<LabelT>& label_ids = filter_labels; //avoid renaming. | ||
std::vector<LabelT> lbl_vec; | ||
|
||
retset.sort(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cehck why sort is required.
for (const auto &lbl : label_ids) | ||
{ // assuming that number of OR labels is | ||
// less than max frontier size allowed | ||
uint32_t lbl_marker = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check if beam width is sufficient to accommodate filters.
This PR allows users to specify multiple filter labels during search. Search will return points that match any one of the filter labels.