Skip to content

Commit c46ebb2

Browse files
authored
use float32 in embeddings (#133)
1 parent 522ae20 commit c46ebb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

embeddings.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ var stringToEnum = map[string]EmbeddingModel{
103103
// then their vector representations should also be similar.
104104
type Embedding struct {
105105
Object string `json:"object"`
106-
Embedding []float64 `json:"embedding"`
106+
Embedding []float32 `json:"embedding"`
107107
Index int `json:"index"`
108108
}
109109

0 commit comments

Comments
 (0)