ollamaEmbedding() throws Ollama does not support requesting embedding dimensions when embed() receives dimensions, and the docs describe this as intended. Ollama's /api/embed does accept a dimensions field (it truncates each vector to that size), and the ollama SDK the package already depends on (^0.6.3) types it on EmbedRequest. With a local Ollama server and qwen3-embedding:0.6b, forwarding dimensions: 256 returns 256-element vectors, while on main the adapter throws before any request is sent. The proposal is to forward options.dimensions into the embed request (like truncate/keep_alive) and update docs/adapters/ollama.md and docs/embeddings.md; Ollama itself returns an error if the value exceeds the model's output size. Would you accept a PR for this? A patch with a unit test is ready, and an E2E case can be added if wanted.
This report was prepared with AI assistance.
Thanks for the report, @pcbeingused33! To help us reproduce this, could you add a minimal reproduction?
A runnable example makes fixes dramatically faster — you can fork one of the official examples, or use StackBlitz / CodeSandbox. For TypeScript-only issues, a TS Playground link works too.
Automated triage — a maintainer will follow up.