Skip to content

Commit

Permalink
account for nested vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
metonymic-smokey committed Sep 9, 2024
1 parent 85bc13f commit 1eb5f18
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions faiss_vector_posting.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,10 @@ func (sb *SegmentBase) InterpretVectorIndex(field string, requiresFiltering bool

eligibleVecIDsBitmap := roaring.NewBitmap()
for _, eligibleDocID := range eligibleDocIDs {
vecID := docVecIDMap[uint32(eligibleDocID)]
eligibleVecIDsBitmap.Add(uint32(vecID))
vecIDs := docVecIDMap[uint32(eligibleDocID)]
for _, vecID := range vecIDs {
eligibleVecIDsBitmap.Add(uint32(vecID))
}
}
eligibleCentroidIDs := make([]int64, 0)
deleted := 0
Expand Down

0 comments on commit 1eb5f18

Please sign in to comment.