Join our Newsletter — 33% off our NHI Course

Large Language Model Context Window

The context window is the amount of text and other tokens a large language model can consider at one time. It defines the model’s short-term working memory during a prompt or conversation, including instructions, retrieved content, and prior turns, while anything beyond that limit is not directly available for reasoning.

What the context window actually does

The context window is the model’s active reasoning space for a single interaction, bounded by a fixed token limit. It determines how much instruction, conversation history, retrieved material, and quoted source text the model can jointly consider before earlier content falls out of view.

That boundary matters because a model cannot reliably use information it no longer has in context. As the prompt grows, older details may be compressed, omitted, or effectively forgotten, which can change the quality of summarisation, question answering, tool use, and multi-step reasoning.

Why context window size changes model behaviour

A larger window does not make a model inherently smarter, but it does change what kinds of tasks it can handle coherently. Long policies, codebases, investigations, and multi-turn workflows are easier when more relevant text can remain available at once.

Smaller windows force sharper prioritisation. The model may need cleaner prompts, tighter retrieval, and more selective inclusion of supporting material because irrelevant text competes with the information the model actually needs to answer well.

Where the limits show up in practice

Context limits create practical trade-offs between breadth and precision. If you pack too much into a single prompt, the model may miss important instructions, over-weight recent text, or lose earlier constraints that were supposed to govern the answer.

This is especially visible in tasks that rely on layered evidence, such as summarising a long thread, analysing a large document set, or carrying state across a conversation. In those cases, the limiting factor is not only model capability, but how much usable information still fits in the active window.

For teams working with identity and access-heavy workflows, the same constraint affects how reliably the model can preserve roles, permissions, or procedural steps across turns. That is why prompt design, retrieval strategy, and state handoff matter as much as raw window size.

How practitioners should think about context management

A useful way to treat the context window is as a scarce runtime resource. The goal is not to maximise length indiscriminately, but to keep the most decision-relevant material in view and remove noise that dilutes attention.

What to watch for: repeated misunderstandings, dropped instructions, or answers that seem to rely on the most recent text while ignoring earlier constraints often indicate that the model is operating near or beyond its useful context budget.

Practitioner takeaway: design prompts and retrieval flows so the most important instructions, evidence, and constraints are always the first-class occupants of the window, not incidental leftovers.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5 provides the primary governance reference for this term.

Framework Control / Reference Relevance
NIST SP 800-53 Rev 5 SC-4 — Information in Shared Resources Context windows expose shared prompt state that must be isolated from unneeded content.
AU-6 — Audit Record Review, Analysis, and Reporting Long context workflows need review of what was included, omitted, and acted on across turns.
AC-6 — Least Privilege Only the minimum necessary context should be supplied to preserve task focus and reduce exposure.
Recommendation — Limit shared prompt content to reduce unintended exposure and interference between tasks. Review logged prompt and retrieval inputs to detect missing or misleading context. Provide only the minimum context needed for the model to complete the task.