What a Context Window Is and What Happens When a Chat Outgrows It
How much a chatbot can consider at once, the signs that a long chat has outgrown that space and practical ways to cope.
Key takeaways
- The context window is a model's working space for one request, shared by your input and its output.
- A longer window allows more material but does not guarantee that every detail gets equal attention.
- Products handle overflow in different ways, including trimming, summarizing, retrieving selected passages or asking you to start over.
- Restating key facts, splitting work and keeping your own master notes protect you in long projects.
A context window is the amount of text a language model can take into account at one time, measured in tokens, which are words or pieces of words. It includes the instructions, your messages, earlier replies, attached material and the answer being written. Anything outside it cannot directly influence that reply.
When a conversation grows too large, the product has to refuse more input, leave older material out or shrink it into a summary. You may not be told which happened. The usual signs are an assistant that forgets an early requirement, repeats itself or confidently misremembers what you agreed.
What goes into the window
A useful comparison is a desk. Papers on the desk can be read while you work. Papers in a cabinet across town cannot, unless someone fetches them. The window is the desk.
Window sizes differ widely between models and have grown considerably over the years. Product plans may allow less than the underlying model can. Check the current documentation for the service you use.
The model rereads everything each time
In a typical chat design, the model does not carry a running recollection from one turn to the next. When you send a new message, the product assembles the relevant history together with your message and passes it in again. The model produces its reply from that package.
This explains two things. A long conversation makes every new turn a bigger job, even if you only typed "yes". And the product has real control over what "the conversation so far" means, because it chooses what goes into the package. Some providers cache repeated material to save time or money, which changes the efficiency and cost but not the basic idea that the model works from what it is given.
Why there is a limit at all
Most current language models relate each token to other tokens through a mechanism called attention. The longer the text, the more of these relationships there are to compute and the more memory is needed to hold working data. Roughly speaking, doubling the length more than doubles some of that work in the basic design.
Engineers have found many efficiency improvements, which is why windows have expanded. The limit also reflects training: a model needs practice with long inputs to use them well.
Longer requests generally cost more and respond more slowly. If you pay by usage, each extra page is paid for, often again on each turn. The article on tokens explains the counting.
A budget example
The window is shared, so a large input leaves less room for the rest. Imagine a model with a window of 100,000 tokens. The figures are invented to show the bookkeeping.
Window size 100,000
Standing instructions − 2,000
Attached report − 60,000
Conversation so far − 25,000
New question − 500
Left for the answer and more 12,500 There is room for this reply. Attaching a second report of the same size would not fit, since 60,000 is far more than 12,500. The product would then need one of the strategies below. As a rough guide for English, 60,000 tokens is on the order of 45,000 words.
What products do when the chat gets too long
| Strategy | What happens | What you might notice |
|---|---|---|
| Refuse or warn | The product asks you to shorten or start anew | A clear message |
| Drop the oldest turns | Early messages fall out | Early rules are forgotten |
| Summarize | Older material is condensed | Gist survives, details blur |
| Retrieve selectively | Only passages judged relevant are brought in | Some parts of a file seem unread |
A service may combine these. Summaries are convenient, yet an exact figure, an exception or a "never do this" can be lost or altered in the squeeze. See when summaries distort the original.
Fitting is not the same as reading well
Even when everything fits, results can be uneven. Studies of long inputs have found that some models use information near the beginning or end more reliably than information buried in the middle. Performance on this has improved in many systems, but it varies with the model and task.
Long contexts also bring confusion between similar items. If you paste three versions of a contract, the model may blend clauses from different drafts. If an old plan and a new plan both appear in the chat, it may follow the outdated one.
So include what matters, label it clearly and remove what no longer applies. For important documents, ask the model to quote the passage it relies on, then find that quotation in the original. If you cannot find it, treat the claim as unsupported. More on this is in why long documents trip up AI readers.
Position can be used to your advantage. With a long document, many people get better results by placing the material first and the specific question after it, then naming the sections that matter. If an answer misses something, paste just the relevant passage and ask again. A result that changes sharply tells you the first pass did not make good use of that text.
Signs you have outgrown the space
Watch for these:
- The assistant ignores a format or rule you set early on.
- It asks for information you already gave.
- Names, figures or decisions drift from what you agreed.
- It refers to "the document" but gets sections wrong.
- Replies slow down or get cut off.
- The product shows a length warning or says it condensed the conversation.
These symptoms can have other causes, such as an ordinary mistake. Either way, the remedy is the same: supply the key facts again and check the result.
Working well on long projects
- Keep a brief outside the chat. Hold goals, decisions and constraints in your own document.
- Start fresh at natural breaks. Paste the brief into a new chat, as covered in when to start a new chat.
- Work in sections. Handle one chapter or file at a time.
- Ask for a handoff note. Before leaving a long chat, request a list of decisions and open items, then correct it yourself.
- Label material. Give each pasted document a name and date.
- Put the question clearly. After a long paste, restate exactly what you want.
Say you are planning a family reunion over many messages. Early on you note that one guest uses a wheelchair. Forty messages later, a venue suggestion with stairs appears. A one-paragraph brief that you paste into each new session would keep that requirement in view.
A prompt that checks what survived
Partway through long work, you can test the assistant's picture of the project. Ask: "List the decisions we have made, the constraints I gave and anything still open. Say which items you are unsure about."
Compare the list with your own notes. Missing or altered items show what has dropped out or blurred. Correct them in your next message, or move to a new chat with a clean brief. Do not accept the list as an authoritative record, since the same limits that affect replies affect this summary of them. Your own notes remain the master copy.
Window, memory and training
Three things are often confused. The context window holds material for the current request. A memory feature stores selected notes outside the window and inserts them into later chats. Training changes the model's internal numbers, which ordinary chatting does not do on the spot.
Deleting a chat may not delete saved memories, and neither action necessarily reflects what a provider retains on its servers. Check each control separately. The difference is laid out in memory, training and settings.
When something seems to have been forgotten, work out which of the three is involved. A rule lost partway through one long chat points to the window. A preference missing from a brand-new chat points to memory, either switched off or never saved.
Common questions
Can I make the window bigger?
You can sometimes choose a model or plan with a larger one. You cannot extend a given model's limit by asking it to remember harder.
Does a new chat know what the old one said?
Not by default. It may if the product offers memory or lets chats be searched. Assume nothing carries over unless you can see that it did.
Is a bigger window always better?
It helps with long material, but it can tempt you to dump in everything. A focused input with the relevant pages is often faster, cheaper and easier for the model to use correctly.
How do I know whether my file was fully read?
Ask about specific details from the beginning, middle and end that you already know. Correct answers are encouraging, though they are a spot check and not a guarantee. Some tools only search a file for relevant passages, so questions that require reading every page, such as counting all mentions, need extra care.