Open
Description
@yurymalkov : I have a use case where i want to build ann index and also support filtering operation based on some tags .
The tags do not influence the distance or graph structure (during building index) , but during search operation we want to filter elements based on membership or filtering by tags associated.
Two approaches i am thinking of :
- It seems like search operation can be similar as it is used to ignore deleted items.
- Add items with some added bit vector that indicates tags
Build index with a custom distance function , where during indexing the usual distance metric is used (ignoring the bit vector), but while searching the distance function uses the added bit vector to decide eligibility , if eligibility == true return the original distance otherwise return some large distance (max float) .
Do you observe any issues i.e any scenario in eligible items may get returned as topK ?
Any other approaches to support such filtering ?
Metadata
Metadata
Assignees
Labels
No labels