Environment variable OLLAMA_NUM_CTX
No value of this variable is held in this registry. The registry knows only the name the source states.
Entries naming OLLAMA_NUM_CTX as an ordinary environment variable
| Obsidian Brain | io.github.sweir1/obsidian-brain |
|---|---|
| MCP server in namespace io.github | io.github.Michael-WhiteCapData/ollama-handoff |
Entries naming OLLAMA_NUM_CTX as a secret required variable
No entry.
What the sources write about this name
| Obsidian Brain | Override Ollama's num_ctx for embed requests. Leave UNSET to let obsidian-brain auto-detect via `/api/show`'s `context_length` (e.g. nomic-embed-text=2048, bge-m3=8192, qwen3-embedding:0.6b=32 768). Setting this manually imposes a hard cap and may silently truncate longer inputs — see https://github.com/ollama/ollama/issues/14259. Ollama's own default is 2048 which truncates for any model trained on a larger context. See also https://github.com/ollama/ollama/issues/7008. Fallback when both env is unset AND /api/show is unreachable: 8192. |
|---|---|
| MCP server in namespace io.github | Context window in tokens. |
Taken verbatim from the source, one line per entry. The text is a vendor's own statement and is neither checked nor shortened.
To the environment variable index
Version of the extraction rule: 1.1. The names are formed by splitting the stored raw declaration at the separator this registry set when reading it in. Counted across the 24,717 published entries.
tracevero · https://tracevero.com/variable/OLLAMA_NUM_CTX