- Define which Ollama model to use
- Specify the dimensionality of the embeddings
- Configure how the Ollama API is accessed
- Configure the model’s truncation behavior and keep alive settings
- Configure optional, model-specific parameters like temperature
Samples
Basic Ollama embedding
With custom Ollama server
With model options and keep alive
Arguments
Returns
A JSON configuration object for use increate_vectorizer().
Related functions
embedding_openai(): use OpenAI modelsembedding_litellm(): use any provider through LiteLLMembedding_voyageai(): use Voyage AI models