summaryrefslogtreecommitdiff
path: root/models/models.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2024-12-31 13:25:13 +0300
committerGrail Finder <wohilas@gmail.com>2024-12-31 13:25:13 +0300
commit461d19aa2512fea7ac07e50c3178609850ef07c3 (patch)
tree1e317b813686ca7696e96bba766cdbd3aeb35138 /models/models.go
parent4db8aea43dded3f2c1d0d41b5a3fb322a38d4730 (diff)
Feat: add rag [wip; skip-ci]
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/models/models.go b/models/models.go
index 2c5c99c..bbf1bd0 100644
--- a/models/models.go
+++ b/models/models.go
@@ -106,3 +106,22 @@ type ChatToolsBody struct {
} `json:"tools"`
ToolChoice string `json:"tool_choice"`
}
+
+type EmbeddingResp struct {
+ Embedding []float32 `json:"embedding"`
+ Index uint32 `json:"index"`
+}
+
+// type EmbeddingsResp struct {
+// Model string `json:"model"`
+// Object string `json:"object"`
+// Usage struct {
+// PromptTokens int `json:"prompt_tokens"`
+// TotalTokens int `json:"total_tokens"`
+// } `json:"usage"`
+// Data []struct {
+// Embedding []float32 `json:"embedding"`
+// Index int `json:"index"`
+// Object string `json:"object"`
+// } `json:"data"`
+// }