Context Window
A context window is how much text an AI model can consider at once. Learn how it works, how big current windows are and why bigger isn't always better.
A context window is the maximum amount of text an AI model can take into account at one time, including your prompt, any files you attach, the conversation so far and the reply it is writing. It is measured in tokens, and anything that falls outside the window is invisible to the model.
Think of it as the model's working memory: a chatbot rereads everything inside the window each time it answers.
Key takeaways
- The window covers both input and output, so a long reply eats into the same budget as a long prompt.
- Many leading models now offer windows in the hundreds of thousands of tokens, and some advertise a million or more.
- A large window does not guarantee the model uses every part of it well.
How does a context window work?
Every time you send a message, the app bundles up the system instructions, earlier messages, attached documents and your new question, then sends all of it to the model. If the bundle is bigger than the window, something has to go. Apps usually drop or summarize the oldest messages, which is why long chats "forget" early details.
The limit exists partly because of cost. The attention mechanism compares tokens with each other, so longer inputs need much more computing power and memory.
An example
Say you paste a 300-page contract into a chatbot. At roughly 500 words a page, that is around 150,000 words, or about 200,000 tokens. A model with a 128,000-token window cannot see the whole thing at once. A model with a one-million-token window can, with room left over for questions.
Why do context windows show up in the news?
Window size is one of the specs labs like to advertise. Meta, for instance, said in 2025 that its Llama 4 Scout model supports 10 million tokens. Independent testers often find that accuracy drops when key facts sit deep inside very long inputs, so the advertised figure and the useful figure can differ. Techniques like retrieval-augmented generation remain popular because they feed the model only the passages it needs.
Why It Matters
Choosing an AI tool by its advertised window size is like choosing a phone by storage alone. The bigger number helps if you work with long contracts, reports or code, but it does not promise the model will notice the one clause buried in the middle. For important documents, ask targeted questions, point the model to specific sections and confirm key details against the source. When a long chat starts losing track, a fresh start with a short summary often works better.
Frequently asked questions
Is a bigger context window always better?
Not always. Bigger windows handle longer documents, but cost more, run slower and may miss details buried in the middle. For many tasks, a focused prompt beats a giant one.
Does the context window carry over between chats?
No. Each conversation starts with an empty window. Some apps offer separate "memory" features that save notes about you and insert them into new chats, but that is a product feature built on top of the window.
Researched and written by The AI Telegraph staff and checked against primary sources. See our editorial policy. Spotted an error? Tell us.

