AI glossary
Context window
Also called: context length, context limit
The context window is the maximum number of tokens a model can consider at once, usually counting both the prompt and, depending on the host, the answer. In 2026 windows of 100,000 tokens and more are common, but a large window is not the same as perfect memory of everything you pasted.
What fits, and what falls out
System instructions, chat history, retrieved files, tool results, and the model’s own output all compete for the same budget. When you overflow the window, the host may reject the request, drop the oldest turns, or force you to summarise. None of those behaviours is a full substitute for a real memory store or a tighter retrieval step.
Long-context models can take a whole contract or a long thread, which is genuinely useful. They also cost more, sometimes with a surcharge past a threshold, and quality can still sag in the middle of a huge dump (people call this context rot).
How to use a large window well
Put standing rules in a stable prefix, keep retrieved evidence tight, and reserve room for the answer. If a document is long, retrieve the relevant sections rather than pasting all 200 pages “just in case.” For work that must persist, write notes to an external memory, not only to the chat transcript.
A concrete example
Example A 128,000-token window can hold a long contract plus your questions, but a 4,000-token window cannot.
FAQs about Context window
Does a 1-million-token window mean I can paste my whole drive?
You might be able to paste a lot, but you probably should not. Cost, latency, and missed details all get worse as the prompt turns into a junk drawer.
Is the output included in the window?
Usually the model cannot emit more tokens than the remaining room in the context. Check the vendor’s counting rules, because details differ.
Why did the model forget something I pasted earlier?
It may have been truncated, summarised, or simply under-weighted in a long prompt. Re-retrieve the fact, or place it closer to the question with a clear label.
Do all models with the same window behave the same?
No. Training, position handling, and serving all change how well a model uses the tokens you send. Test on your own long documents.
