From c46ebb2f08e95115dfb9a77eec819b1a88198a5d Mon Sep 17 00:00:00 2001 From: sashabaranov <677093+sashabaranov@users.noreply.github.com> Date: Wed, 8 Mar 2023 14:08:08 +0400 Subject: [PATCH] use float32 in embeddings (#133) --- embeddings.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embeddings.go b/embeddings.go index 06e96c7..e8247d2 100644 --- a/embeddings.go +++ b/embeddings.go @@ -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"` }