Skip to main content
The Ollama plugin provides local model execution and can serve as a fallback option when cloud-based LLM providers are not configured. It requires running an Ollama server locally.

Features

  • Local execution - No API keys or internet required
  • Multiple models - Support for Llama, Mistral, Gemma, and more
  • Full model types - Text, embeddings, and objects
  • Cost-free - No API charges
  • Fallback option - Can serve as a local fallback when cloud providers are unavailable

Prerequisites

  1. Install Ollama
  2. Pull desired models:

Installation

Configuration

Environment Variables

Character Configuration

Supported Operations

Model Configuration

The plugin uses three model tiers:
  • SMALL_MODEL: Quick responses, lower resource usage
  • MEDIUM_MODEL: Balanced performance
  • LARGE_MODEL: Best quality, highest resource needs
You can use any model from Ollama’s library:
  • Llama models (3, 3.1, 3.2, 3.3)
  • Mistral/Mixtral models
  • Gemma models
  • Phi models
  • Any custom models you’ve created
For embeddings, popular options include:
  • nomic-embed-text - Balanced performance
  • mxbai-embed-large - Higher quality
  • all-minilm - Lightweight option

Performance Tips

  1. GPU Acceleration - Dramatically improves speed
  2. Model Quantization - Use Q4/Q5 versions for better performance
  3. Context Length - Limit context for faster responses

Hardware Requirements

Common Issues

”Connection refused”

Ensure Ollama is running:

Slow Performance

  • Use smaller models or quantized versions
  • Enable GPU acceleration
  • Reduce context length

External Resources