Check a Model Context Window and Parameters with ollama show
Use ollama show to read a model parameters, template, and context settings before choosing it for a long task.
WORKFLOW TAG
Check what fits in the input and output context for your model.
Use ollama show to read a model parameters, template, and context settings before choosing it for a long task.
Raise the context window of an Ollama model with PARAMETER num_ctx in a Modelfile, and check the setting with ollama show.
Set a wall-clock time limit on a long agent task so it ends with a partial result instead of running all day.
Clear stale facts from agent memory when a new session starts, so an old preference does not steer the new work.
Summarize an agent memory into its durable facts before a long task, so the task starts from a short summary, not a…
Store a durable user preference in agent long-term memory so the agent applies it in later sessions without being told again.
Keep an agent short-term memory to the current chat so it remembers this conversation without pulling in older ones.
Set a chunk budget in tokens, rank the chunks, and stop adding chunks when the budget is spent, even if more chunks…
Count tokens with the model tokenizer, add the expected output, and check the total fits the context window before sending.
Enable an offloaded cache when GPU memory runs out, and accept a small throughput cost in exchange for a context that fits.