Ollama Embedder is a class that allows you to embed documents using locally hosted Ollama models. This embedder provides integration with Ollama’s API for generating embeddings from various open-source models.Documentation Index
Fetch the complete documentation index at: https://docs-v1.agno.com/llms.txt
Use this file to discover all available pages before exploring further.
Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
id | str | The model ID to use for embeddings | "openhermes" |
dimensions | int | Output dimensions of the embedding | 4096 |
host | Optional[str] | Host URL for Ollama server | None |
timeout | Optional[Any] | Request timeout | None |
options | Optional[Any] | Additional options for embedding generation | None |
client_kwargs | Optional[Dict[str, Any]] | Additional parameters for client initialization | None |
ollama_client | Optional[OllamaClient] | Pre-configured Ollama client | None |