Skip to content

Commit

Permalink
use float32 in embeddings (sashabaranov#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashabaranov committed Mar 8, 2023
1 parent 522ae20 commit c46ebb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion embeddings.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ var stringToEnum = map[string]EmbeddingModel{
// then their vector representations should also be similar.
type Embedding struct {
Object string `json:"object"`
Embedding []float64 `json:"embedding"`
Embedding []float32 `json:"embedding"`
Index int `json:"index"`
}

Expand Down

0 comments on commit c46ebb2

Please sign in to comment.