feat: add Ollama embedding provider - #70
Closed
TerminalGravity wants to merge 1 commit into
Closed
Conversation
TerminalGravity
force-pushed
the
feat/ollama-embeddings
branch
from
March 4, 2026 16:16
34c3b54 to
e3c24b9
Compare
TerminalGravity
force-pushed
the
feat/ollama-embeddings
branch
2 times, most recently
from
March 5, 2026 06:45
85a0728 to
054a35e
Compare
Add Ollama as a third embedding provider option alongside local (Xenova) and OpenAI. Supports custom base URL, model name, and dimension config. - New OllamaEmbeddingProvider class using /api/embed endpoint - Native batch embedding support - Config via .preflight/config.yml or env vars (OLLAMA_BASE_URL, OLLAMA_EMBED_MODEL) - Updated onboard_project tool schema to accept ollama params - Updated timeline-db config types - Added embedding unit tests - Updated README with Ollama docs Closes #6
TerminalGravity
force-pushed
the
feat/ollama-embeddings
branch
from
March 5, 2026 09:46
054a35e to
19eee16
Compare
Collaborator
Author
|
Superseded by #81. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Ollama as a local embedding provider for users who already have it running. No external API needed.
Changes
OllamaEmbeddingProviderclass using Ollama's/api/embedendpoint with native batch support.preflight/config.yml(ollama_base_url,ollama_model,ollama_dimensions) and env vars (OLLAMA_BASE_URL,OLLAMA_EMBED_MODEL)onboard_projecttool to accept Ollama paramsnomic-embed-text(768 dimensions)Closes #6