Skip to content

Commit

Permalink
MB-62230 - Pre-Filtering Support for kNN (#56)
Browse files Browse the repository at this point in the history
Adds VectorReaderWithFilter to include pre-filtering related params like documents eligible for kNN based on the filter query.
  • Loading branch information
metonymic-smokey authored Sep 9, 2024
1 parent afedbd2 commit 4a202f7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions vector_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ type VectorReader interface {
}

type VectorIndexReader interface {
VectorReader(ctx context.Context, vector []float32, field string, k int64, searchParams json.RawMessage) (
VectorReader, error)
VectorReader(ctx context.Context, vector []float32, field string, k int64,
searchParams json.RawMessage) (VectorReader, error)

VectorReaderWithFilter(ctx context.Context, vector []float32, field string, k int64,
searchParams json.RawMessage, filterIDs []IndexInternalID) (VectorReader, error)
}

type VectorDoc struct {
Expand Down

0 comments on commit 4a202f7

Please sign in to comment.