Skip to main content
OllamaEmbedder connects to an Ollama server. Set id and dimensions to match the model served by Ollama.
ollama_embedder.py

Run the Example

1

Set up your virtual environment

2

Install Ollama

Install Ollama, then pull the model:
3

Install dependencies

4

Run the example

Developer Resources