Skip to content

feat(ollamakit): support dimensions parameter for Matryoshka embedding truncation - #80

Merged
danieljustus merged 1 commit into
mainfrom
session/20260801-153729
Aug 1, 2026
Merged

feat(ollamakit): support dimensions parameter for Matryoshka embedding truncation#80
danieljustus merged 1 commit into
mainfrom
session/20260801-153729

Conversation

@danieljustus

Copy link
Copy Markdown
Owner

Add EmbedWithDim(ctx, model, inputs, dim), which forwards Ollama's
top-level 'dimensions' request field (options.num_dim is ignored by
Ollama). A dim of 0 omits the field and behaves exactly like Embed, so
existing callers are unaffected.

Closes #76

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com

…g truncation

Add EmbedWithDim(ctx, model, inputs, dim), which forwards Ollama's
top-level 'dimensions' request field (options.num_dim is ignored by
Ollama). A dim of 0 omits the field and behaves exactly like Embed, so
existing callers are unaffected.

Closes #76

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@danieljustus
danieljustus marked this pull request as ready for review August 1, 2026 13:46
@danieljustus
danieljustus merged commit 062f7d4 into main Aug 1, 2026
8 checks passed
@danieljustus
danieljustus deleted the session/20260801-153729 branch August 1, 2026 13:46
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.

ollamakit: support Ollama dimensions parameter for Matryoshka embedding truncation

1 participant