Skip to content

creating ann index with membership bits  #366

Open
@prateekpatelsc

Description

@prateekpatelsc

@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 :

  1. It seems like search operation can be similar as it is used to ignore deleted items.
  2. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions