Ollama 0.12.10, released 2025-11-05, made ollama run work with embedding models via CLI arguments or standard input. It also made the /api/chat API return tool call IDs. Before this version, running an embedding model from the command line was not supported, so check the version first.
Checked on 2026-11-29. We did not run any tool for this guide. Every result below is an expected result, marked UNTESTED, for you to confirm on your own files.
Prerequisites
- Ollama 0.12.10 or newer
- An embedding model pulled, such as qwen3-embedding
- A short text to embed
Steps
1. Check the version
Run ollama –version and confirm it is 0.12.10 or newer.
Expected result: The version is 0.12.10 or newer.
2. Pull the embedding model
Run ollama pull with the embedding model name.
Expected result: The embedding model is pulled and listed.
3. Run it with a text argument
Run ollama run with the model name and a short text, and read the output.
Expected result: The output is a vector of numbers, not a chat reply.
4. Check the vector size
Count the numbers in the output and compare with the model dimension.
Expected result: The vector size matches the model dimension.
Worked example
A practice run embedded the text hello world with qwen3-embedding. The output was a vector, not a sentence.
| Check | Expected | Found |
|---|---|---|
| Output type | Vector | Vector |
| Model | qwen3-embedding | qwen3-embedding |
| Version | 0.12.10+ | 0.12.10 |
Expected result: The command returns a vector from qwen3-embedding on Ollama 0.12.10, so the CLI embedding path works (UNTESTED – confirm it yourself.)
Verdict table
| Check | Expected result | Pass? |
|---|---|---|
| Check the version | The version is 0.12.10 or newer. | – |
| Pull the embedding model | The embedding model is pulled and listed. | – |
| Run it with a text argument | The output is a vector of numbers, not a chat reply. | – |
| Check the vector size | The vector size matches the model dimension. | – |
Limits
- Ollama 0.12.6 fixed qwen3-embedding giving invalid results, so update past 0.12.6 before trusting embeddings.
- An embedding model run this way returns vectors; it cannot chat.
Sources
- Ollama v0.12.6 release notes – checked 2026-11-29
- Ollama v0.12.10 release notes – checked 2026-11-29
- Ollama v0.11.0 release notes – checked 2026-11-29
