Everything the model can see
The context window limits the amount of input and generated material a model can handle in a request, using model-specific token or representation rules. The desk analogy helps: only supplied material is directly available in that context. It is not the same as learned knowledge in the weights or durable storage maintained by the product.
Depending on the application, these eight kinds of material can share that working space:
- instructions supplied by the product
- your current message
- selected earlier conversation, possibly summarised
- text or representations from attached files and images
- retrieved search results
- saved memories that the product selects and includes
- descriptions of tools available for this request
- the reply being generated, subject to the model’s input and output limits
For scale, token budgets can be in the thousands, hundreds of thousands or more, depending on the exact model and version. A hypothetical limit of 128,000 tokens might correspond roughly to 96,000 words of ordinary English under the earlier rule of thumb, but the actual count varies. Check the documented input limit, output limit and tokenizer rather than inferring capacity from page count.
What happens when it fills
When a request would exceed a model’s limits, the application must handle that condition. It might reject the request, shorten material or select a different subset. Do not assume that everything you uploaded is included just because the interface accepted the upload.
Possible strategies include dropping earlier turns, producing summaries or retrieving relevant pieces on demand. Different products make different choices, and the interface may or may not show them. Keep important information somewhere more durable than the current chat context.
A forgotten rule can result from trimming or summarisation, but it can also happen while the rule is still present. Instruction following and use of long inputs are imperfect. A changing answer does not by itself prove that the instruction was removed.
It also explains why the assistant sometimes appears to forget the file you attached forty messages ago. The file may be gone from the context, with a summary of it, or nothing at all, in its place. Or it may still be there and simply be used badly, as the next section explains.
A big window is not the same as reading it
The second thing to know is that capacity and attention are different claims.
The Lost in the Middle study found position-sensitive performance on selected retrieval and question-answering tasks. It is a warning to evaluate how a particular model uses your documents, not evidence that every current model always reads the ends best.
When supplying a hundred pages, check what the application actually passed to the model and then test the material answers. A fluent response is not a trace of which parts were used. A model can miss or misinterpret relevant text even when it is within the window.
The cost, which surprises people
A new turn may include substantial earlier context, selected by the application. Processing a long input can require more resources than processing a short one, but caching, summarisation, retrieval and model architecture affect the actual work.
Many text-generation APIs charge separately for input and output tokens, and may distinguish cached input. Other products use subscriptions or different limits. A fresh, focused conversation can reduce unnecessary context, but faster or cheaper is not guaranteed: check the service’s rules and measure the workflow.
Six practical habits
These habits can make a workflow easier to inspect. Test them on your task rather than assuming that any prompt habit guarantees accuracy.
- Use a focused conversation for a new task. Check which earlier decisions still matter rather than carrying irrelevant history indefinitely.
- State the important constraint with the request. If the answer must be in Hindi, under 200 words and based on a policy, make those requirements explicit and check the result.
- Supply the relevant passage when possible. This can reduce irrelevant material, but include enough surrounding context to preserve its meaning.
- Break a large review into manageable sections. Check the relationships between sections when combining the answers.
- Check access to the attachment. Requesting an exact quotation can reveal a problem, but a failed quote does not prove absence and one successful quote does not prove the whole file was used.
- Keep your own record. Store material decisions and sources in a document you control, rather than relying on what the next chat turn will contain.
The one-sentence version
A context window is limited working space. The application chooses what enters it; capacity is not reliable comprehension, and storage, computation and billing follow separate rules.
Check your understanding
Ninety messages into a conversation, an assistant ignores an early formatting rule. Which is a plausible context-related explanation that should be investigated?
Pick the one you would defend. Your answer stays private.
Your place and first choices stay on this browser. Classroom credit is recorded separately.
Stuck on something?Ask Meenal, your AI tutor