mirror of
https://github.com/ollama/ollama.git
synced 2026-04-24 01:35:49 +02:00
Truncation
This commit is contained in:
19
docs/api.md
19
docs/api.md
@@ -996,25 +996,6 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user