Tokens and Context Windows: Why AI Forgets Early Messages
AI reads text in tokens, not letters, and can only consider a fixed amount at once: its context window. Why long chats lose early instructions, and what to do.
📚 Using Generative AI · 28/54·⏱ About 4min read·Information updated 2026-11-03
📋 Key facts5
Token
A small unit into which the model splits text
Context window
The maximum number of tokens it can consider at once
When exceeded
Early content is cut or summarised and blurs
Even within it
Information in the middle tends to be used less
What to do
Restate key conditions; new chat per topic
Tokens are pieces of text
A language model does not read text one letter at a time; it cuts it into chunks of characters that often appear together. These chunks are called tokens. A common English word may be a single token, while an unfamiliar word or a different script may be split into several. How text is split differs from model to model, so the same passage can have a different token count depending on the service. Because many services count usage limits or charges in tokens, the same amount of text can cost differently depending on language and spelling.
The context window is the desk it works at
The context window is the maximum number of tokens a model can consider at once when producing an answer. Your question, any pasted material, the conversation so far and the model's earlier answers all have to fit inside it. Think of it as the size of a desk. A bigger desk lets you spread out more papers, but its size has a limit, and putting new papers down pushes old ones off. The window size differs between models and plans and changes often, so check the exact figure in the official documentation of the service you use.
Why long chats forget what came first
When a conversation grows beyond the window, the service cuts older parts or leaves only a short summary. This is often why a condition you set at the start, such as "polite tone, under 300 characters", stops being followed at some point. The model is not being stubborn; that instruction is simply no longer on the desk. How content is trimmed varies by service, and it is often not shown on screen, so once a conversation is long it is safer not to assume that early content is still fully there.
What gets missed even when it fits
Even when material fits inside the window, the model does not use every part equally. The 2023 paper "Lost in the Middle" by researchers at Stanford and elsewhere reported that models made good use of information at the beginning and end of a long input but less use of information placed in the middle. Models have been improving since, but it is still common for an important condition in the middle of a long document to be dropped. When you hand over long material, check whether the summary leans towards the beginning and end.
Remedies: restate conditions, split material
For long tasks, do not rely on conditions given at the start; restate the key ones with each important request. Split long documents by chapter or section, collect partial results and then ask for them to be combined at the end, so the middle is less likely to be lost. It is better to put your question clearly at either the start or the end of the material.
Keep a set of key conditions in a notepad and paste it in again when needed
Have long documents summarised in parts, then combined
Check with "First list which of the conditions above you are applying now"
The habit of starting a new chat
When the topic changes, it is better to open a new conversation than to keep going in the same one. Content from the previous topic takes up the window, leaving less room for the new question, and irrelevant earlier context can creep into the answer. If you need to continue a long task, ask for a summary of what has been decided and what remains, then paste that summary as the first message of a new conversation. Even if a service has a feature that remembers past chats, what it remembers differs between services, so check for yourself.
Summary
Tokens and context windows explain why AI suddenly forgets earlier content and why it misses important parts of long documents. Keep the following in mind.
The same text has a different token count depending on the model
Window sizes vary by service and plan and change, so check official documentation
In long chats, early conditions can disappear
Even inside the window, information in the middle is easy to miss
New topic, new chat; to continue, start with a summary