Skip to content

feat: add Ollama embedding provider - #70

Closed
TerminalGravity wants to merge 1 commit into
mainfrom
feat/ollama-embeddings
Closed

feat: add Ollama embedding provider#70
TerminalGravity wants to merge 1 commit into
mainfrom
feat/ollama-embeddings

Conversation

@TerminalGravity

@TerminalGravity TerminalGravity commented Mar 3, 2026

Copy link
Copy Markdown
Collaborator

Adds Ollama as a local embedding provider for users who already have it running. No external API needed.

Changes

  • New OllamaEmbeddingProvider class using Ollama's /api/embed endpoint with native batch support
  • Config support via .preflight/config.yml (ollama_base_url, ollama_model, ollama_dimensions) and env vars (OLLAMA_BASE_URL, OLLAMA_EMBED_MODEL)
  • Updated onboard_project tool to accept Ollama params
  • Default model: nomic-embed-text (768 dimensions)
  • Unit tests for provider creation and config
  • README updated

Closes #6

@TerminalGravity
TerminalGravity force-pushed the feat/ollama-embeddings branch from 34c3b54 to e3c24b9 Compare March 4, 2026 16:16
@TerminalGravity TerminalGravity changed the title feat: add Ollama embedding provider feat: Ollama embedding provider support Mar 4, 2026
@TerminalGravity
TerminalGravity force-pushed the feat/ollama-embeddings branch 2 times, most recently from 85a0728 to 054a35e Compare March 5, 2026 06:45
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
TerminalGravity force-pushed the feat/ollama-embeddings branch from 054a35e to 19eee16 Compare March 5, 2026 09:46
@TerminalGravity TerminalGravity changed the title feat: Ollama embedding provider support feat: add Ollama embedding provider Mar 5, 2026
@TerminalGravity

Copy link
Copy Markdown
Collaborator Author

Superseded by #81.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ollama embedding support

1 participant