Skip to main content

Overview

Ollama allows you to run embedding models locally on your machine with no API costs.

Quick Start

CLI Usage

Setup

  1. Install Ollama: https://ollama.ai
  2. Pull an embedding model:

Available Models

Dimensions are auto-detected. As of PR #4802 PraisonAI resolves Ollama model dimensions automatically — nomic-embed-text → 768, all-minilm → 384, mxbai-embed-large → 1024. Provider prefixes and version tags (ollama/nomic-embed-text:v1.5) are stripped before lookup, so they size the same as the bare tag. Vector stores built through PraisonAI size their indexes to match the model.
snowflake-arctic-embed is not in the auto-detection table (its dimension was not measured on hardware). It falls back to the 1536 default — set the dimension explicitly on your vector store if you use it.

Custom API Base

Batch Embeddings

Using Ollama embeddings for memory / knowledge

Point agent memory or knowledge at a local Ollama embedder with the same embedder block used across PraisonAI:
See MongoDB Memory and MongoDB Knowledge for the full setup, or Local Memory & Knowledge to wire both fully local end to end.