The Illusion of Memory
When you chat with an AI model for a while, it feels like you’re building a shared memory. In reality, most models don’t “remember” anything between messages the way a person does. Every time you send a new message, the AI re-reads the entire conversation from the start, up to a limit called the context window, and generates its response based on what fits inside that window.
What a Context Window Actually Measures
A context window is measured in tokens, which are chunks of text roughly equivalent to three-quarters of a word. A model with a 128,000-token context window can “see” about 90,000 to 100,000 words at once, including your entire conversation history, any documents you’ve shared, and its own prior replies. Once that limit is reached, something has to give.
Why Long Conversations Get Weird
This is the part that trips people up. When a conversation grows past the context window, the oldest messages typically get dropped or summarized to make room for new ones. That’s why an AI might confidently forget a name or instruction you gave it 40 messages ago: it’s not being careless, that information has literally scrolled out of its working view. It’s less like memory loss and more like reading a book where the first chapters have been torn out.
It’s Not Just About Length
A bigger context window isn’t automatically better reasoning. Research on long-context models has found a “lost in the middle” effect, where information placed in the center of a very long prompt gets weighted less than information at the beginning or end. Dumping an entire 50-page document into a chat doesn’t guarantee the model will use the important paragraph buried on page 23 as effectively as the opening page.
How to Work With It, Not Against It
If you need the AI to retain something important through a long conversation, restate it periodically rather than assuming it’s still “in view.” For long documents, consider summarizing the key points yourself before pasting them in, or breaking the task into smaller chunks with the critical details repeated near where they’re needed. Starting a fresh conversation for a genuinely new task also helps, since it clears out irrelevant history that could otherwise crowd the window.
The Bottom Line
A context window isn’t a flaw to work around once and forget about, it’s the fundamental shape of how these tools process information. Understanding it turns “why did it forget that?” into “of course it did, that was outside the window,” and helps you structure prompts so the right information stays visible when it matters.