Skip to content

Commit

Permalink
changed Vector to []float32
Browse files Browse the repository at this point in the history
  • Loading branch information
structwafel committed Apr 18, 2024
1 parent cd67941 commit 74246b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion index_search_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1612,7 +1612,7 @@ func TestIndex_SearchWithVectorStore(t *testing.T) {
client: defaultClient,
query: "Pride and Prejudice",
request: SearchRequest{
Vector: []float64{0.1, 0.2, 0.3},
Vector: []float32{0.1, 0.2, 0.3},
Hybrid: &SearchRequestHybrid{
SemanticRatio: 0.5,
Embedder: "default",
Expand Down
2 changes: 1 addition & 1 deletion types.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ type SearchRequest struct {
Facets []string
PlaceholderSearch bool
Sort []string
Vector []float64
Vector []float32
HitsPerPage int64
Page int64
IndexUID string
Expand Down
10 changes: 5 additions & 5 deletions types_easyjson.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 74246b9

Please sign in to comment.