Skip to content

Commit 629cd76

Browse files
MB-66396: Augment VectorIndex interface
Requires: blevesearch/bleve_index_api#71
1 parent 67864c7 commit 629cd76

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

go.mod

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

55
require (
66
github.com/RoaringBitmap/roaring/v2 v2.4.5
7-
github.com/blevesearch/bleve_index_api v1.2.9
7+
github.com/blevesearch/bleve_index_api v1.2.10-0.20250818181143-42826d84beea
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.4.5 h1:uGrrMreGjvAtTBobc0g5IrW1D5ldxDQYe2
22
github.com/RoaringBitmap/roaring/v2 v2.4.5/go.mod h1:FiJcsfkGje/nZBZgCu0ZxCPOKD/hVXDS2dXi7/eUFE0=
33
github.com/bits-and-blooms/bitset v1.12.0 h1:U/q1fAF7xXRhFCrhROzIfffYnu+dlS38vCZtmFVPHmA=
44
github.com/bits-and-blooms/bitset v1.12.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8=
5-
github.com/blevesearch/bleve_index_api v1.2.9 h1:WqD3kvYwnlYLv8sTdH+AF7n/L4v969Cek68+wZnYj4Q=
6-
github.com/blevesearch/bleve_index_api v1.2.9/go.mod h1:rKQDl4u51uwafZxFrPD1R7xFOwKnzZW7s/LSeK4lgo0=
5+
github.com/blevesearch/bleve_index_api v1.2.10-0.20250818181143-42826d84beea h1:CyyHwFaoPBkhmUX3+Y+NV6F2PuYg5nH/ptgDlrvzFvc=
6+
github.com/blevesearch/bleve_index_api v1.2.10-0.20250818181143-42826d84beea/go.mod h1:rKQDl4u51uwafZxFrPD1R7xFOwKnzZW7s/LSeK4lgo0=
77
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
88
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
99
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=

segment_vector.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ package segment
2020
import (
2121
"encoding/json"
2222

23+
index "github.com/blevesearch/bleve_index_api"
2324
"github.com/RoaringBitmap/roaring/v2"
2425
)
2526

@@ -64,6 +65,8 @@ type VectorIndex interface {
6465
params json.RawMessage) (VecPostingsList, error)
6566
Close()
6667
Size() uint64
68+
69+
ObtainTopKCentroidCardinalitiesFromIVFIndex(limit int) ([]index.CentroidCardinality, error)
6770
}
6871

6972
type VectorSegment interface {

0 commit comments

Comments
 (0)