Skip to content
Valery

Module 1 · Lesson 3 of 6

Context windows and why chats forget

What fits in a model's working memory, how long documents like a status certificate behave, and why details in the middle get lost.

10 min

"It forgot what I told it." Every agent who uses a chat assistant for long enough says this. The reason is the context window: the limited amount of text a model can work with at one time. Understanding it explains why long chats drift, why a 200-page document can get a shallow answer, and how to set up a request so the model actually uses the part of a document you care about.

What a context window is

Key term
Context window

Everything a model can see for one request, measured in tokens: the instructions, the conversation so far, any attached documents and tool results, your new message, and the room it needs to write its answer.

Think of it as the model's desk. Whatever is on the desk, it can read. Whatever isn't on the desk doesn't exist for that request. The model's training (Lesson 1) is more like general education: broad, but fixed at a cutoff date and not specific to your client, your listing or your condo corporation.

What fills a context window
  1. InstructionsSystem prompthouse stylerules
  2. MemorySaved notes and project files the app adds
  3. HistoryEvery earlier message and reply in the chat
  4. AttachmentsPDFsimagesspreadsheets you uploaded
  5. Tool resultsWeb search resultsCRM lookups
  6. Your messageThe question you just asked
  7. Answer spaceRoom reserved for the model's reply

As of October 2026, vendors list large windows for their current models:

Model family (as of October 2026)Listed context window
Anthropic Claude Fable 5.1, Opus 5.5, Sonnet 5.5, Haiku 5.51 million tokens
OpenAI GPT-6 Astra, GPT-6.1 Sol, GPT-6 Luna1,050,000 tokens, with up to 922,000 for input
Google Gemini 4 Argon1 million tokens
Cohere Command A+128,000 tokens

Two cautions. First, these are the limits the vendors list for their APIs. A chat app, and especially a free plan, may give you less, or may cap how much you can upload; check the app's help pages. Second, the answer counts too. Current Claude and GPT-6 models can write up to 128,000 output tokens, and that space has to fit alongside everything else.

Why chats forget

Lesson 2 explained that every new message re-sends the whole conversation. When that conversation, plus attachments, gets close to the limit, the app has to do something. Depending on the product, it will:

  • drop the oldest messages quietly,
  • replace them with a short summary (often called compaction), which keeps the gist and loses details, or
  • tell you to start a new chat.

Any of these can make an early instruction ("always use the seller's preferred spelling of the street name") disappear.

A new chat starts blank. Some apps offer memory features that save short notes about you between chats; as of October 2026, Claude's free plan includes memory across conversations, and ChatGPT and Gemini offer their own versions. Memory stores notes, not whole documents, and it saves what the app decided was worth saving. Open the memory settings now and then to see what it kept, and keep client details out of it.

Bigger is not the same as better

Even inside the window, models don't pay equal attention to everything. A widely cited 2023 study, Lost in the Middle, found that performance is often highest when the relevant information is at the beginning or end of the input, and drops when it sits in the middle of a long context. Anthropic describes a related effect it calls context rot: as the amount of text grows, the model's ability to recall any one detail from it declines.

The practical lesson: a 1-million-token window lets you attach a lot, but the best answers still come from giving the model the parts that matter and asking a clear question.

Long documents: the condo status certificate

In Ontario, a condominium corporation must provide a status certificate on request under section 76 of the Condominium Act, 1998. The Condominium Authority of Ontario explains that it comes with documents such as the declaration, by-laws and rules, the budget, the most recent audited financial statements, the reserve fund study, insurance certificates and information about legal proceedings. A full package is long.

Here is an illustration. Say a package runs 200 pages at about 500 words a page. That is 100,000 words, or roughly 130,000 tokens by the rule of thumb in Lesson 2. It fits easily in a 1-million-token window. It does not fit in a 128,000-token model at all, before you even add instructions and room for the answer. And in either case, a question about the pet rules on page 112 is a "middle of the document" question.

Scanned pages add another layer. If the PDF is a scan, the model reads the pages as images or through text recognition, and tables of numbers (budgets, reserve fund projections) are where misreads happen. Check figures against the original page.

Try it

Use the visual below to fill a context window. Pick a window size, then set the pages of instructions, the number of chat turns, the pages of attached documents and the room kept for the reply. Try the 200-page package in a 128K window, then in a 1M window, then add a few hundred chat turns.

Fill a context window

Try it

Everything the model sees at once has to fit in its context window: your instructions, the chat so far, attached documents and room for its answer. Load it up and see what happens.

Context window
2 pages
30 turns
40 pages
4,000 tokens
  • Instructions (system prompt): 1,300
  • Conversation so far: 5,400
  • Documents you attached: 26,000
  • Room kept for the reply: 4,000

36,700 of 128,000 tokens (29%). It fits. Even so, models pay less attention to the middle of very long inputs, so put the most important material first or last.

Rule of thumb used here: a page of text is about 650 tokens and a chat turn about 180. Windows listed are typical sizes as of October 2026, not any one product.

Notice what happened. The document took most of the space. In the 128K window the total went over the limit, and something had to give: in a real app, the oldest turns are dropped, the document is cut short, or the request is refused. In the 1M window it fit, but the bar shows how much of the desk one document covers. That is the trade-off you manage every time you attach something large: more material on the desk means less room for history and answer, and more places for a detail to hide.

Working with long documents

A few habits make long-document work far more reliable:

  1. Start a fresh chat for each document. Old turns about another client only add noise.
  2. Put the document first and the question last. Anthropic's prompting guide recommends placing long documents above your question and instructions, which matches the "lost in the middle" finding.
  3. Ask narrow questions. "List every special assessment, with amount, due date and page number" works better than "Summarize this."
  4. Ask for quotes and page numbers. Then check them. Lesson 4 builds this into a routine.
  5. Split huge packages. Send the budget and reserve fund study in one request and the declaration and rules in another.

An AI read is a first pass, not a review

A buyer's lawyer reviews the status certificate. An AI summary helps an agent spot what to ask about and what to flag for the lawyer. It doesn't replace the lawyer's review, and the agent should say so when sharing it.

In practice

Alex, a salesperson at the fictional Lakeshore Homes Brokerage, has a buyer making a conditional offer on a condo at 88 Example Boulevard, Unit 1207 (fictional). The status certificate package arrives as a 140-page PDF. Here is how Alex works through it:

Status certificate first pass
  1. 1. DataStatus certificate PDF arrives
  2. 2. AINew chat, document attached first
  3. 3. AINarrow questions with page numbers
  4. 4. CheckAlex opens each cited page
  5. 5. HumanAlex writes questions for the lawyer
  6. 6. ActionSummary and questions go to the buyer and lawyer

Alex starts a new chat, attaches the PDF, and asks five specific questions at the end of the message: any special assessments (amount, due date, page), any increase in common expenses, what the reserve fund study recommends, any legal proceedings, and the rules on pets and leasing. Each answer must include a quote and page number, or say "not found in the document". Alex opens each cited page and checks the quote, catches one misread number in a budget table, and corrects it. The final note to the buyer lists the findings, the questions for the lawyer, and a line saying it is an agent's summary, not a legal review.

Common mistakes

  • Running a whole transaction in one endless chat, then wondering why early instructions stopped working.
  • Assuming a big context window means the model read every page with equal care.
  • Asking "Summarize this" about a 140-page package instead of asking specific questions.
  • Trusting figures read from scanned tables without checking the page.
  • Letting memory features collect client details you wouldn't want stored.

Key takeaways

  • The context window is everything the model can see for one request, including the room for its answer.
  • Current flagship models list windows around a million tokens as of October 2026, but apps and free plans may give you less.
  • Long chats get trimmed or summarized, so early details can vanish. Start fresh chats for new tasks.
  • Information in the middle of long inputs is easier for a model to miss. Put documents first, questions last, and ask narrow questions.
  • For long documents, demand quotes and page numbers, then check them.

Finished reading? Move on when you're ready.