Context windows, explained
A context window is the maximum amount of text an AI system can take in at one time, counted in tokens. It holds the conversation so far, any attached files and the app’s own instructions. Text that does not fit is not seen by the AI.
In the lesson above the window held 40 tokens, so you could watch it overflow in a few messages. Real windows are thousands of times larger, but they work the same way and they all have an edge.
What fills the window
It is easy to assume the window only contains what you typed. In practice several things share the space, and every one of them is counted.
The app’s own instructions. Most chat apps start every conversation with instructions you never see, telling the AI how to behave.
Your messages. Everything you have typed in this chat so far.
The AI’s replies. Its earlier answers are sent back to it each time, so they take up room as well.
Files and pasted text. A long document can use more of the window than the rest of the chat put together.
The answer being written. The reply the AI is producing now has to fit too. When the total would pass the limit, something has to give.
Why the AI seems to forget
An AI does not carry a conversation around in its head. Each time you send a message, the app sends the AI the conversation again, and the AI answers from that text alone.
So when an early detail is no longer included, the AI has not forgotten it in the way a person would. It was never given it this time. That is what happened to the dog’s name in the lesson.
There is a second, more common cause in everyday use. Even when everything still fits, an AI can overlook a detail in a very long conversation. If an answer ignores something you said earlier, repeating the key fact usually fixes it in either case.
How big context windows are
Window size is fixed for each AI system and is measured in tokens. At the time of writing, widely used systems range from around a hundred thousand tokens to a million or more. For English, 100,000 tokens is about 75,000 words, roughly the length of a novel.
That is why an ordinary chat rarely runs out of room. The limit tends to matter when you attach large files, paste long documents or keep one conversation going for a very long time.
Sizes are counted in tokens, not words. Try the token lesson to see how the two differ.
Working with the limit
- Repeat what matters. If a long chat drifts, restate the key facts in your next message.
- Start a fresh chat for a new task. A short, focused conversation gives the AI less to sift through.
- Bring the important part. With a very long document, paste or point to the section you care about.
- Do not rely on it remembering. Unless the app has a memory feature, a new chat starts from nothing.
Common questions
Is the context window the AI's memory?
Not in the way people usually mean. It is closer to what is on the desk in front of the AI right now. Anything inside the window can be used; anything outside it does not exist for the AI. Some apps add a separate memory feature that saves notes about you and places them back into the window in later chats.
What happens when the context window is full?
It depends on the app. Some drop the oldest messages, some replace earlier parts of the conversation with a shorter summary, and some stop and ask you to start a new chat. In each case the AI no longer receives the full original text.
How many words fit in a context window?
Sizes are given in tokens. For English, 1,000 tokens is roughly 750 words, so a 100,000-token window holds about 75,000 words. Sizes differ a great deal between AI systems and change often, so check the figure for the one you use.
Do the AI's own replies count towards the limit?
Yes. The window holds the whole conversation: your messages, the AI's replies, any files you attach and the instructions the app adds behind the scenes.
Does a bigger context window mean better answers?
It means more can fit, which helps with long documents and long conversations. It does not guarantee the AI will use everything well. An AI can still overlook a detail buried in a very long text.
Does starting a new chat clear the context window?
Yes. A new chat starts with an empty conversation, so nothing from the old one is in the window unless the app has a memory feature or you paste it in again.
Last updated