Skip to content

Commit 4104294

Browse files
MB-62182: Interface for fetching the centroid index (#72)
Co-authored-by: Abhinav Dangeti <abhinav@couchbase.com>
1 parent 76b1413 commit 4104294

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.24.0
44

55
require (
66
github.com/RoaringBitmap/roaring/v2 v2.14.5
7-
github.com/blevesearch/bleve_index_api v1.3.4
7+
github.com/blevesearch/bleve_index_api v1.3.5
88
)
99

1010
require (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ github.com/RoaringBitmap/roaring/v2 v2.14.5 h1:ckd0o545JqDPeVJDgeFoaM21eBixUnlWf
22
github.com/RoaringBitmap/roaring/v2 v2.14.5/go.mod h1:eq4wdNXxtJIS/oikeCzdX1rBzek7ANzbth041hrU8Q4=
33
github.com/bits-and-blooms/bitset v1.24.2 h1:M7/NzVbsytmtfHbumG+K2bremQPMJuqv1JD3vOaFxp0=
44
github.com/bits-and-blooms/bitset v1.24.2/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8=
5-
github.com/blevesearch/bleve_index_api v1.3.4 h1:hZezxSRGFX4+/wiEn/a9xxBIo4BAJvqVfmZYoVzmjas=
6-
github.com/blevesearch/bleve_index_api v1.3.4/go.mod h1:xvd48t5XMeeioWQ5/jZvgLrV98flT2rdvEJ3l/ki4Ko=
5+
github.com/blevesearch/bleve_index_api v1.3.5 h1:Sbfavf0iBRoiYLM5lKCPIrSSYeQXReoRmk53pZnTKYk=
6+
github.com/blevesearch/bleve_index_api v1.3.5/go.mod h1:xvd48t5XMeeioWQ5/jZvgLrV98flT2rdvEJ3l/ki4Ko=
77
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
88
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
99
github.com/mschoch/smat v0.2.0 h1:8imxQsjDm8yFEAVBe7azKmKSgzSkZXDuKkSq9374khM=

segment_vector.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ type VectorIndex interface {
7676
ObtainKCentroidCardinalitiesFromIVFIndex(limit int, descending bool) ([]index.CentroidCardinality, error)
7777
}
7878

79+
type TrainedSegment interface {
80+
Segment
81+
GetCoarseQuantizer(field string) (interface{}, error)
82+
}
83+
7984
type VectorSegment interface {
8085
Segment
8186
InterpretVectorIndex(field string, except *roaring.Bitmap) (VectorIndex, error)

0 commit comments

Comments
 (0)