Skip to content

Commit

Permalink
MB-62230 - Pre-Filtering support
Browse files Browse the repository at this point in the history
  • Loading branch information
metonymic-smokey committed Aug 12, 2024
1 parent 51efb62 commit ac9e97e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion segment_vector.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ type VecPostingsIterator interface {

type VectorIndex interface {
// @params: Search params for backing vector index (like IVF, HNSW, etc.)
Search(qVector []float32, k int64, params json.RawMessage) (VecPostingsList, error)
// @requiresFiltering: whether the kNN queries require any filtering.
Search(qVector []float32, k int64, requiresFiltering bool,
eligibleDocIDs *roaring.Bitmap, params json.RawMessage) (VecPostingsList, error)
Close()
Size() uint64
}
Expand Down

0 comments on commit ac9e97e

Please sign in to comment.