Skip to content

Interface: OllamaEmbedParams

@providerprotocol/ai


@providerprotocol/ai / ollama / OllamaEmbedParams

Defined in: src/providers/ollama/embed.ts:30

Ollama embedding parameters. Passed through to the API.

optional keep_alive: string

Defined in: src/providers/ollama/embed.ts:34

Controls how long the model stays loaded in memory (e.g., ‘5m’, ‘1h’)


optional options: Record<string, unknown>

Defined in: src/providers/ollama/embed.ts:36

Additional model options


optional truncate: boolean

Defined in: src/providers/ollama/embed.ts:32

Truncates the end of each input to fit within context length (default: true)