Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alligned SearchRequest.Vector type to []float32 #524

Merged
merged 1 commit into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading