-
Notifications
You must be signed in to change notification settings - Fork 14
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
base: master
Are you sure you want to change the base?
Conversation
abhinavdangeti
commented
Feb 5, 2025
- Requires: MB-64883: Change signature of VectorIndex's SearchWithFilter 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
+ 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) |
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.
@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? |
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.
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. |
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.
What was this TODO about?