Skip to content
AIDownload

Explainer · Updated November 28, 2026 · 3 minute read

What is a context window?

The short answer

A context window is the maximum amount of text an AI model can take into account at one time, measured in tokens. It covers the instructions, the conversation so far, any attached files or search results, and the reply being written. Anything outside the window is invisible to the model unless it is supplied again.

What has to fit inside the window

A language model has no memory between requests. Each time you send a message, the app sends the model the whole conversation again, along with any hidden instructions from the product and any documents you attached. All of that, plus the answer the model writes, has to fit inside the context window.

The size is counted in tokens, the word fragments that models read. Early chat models could hold a few thousand tokens, which is several pages of text. As of this writing, many models hold hundreds of thousands of tokens or more, enough for a long book.

What happens when the window fills up

When a conversation grows past the limit, some of it has to be left out. Depending on the product, the app may drop the oldest messages, replace earlier parts of the chat with a summary, or stop and ask you to start a new conversation.

Memory features in chat apps work around the limit. They save notes or past conversations outside the model and insert the relevant pieces into the window when they are needed.

The limits of a large window

A large window lets a model work with long documents and long multi-step tasks. It does not guarantee that the model uses everything in it equally well. Models tend to recall material at the start and end of a long input better than material in the middle, and accuracy often drops as the window fills.

Size also costs time and money. The model has to process the full contents of the window on every request, so material the task does not need makes responses slower and more expensive. Supplying the relevant pages usually works better than supplying everything.

Common questions

Is the context window the same as memory?

No. The context window holds what the model can see during one request, while memory features store information elsewhere and copy it back into the window later.

How is a context window different from a token?

A token is a unit of text, usually a word or part of a word. The context window is the number of those units a model can handle at once.

Why does a chatbot forget what was said earlier?

The conversation has probably outgrown the context window, so the earliest messages were dropped or compressed into a summary. Starting a new chat and restating the important details usually fixes it.

Written and reviewed by AI DownloadHow we write and review explainers

Context windows in the news

Research · Sep 30 · arXiv cs.AI + cs.CL

Beyond the Context Window: An Adaptive Entropy-Based Routing Framework for Hybrid Retrieval and Long-Context Language Models

Researchers propose EDAR, a framework that dynamically routes queries at inference time to either standard RAG or full long-context processing based on the predictive entropy of early generated tokens. The goal is to capture the speed benefits of RAG while falling back to long-context models only when retrieval confidence is low.

Why it matters. As million-token context windows become common, EDAR offers a practical, cost-aware middle ground between expensive long-context inference and error-prone pure RAG pipelines.

Model releases · Nov 20 · arXiv cs.AI + cs.CL

Beam Model Technical Report

Beam is a sparse Mixture-of-Experts model with 501.3B total and 23.4B active parameters, built for coding, reasoning, and agentic work. It was pretrained on 23.8T tokens, offers a 1M-token context window, and went through a four-week asynchronous RL run on 10.5K GB300 GPUs with over 100M rollouts. The authors claim frontier-level reasoning at 3-4x less inference compute than comparable models.

Why it matters. It points to a very large open-lab RL run where capabilities kept improving with more compute and showed no plateau, which bears on how far RL scaling can go.

Model releases · Oct 15 · NVIDIA Developer Blog

Scale Agentic Coding Workflows with Meta’s Muse Spark Open on NVIDIA GB300 NVL72

Meta has launched Muse Spark Open, a coding-focused mixture-of-experts model with 816B total parameters, 42B active parameters, and a 1M token context window. It is positioned for agentic coding workflows running on NVIDIA GB300 NVL72 systems.

Why it matters. A large, long-context open coding model tuned for agentic use and top-end NVIDIA hardware could raise the bar for developer tooling and self-hosted coding agents.

Keep reading

Follow the news behind these terms

The digest covers what happens in AI each day, with terms linked to these explanations.