Skip to content
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

MB-64883: Adapt interface change for VectorIndex #302

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

abhinavdangeti
Copy link
Member

+ Requires: blevesearch/scorch_segment_api#50
+ Change signature of SearchWithFilter to minimize work
  and take advantage of roaring bitmap operations.
+ Change cached signature of docVecIDMap for easier
  usability.
+ More TODOs
// Ordering the retrieved centroid IDs by increasing order
// of distance i.e. decreasing order of proximity to query vector.
closestCentroidIDs, centroidDistances, _ :=
vecIndex.ObtainClustersWithDistancesFromIVFIndex(qVector, eligibleCentroidIDs)
Copy link
Member Author

Choose a reason for hiding this comment

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

@metonymic-smokey I'm hoping profiling will reveal how much of time/CPU is distributed among ..

  • ObtainClustersWithDistancesFromIVFIndex
  • SearchClustersFromIVFIndex

vecIDsUint32 = append(vecIDsUint32, uint32(vecID))
}
centroidVecIDMap[centroidID].AddMany(vecIDsUint32)
// TODO: WHY NOT CACHE THIS?
Copy link
Member Author

Choose a reason for hiding this comment

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

Need to see about this.

rv := &VecPostingsList{
except: nil, // todo: handle the except bitmap within postings iterator.
except: nil, // TODO: handle the except bitmap within postings iterator.
Copy link
Member Author

Choose a reason for hiding this comment

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

What was this TODO about?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant