浏览代码

mock up notes

Roy Han 10 月之前
父节点
当前提交
22458c573a
共有 1 个文件被更改,包括 19 次插入0 次删除
  1. 19 0
      docs/api.md

+ 19 - 0
docs/api.md

@@ -996,6 +996,25 @@ If `stream` is set to `false`, then the response is a single JSON object:
 { "status": "success" }
 ```
 
+```shell
+POST /api/embed
+```
+
+# Parameters
+- `model`
+- `input`: string or array of strings
+  - cap on string size and array size
+
+# Response
+- `embeddings`: array of embeddings (array of floats)
+  - normalized? definitely normalize for openai
+
+  - truncate flag defaults true, otherwise false if doesn't fit
+
+- deprecate /api/embeddings later
+
+
+
 ## Generate Embeddings
 
 ```shell