|
@@ -174,18 +174,19 @@ ollama.show(request)
|
|
- `options` `<Options>`: (Optional) Options to configure the runtime.
|
|
- `options` `<Options>`: (Optional) Options to configure the runtime.
|
|
- Returns: `<ShowResponse>`
|
|
- Returns: `<ShowResponse>`
|
|
|
|
|
|
-### embeddings
|
|
|
|
|
|
+### embed
|
|
|
|
|
|
```javascript
|
|
```javascript
|
|
-ollama.embeddings(request)
|
|
|
|
|
|
+ollama.embed(request)
|
|
```
|
|
```
|
|
|
|
|
|
- `request` `<Object>`: The request object containing embedding parameters.
|
|
- `request` `<Object>`: The request object containing embedding parameters.
|
|
- `model` `<string>` The name of the model used to generate the embeddings.
|
|
- `model` `<string>` The name of the model used to generate the embeddings.
|
|
- - `prompt` `<string>`: The prompt used to generate the embedding.
|
|
|
|
|
|
+ - `input` `<string> | <string[]>`: The input used to generate the embedding.
|
|
|
|
+ - `truncate` `<boolean>`: (Optional) Truncate the input to fit the maximum context length supported by the model.
|
|
- `keep_alive` `<string | number>`: (Optional) How long to keep the model loaded.
|
|
- `keep_alive` `<string | number>`: (Optional) How long to keep the model loaded.
|
|
- `options` `<Options>`: (Optional) Options to configure the runtime.
|
|
- `options` `<Options>`: (Optional) Options to configure the runtime.
|
|
-- Returns: `<EmbeddingsResponse>`
|
|
|
|
|
|
+- Returns: `<EmbedResponse>`
|
|
|
|
|
|
### ps
|
|
### ps
|
|
|
|
|