You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Private, offline embeddings — code never leaves the machine
Model flexibility — users can pick whatever embedding model they've pulled locally (e.g. nomic-embed-text, mxbai-embed-large)
Free — no API costs
What the implementation would look like
Ollama exposes an OpenAI-compatible embeddings endpoint at /api/embed (and /v1/embeddings for the OpenAI-compat layer). The simplest path is probably a thin provider class similar to the existing OpenAIEmbeddingProvider, pointing at http://localhost:11434 by default and reading the host from an env var (e.g. OLLAMA_HOST).
EMBEDDING_PROVIDER=ollama
OLLAMA_HOST=http://localhost:11434 # optional, this would be the default
EMBEDDING_MODEL=nomic-embed-text
The main things to figure out:
Which Ollama API endpoint to use (/api/embed vs /v1/embeddings)
How to handle dimension detection (model-dependent, could query /api/show)
Whether to require the user to have the model already pulled, or surface a clear error
Activity