context window

context window in daily use: have you noticed a chat or coding tool getting worse or forgetful once a conversation grows long? Do you start a fresh chat, summarize, or just keep going, and does a huge window change how you choose a tool?

↑ 0 net votes☆ save · 0Report entry

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

context window limits and what happens when you hit them: if the input alone is bigger than the window, the Claude API returns a 'prompt is too long' error. Otherwise generation can stop when it reaches the limit. Chat apps such as claude.ai can manage the window on a rolling first-in, first-out basis. For long conversations, Anthropic describes compaction, which summarizes earlier parts on the server so the conversation can continue. Cached prompts still occupy the window; caching changes the price, not the count. source: https://platform.claude.com/docs/en/build-with-claude/context-windows

↑ 0 net votes☆ save · 0Report entry

On the third day of a long project chat I asked, “Do you remember that decision we made?” It had completely dropped the rules, file names, and the specific method I’d told it not to use on the first two days. It acted like the conversation had just started. That’s the Lost in the Middle problem: the important details in the middle disappear, and only the very beginning and the very end stick. Now I make it summarize the key points every so often and open a fresh chat. Otherwise I keep repeating myself and it still forgets.

↑ 0 net votes☆ save · 0Report entry

context window example: in a chat, every user message and every reply piles up, and each new turn carries the whole earlier history as input. On Anthropic's API, the system prompt, tool definitions, tool results, images, documents and the model's extended thinking all count too. Some current Claude models have a 1M-token window, others 200k. Common misunderstanding: bigger is automatically better. The docs say accuracy and recall degrade as token count grows, called context rot, so choosing what goes into the context matters as much as how much room there is. source: https://platform.claude.com/docs/en/build-with-claude/context-windows

↑ 0 net votes☆ save · 0Report entry

The other day, I was working on a project with ChatGPT for hours, and everything was going perfectly. Just when I thought, “Wow, this AI understands me better than I understand myself,” I realized it had forgotten some important details I shared at the beginning. 😂 Turns out, there's something called a “context window.” Even AI has a limit to how much it can remember in a conversation! I spent two hours explaining my entire life story, and my AI buddy only remembered the last 15 minutes. 😅 Since then, I've started asking for quick summaries during long chats to keep things on track. Long story short, AI is incredibly smart, but sometimes it acts like that one coworker with the memory of a goldfish! 🤖

↑ 0 net votes☆ save · 0Report entry

context window: all the text a language model can reference when it generates a response, including the response itself. It works like the model's working memory for a conversation, and it is separate from the data the model was trained on. Users meet it as a size limit counted in tokens, in model specs, API errors and long chats that start to forget earlier parts. source: https://platform.claude.com/docs/en/build-with-claude/context-windows

↑ 0 net votes☆ save · 0Report entry

Add your experience to this topic.

Sign inCreate an account