Skip to main content

Get embeddings parameter structure

Gets the structure of additional parameters for processing embeddings requests

Function GetEmbeddingsParameterStructure(Val Clear = False) Export

ParameterCLI optionTypeRequiredDescription
Clear--emptyBooleanTrue > structure with empty valuse, False > field descriptions at values

Returns: Structure Of KeyAndValue - Fields structure


1C:Enterprise/OneScript code example
    Result = OPI_Ollama.GetEmbeddingsParameterStructure();
    oint ollama GetEmbeddingsParameterStructure \
--empty true
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>"
}