Skip to content

Commit

Permalink
MB-61889: support search with params (#44)
Browse files Browse the repository at this point in the history
* MB-61889: support search with params

* Upgrade to [email protected]

---------

Co-authored-by: Abhinav Dangeti <[email protected]>
  • Loading branch information
moshaad7 and abhinavdangeti authored Jul 24, 2024
1 parent aa306ff commit 51efb62
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/RoaringBitmap/roaring v1.9.3
github.com/blevesearch/bleve_index_api v1.1.9
github.com/blevesearch/bleve_index_api v1.1.10
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ github.com/RoaringBitmap/roaring v1.9.3 h1:t4EbC5qQwnisr5PrP9nt0IRhRTb9gMUgQF4t4
github.com/RoaringBitmap/roaring v1.9.3/go.mod h1:6AXUsoIEzDTFFQCe1RbGA6uFONMhvejWj5rqITANK90=
github.com/bits-and-blooms/bitset v1.12.0 h1:U/q1fAF7xXRhFCrhROzIfffYnu+dlS38vCZtmFVPHmA=
github.com/bits-and-blooms/bitset v1.12.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8=
github.com/blevesearch/bleve_index_api v1.1.9 h1:Cpq0Lp3As0Gfk3+PmcoNDRKeI50C5yuFNpj0YlN/bOE=
github.com/blevesearch/bleve_index_api v1.1.9/go.mod h1:PbcwjIcRmjhGbkS/lJCpfgVSMROV6TRubGGAODaK1W8=
github.com/blevesearch/bleve_index_api v1.1.10 h1:PDLFhVjrjQWr6jCuU7TwlmByQVCSEURADHdCqVS9+g0=
github.com/blevesearch/bleve_index_api v1.1.10/go.mod h1:PbcwjIcRmjhGbkS/lJCpfgVSMROV6TRubGGAODaK1W8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand Down
5 changes: 4 additions & 1 deletion segment_vector.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
package segment

import (
"encoding/json"

"github.com/RoaringBitmap/roaring"
)

Expand Down Expand Up @@ -55,7 +57,8 @@ type VecPostingsIterator interface {
}

type VectorIndex interface {
Search(qVector []float32, k int64) (VecPostingsList, error)
// @params: Search params for backing vector index (like IVF, HNSW, etc.)
Search(qVector []float32, k int64, params json.RawMessage) (VecPostingsList, error)
Close()
Size() uint64
}
Expand Down

0 comments on commit 51efb62

Please sign in to comment.