Skip to content

Commit d94f04e

Browse files
committed
fastmerge: draft apis
1 parent 76b1413 commit d94f04e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

segment_vector.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222

2323
"github.com/RoaringBitmap/roaring/v2"
2424
index "github.com/blevesearch/bleve_index_api"
25+
"github.com/blevesearch/go-faiss"
2526
)
2627

2728
type VecPostingsList interface {
@@ -76,6 +77,12 @@ type VectorIndex interface {
7677
ObtainKCentroidCardinalitiesFromIVFIndex(limit int, descending bool) ([]index.CentroidCardinality, error)
7778
}
7879

80+
// refactor this?
81+
type CentroidIndexSegment interface {
82+
Segment
83+
GetCoarseQuantizer(field string) (*faiss.IndexImpl, error)
84+
}
85+
7986
type VectorSegment interface {
8087
Segment
8188
InterpretVectorIndex(field string, except *roaring.Bitmap) (VectorIndex, error)

0 commit comments

Comments
 (0)