context window — entry #295

context window

The maximum number of tokens a large language model (LLM) can look at in a single request. In short, the model’s working memory. Everything shares this window: the system prompt, conversation history, uploaded files, tool results, and the reply the model itself will generate. Anything that falls outside the window is effectively invisible to the model. This is why models “forget” earlier messages in long conversations or get confused when you upload large files. The most common analogy is short-term memory or RAM. Andrej Karpathy has used the same comparison. Another popular one is a desk: you can only place so many documents on it at once. When the desk is full, older documents fall off. As of 2026, most flagship models (Claude Opus/Sonnet, the GPT-6 family, Gemini) offer a context window of roughly 1 million tokens. That sounds huge, but a bigger context window does not mean the model will correctly use everything inside it. The well-known “lost in the middle” problem still exists. When information is buried in the middle of a long context, models tend to recall it less accurately. This is why the advertised context length and the effective context length are not the same thing. Token counting also matters in practice. In English, 1 token is roughly equal to 0.75 words. One million tokens is about 750,000 words, or roughly 1,500–2,300 pages. Code, tables, non-English text, or images (in vision models) consume more tokens. In the end, simply having a larger context window is not enough. The real skill has become “context engineering”: knowing what to put in, what to leave out, and when to use RAG. Making the window bigger does not solve the problems by itself — sometimes it just adds more noise.

↑ 0 net votes☆ save · 0Report entry