Skip to content

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

Entries naming OLLAMA_NUM_CTX as an ordinary environment variable
Obsidian Brainio.github.sweir1/obsidian-brain
MCP server in namespace io.githubio.github.Michael-WhiteCapData/ollama-handoff

Entries naming OLLAMA_NUM_CTX as a secret required variable

No entry.

What the sources write about this name

What the sources write about this name
Obsidian BrainOverride 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.githubContext 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