Skip to main content
Use a local Ollama model to generate embeddings for your vectorizer. Ollama allows you to run open-source models locally for complete data privacy and control. You use this function to:
  • 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 in create_vectorizer().