AI basics

What is a context window? Why AI forgets long conversations

The context window is how much text an AI model can consider at once. Learn what fills it, why long chats drift, and simple ways to work within the limit.

Cortexpost Editorial TeamArtificial intelligence 5 min read
A person at a small desk lit by a single lamp, with papers in the pool of light and more papers stacked in shadow

A context window is the amount of text an AI language model can take into account at one time. Everything the model uses to write its next reply, your messages, its earlier answers, any pasted documents and hidden instructions, has to fit inside it.

This guide explains what a context window is, how it is measured, what happens when a conversation outgrows it, why models can miss details even inside the window, and practical habits that keep long tasks on track.

What does the context window actually hold?

Think of the context window as the model’s working desk. Only what is on the desk can be used. A language model has no other short-term memory: each time it replies, the whole conversation so far is sent to it again, and it reads everything on the desk from the top.

The desk usually holds more than you see. Typical contents include the following, all competing for the same space.

  • System instructions from the tool’s maker that set the assistant’s behaviour.
  • Any custom instructions or saved memories you have added.
  • Your messages and the assistant’s replies so far.
  • Documents, web pages, images or search results that were added to the chat.
  • Space reserved for the reply the model is about to write.

How is a context window measured?

Context windows are measured in tokens, the small chunks of text models work with. In English a token is roughly three quarters of a word, so a window of a given number of tokens holds somewhat fewer words.

Window sizes have grown a great deal over time. Early language models could hold only a few pages. Many current tools can take in whole reports or long books in one go. The exact figure depends on the model and the plan you are using, and the tool’s documentation usually states it.

Images, audio and attached files also use tokens, sometimes a lot of them, so a few large files can fill the window faster than you might expect.

Memory is a way of choosing what goes on the desk, not a bigger desk.

What happens when a conversation gets too long?

When the total goes past the limit, something has to give. Different tools handle it differently. Some drop the oldest messages. Some quietly summarise earlier parts of the chat and keep the summary instead. Others show a warning or refuse to accept more text.

From your side, the symptoms are similar. The assistant forgets a rule you set at the start, repeats a suggestion you already rejected, or loses track of names and numbers from early on. It is not being careless. The information is simply no longer on its desk, or only a compressed version is.

A good test is to ask the assistant to restate the key rules or facts you gave it earlier. If its summary is missing something important, paste it back in before you continue. That takes seconds and saves you from building on a reply that has quietly drifted.

Can AI miss things even inside the window?

Yes. Having text in the window does not guarantee the model gives it equal attention. Research has found that some models are better at using information near the start or end of a long input than material buried in the middle.

Long, cluttered contexts also make it harder for the model to tell what matters. If you paste five documents and ask a narrow question, it may blend details from the wrong one. Quality, focus and clear labels matter as much as raw size.

Bigger windows help, but they are not a guarantee of perfect recall. Check that key details from a long document made it into the answer.

Is the context window the same as memory?

No. The context window is short-term and lasts only for the current conversation. When you start a fresh chat, it begins empty, apart from any standing instructions.

Some assistants offer a memory feature that saves facts about you, like your job or preferred tone, and inserts them into future chats. That saved information still has to be placed into the context window each time. Memory is a way of choosing what goes on the desk, not a bigger desk.

The same is true for tools that let you upload a library of files. Behind the scenes, the tool searches your files for the passages most relevant to your question and places only those into the window. If the search picks the wrong passages, the answer will miss things, even though the right file is technically available.

How can you work well within the limit?

A few habits make long tasks far more reliable, whatever the size of the window.

Start a fresh conversation when the topic changes. Old, unrelated messages take up space and can confuse the model. For a long project, keep a short running summary of decisions and paste it at the top of a new chat when the old one becomes sluggish or inconsistent.

With long documents, ask about one section at a time, or ask for a summary of each part first and then work from the summaries. Put your most important instructions near the end of your message, right before the question, and restate key rules if the conversation has been going a while.

Frequently asked questions

What is a context window in AI?

+

It is the maximum amount of text, measured in tokens, that a language model can consider at once. It includes your messages, the model’s replies, attached documents and hidden instructions. Anything outside it is invisible to the model.

Why does my AI chat forget what I said earlier?

+

Most likely the conversation has outgrown the context window, so early messages were dropped or summarised. It can also happen inside the window if the detail is buried in a lot of text. Restating key points or starting a fresh chat with a summary helps.

Does a bigger context window make AI smarter?

+

Not smarter, but able to work with more material at once, such as long reports or large codebases. It does not guarantee the model uses every part well, and very long inputs can be slower to process.

How many pages fit in a context window?

+

It depends on the model. A useful rough guide is that a page of typical prose is a few hundred tokens. Divide the window size by that to get an estimate, and remember that space is also needed for the reply.

Does the context window reset in a new chat?

+

Yes. Each new conversation starts with an empty window, apart from system instructions and any saved memories or custom instructions the tool adds automatically.

What happens if I paste a document that is too long?

+

The tool may refuse it, cut it off, or only use part of it. Split the document into sections, or ask the assistant to work through it piece by piece.

The context window is the AI’s desk: limited, cleared for each new chat, and easy to clutter. Keep what matters on it, clear away what does not, and long conversations become far more dependable.

How we research: Guides are written from established sources and checked for accuracy. They are general information, not professional advice.

Written by

Cortexpost Editorial Team

Artificial intelligence

Our writers work with AI tools every day and explain them plainly, without hype or doom.

More Stories

View all →