LLM Context Window: Understanding the Limits
The context window is the amount of text, measured in tokens, that an LLM can take into account at once: your instructions, the conversation history, attached documents and its own answer. Beyond it, the model forgets or refuses. And well before that limit, answer quality can already start to drop.
That last point is the one most explanations skip. Vendors advertise windows of several hundred thousand or even a million tokens, and it is tempting to conclude that you can simply paste everything into the chat. In practice, an SME working on tenders, contracts or customer histories gets better results by learning to manage that space than by hunting for the model that offers the most of it. This article explains what the window holds, what happens when it fills up, and the simple rules to apply day to day. For the basics of writing instructions, the prompt engineering guide for SMEs is the place to start.
What is an LLM context window?
The context window is the model's working memory: everything it "sees" when producing its answer, and nothing else. An LLM does not remember yesterday's exchanges the way a colleague would. With each message, the tool sends it everything that fits in the window, and the model starts from there.
The window is measured in tokens, the word fragments models are also billed on. As a rough guide, in English 1,000 tokens is about 750 words; French text uses slightly more tokens per word. How text is split, and what that means for your bill, is covered in AI tokens: understanding and optimizing cost.
A simple picture helps: the context window is like a desk. The bigger it is, the more files you can put on it. But a cluttered desk makes nobody more effective, and when it overflows, the oldest papers are the ones that fall on the floor.
What actually fills the context window?
The window holds far more than your question: it fills up with several layers the user does not always see. That is why a "short" conversation can already be heavy.
| Item | Added by | Typical weight |
|---|
| System prompt and custom instructions | The vendor, an admin or you | Low to medium, but present in every message |
| Conversation history | Every exchange, questions and answers | Grows with each turn |
| Attached documents (PDFs, spreadsheets, contracts) | You | Often the heaviest item |
| Tool results (web search, connectors, code) | The tool, automatically | Variable, sometimes very heavy |
| The model's internal reasoning | The model, on "thinking" models | Depends on task difficulty |
| The answer being written | The model | Must fit in the remaining space |
Two layers often come as a surprise. First, the system prompt, which takes up fixed space in every exchange. Second, tool results: a web search or a connector to your CRM can inject dozens of pages of raw text you never read.
Here is a worked example. A 60-page tender file is roughly 30,000 words, or about 40,000 to 50,000 tokens depending on the language. It fits easily in a 200,000-token window. Add three technical appendices, an hour of back-and-forth and two web searches, and you can get close to half the window without noticing.
How big is the window in Claude, ChatGPT and Gemini in 2026?
Windows now range from 200,000 to over a million tokens depending on the model and plan, and the size available in the app can differ from the API. The figures below come from vendor documentation checked in November 2026; they change quickly.
| Assistant | What the vendor says | Watch out for |
|---|
| Claude (Anthropic) | 1 million tokens on recent models via the API, 200,000 on others. On paid plans, 500,000 to 1 million depending on the model | Anthropic says 200,000 tokens is roughly 500 pages of text |
| Gemini (Google) | Many models have a window of 1 million tokens or more | Google equates this to about 50,000 lines of code or 8 average-length novels |
| ChatGPT (OpenAI) | Size varies by plan and mode (fast answer or reasoning) | Check your plan's page in the OpenAI help center before committing to a use case |
The key takeaway: the advertised size is a technical limit, not a quality guarantee. For a broader comparison of the three assistants, see ChatGPT vs Claude vs Gemini.
What happens when the window is full?
Depending on the tool, the model refuses the request, forgets the start of the conversation or summarizes it automatically, and this is not always clearly flagged. All three behaviors exist.
- Refusal. On the API side, if the input exceeds the window, Anthropic's documentation says the request is rejected with a "prompt is too long" error. Your workflow stops, which at least has the merit of being visible.
- Truncation. Some interfaces drop the oldest messages to make room. The model keeps answering, but without the instructions set at the start. This is the trickiest case: the answer looks normal but no longer follows your brief.
- Automatic summarization. On paid plans with code execution enabled, Anthropic says Claude summarizes earlier messages to make room, which lets most conversations continue. A summary is still a summary: a specific figure or exception can get lost along the way.
The most common symptom in a team: "at first it followed the format, then it started doing whatever it wanted." Before blaming the model, look at how long the conversation is.
Why a bigger window does not guarantee a better answer
The fuller the window, the lower the accuracy, even far from the limit. Anthropic says so in its documentation: as token count grows, accuracy and recall degrade, a phenomenon known as "context rot".
Two mechanisms add up:
- Dilution. The model spreads its attention across all the content. A key instruction buried in 300 pages carries less weight than one sitting between two paragraphs.
- The "lost in the middle" effect. A 2023 study by US researchers titled "Lost in the Middle" showed that models retrieve information placed at the start or end of the context better than information in the middle. Models have improved since, but the tendency is worth keeping in mind.
Google adds a useful nuance in its long-context documentation: Gemini finds a single piece of information with around 99% accuracy, but is less reliable when it has to find several scattered pieces at once. That is exactly what you ask for when comparing five clauses across three contracts.
The direct consequence: an overloaded window raises the risk of errors and hallucinations. Causes and fixes are covered in AI hallucinations: understand and avoid them.
7 rules for using the context window well
Good practice fits in one sentence: give the model what it needs for this task, not everything you have. In practice:
- One task, one conversation. When you change topic, open a new chat. The history of a quote analysis does not help you write a job ad.
- Restart with a summary. After a long exchange, ask the model to summarize the decisions made, check that summary, then paste it into a fresh conversation.
- Put instructions in the right place. Document first, then the question and expected format at the end. For a critical instruction, repeat it at the end of the message.
- Send the relevant excerpt. For a question about clause 12 of a contract, paste clause 12 and the definitions, not all 40 pages.
- Structure what you paste. Headings, simple tags or separators help the model find its way. The method is described in the anatomy of a good prompt.
- Use short examples instead of long ones. Two well-chosen examples beat ten, as the article on few-shot prompting explains.
- Only paste what you would accept sending to the vendor. Everything in the window is sent to the model provider. The data minimization principle in Article 5 of the GDPR applies: remove names, contact details and sensitive data when the task does not need them.
For very long documents, the long-document summary prompts offer a section-by-section approach that avoids saturating the window.
Long window, project or RAG: which to choose?
The right tool depends on how many documents you have and how often you query them. A long window is not always the cheapest or most reliable option.
- Long window, one-off. Analyzing an annual report or tender file once: paste the document, ask targeted questions, close the conversation.
- Project space. You come back every week to the same 10 to 20 documents (catalog, terms of sale, procedures): the project spaces in Claude, ChatGPT or Gemini save you from pasting everything again. The Claude use cases for SMEs show how to organize them.
- RAG. You have hundreds of documents that change often, queried by several people: RAG retrieves the relevant passages and only puts those in the window. The full comparison is in RAG vs prompting.
On budget, remember that with an API every token in the window is billed on every call. A conversation that resends 150,000 tokens of history with each question gets expensive fast.
Frequently asked questions
What is the difference between context window and memory?
The context window is the working memory of one exchange, cleared when the conversation ends. The "memory" features of some assistants store a few facts about you separately and inject them into the window of later conversations. So they take up space too.
How many pages fit in a 200,000-token window?
Anthropic says about 500 pages of text. It is an order of magnitude: a table, code or a badly converted PDF uses more tokens than plain prose.
Why does the AI forget my instructions mid-conversation?
Either the first messages were dropped or summarized to make room, or your instructions are diluted in an overloaded context. Open a new conversation with a summary and put your instructions at the end of the message.
Is a bigger context window always better?
No. It helps for a large one-off document, but accuracy drops as the window fills, and with an API you pay for every token sent. A short, targeted context often gives better results.
Does the context window include the model's answer?
Yes. The answer, and on reasoning models the thinking steps, must fit in the remaining space. If the window is almost full, the answer may be cut off.
Should you switch to RAG as soon as documents get long?
Not necessarily. For a document analyzed once, a long window is enough. RAG becomes relevant when the volume exceeds what you can reasonably paste, when documents change often or when several people query them.
How GrowthPerf can help
Knowing how to manage the context window is what separates AI use that lasts from AI use that disappoints after three weeks. GrowthPerf, a Qualiopi-certified training provider, trains teams in SMEs, startups and nonprofits to structure their work with AI: breaking down tasks, choosing between a conversation, a project and RAG, and preparing documents.
The operational AI course covers these techniques with exercises on your own documents. For teams using Claude, the Claude Team course details project setup and how to handle long conversations. Depending on your situation, these courses may be funded by your OPCO (French training fund).
For the full set of prompting techniques, go back to the complete prompt engineering guide for SMEs.
Your teams paste entire documents into ChatGPT or Claude and the answers lack precision? Take a look at our operational AI course, or book a 30-minute call to build a program around your own use cases.