Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions segment_vector.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (

"github.com/RoaringBitmap/roaring/v2"
index "github.com/blevesearch/bleve_index_api"
"github.com/blevesearch/go-faiss"
)

type VecPostingsList interface {
Expand Down Expand Up @@ -76,6 +77,12 @@ type VectorIndex interface {
ObtainKCentroidCardinalitiesFromIVFIndex(limit int, descending bool) ([]index.CentroidCardinality, error)
}

// refactor this?
type CentroidIndexSegment interface {
Segment
GetCoarseQuantizer(field string) (*faiss.IndexImpl, error)
}

type VectorSegment interface {
Segment
InterpretVectorIndex(field string, except *roaring.Bitmap) (VectorIndex, error)
Expand Down
Loading