1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-29 22:27:42 +02:00
Files
OpenIntegrations/docs/en/md/Ollama/Requests-processing/Get-embeddings-parameter-structure.mdx

57 lines
1.4 KiB
Plaintext
Raw Normal View History

2025-04-12 22:59:24 +03:00
---
sidebar_position: 6
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get embeddings parameter structure
Gets the structure of additional parameters for processing embeddings requests
`Function GetEmbeddingsParameterStructure(Val Clear = False) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Clear | --empty | Boolean | ✖ | True > structure with empty valuse, False > field descriptions at values |
Returns: Structure Of KeyAndValue - Fields structure
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Result = OPI_Ollama.GetEmbeddingsParameterStructure();
```
2025-05-01 20:09:27 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint ollama GetEmbeddingsParameterStructure \
--empty true
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint ollama GetEmbeddingsParameterStructure ^
--empty true
```
</TabItem>
</Tabs>
2025-04-12 22:59:24 +03:00
2025-05-01 12:55:47 +03:00
```json title="Result"
{
"options": "<additional model parameters listed in the Modelfile documentation>",
"keep_alive": "<how long the model will remain loaded in memory after a request>",
"truncate": "<trims the end of each response to fit within the context length. Returns an error if false and the length is exceeded>"
}
```