Skip to content

Commit

Permalink
MB-64360 - Guardrail fix for missing vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
metonymic-smokey committed Dec 2, 2024
2 parents 85db800 + c85f4c5 commit d9a3a32
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions faiss_vector_posting.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,10 @@ func (sb *SegmentBase) InterpretVectorIndex(field string, requiresFiltering bool
vectorIDsToInclude = append(vectorIDsToInclude, docVecIDMap[uint32(id)]...)
}

if len(vectorIDsToInclude) == 0 {
return rv, nil
}

// Retrieve the mapping of centroid IDs to vectors within
// the cluster.
clusterAssignment, _ := vecIndex.ObtainClusterToVecIDsFromIVFIndex()
Expand Down

0 comments on commit d9a3a32

Please sign in to comment.