Skip to content
Technology, explained from the insideAI · Software · Digital payments
TayoTechTalk.

How AI Works

AI Context Windows Explained: Why Chatbots Lose Details

By Temitayo Solomon Gbadebo · November 9, 2026
Stored documents and conversation supply selected information and a summary to a limited current context, which supports a checked response.

You explain a project to an AI assistant, discuss several options, and finally ask for a recommendation. The answer looks reasonable until you notice that it ignores the budget you mentioned at the start.

Did the model forget? That word describes the experience, but it does not identify the cause. The detail might no longer be included in the model’s input. It might be present but overlooked. Or a shortened version of the conversation might have dropped an important qualification.

The context window helps explain these possibilities. It is the bounded amount of information a model can work with during a request. Understanding it makes long conversations and document-based AI tools easier to use.

What goes into a context window?

Context can contain your question, conversation history, instructions supplied by the application, relevant documents and results returned by tools. The chat bubbles on screen are therefore not necessarily an exact view of everything the model receives.

Models process text as tokens, which can be words, parts of words or punctuation. As explained in how large language models predict the next token, token boundaries do not map neatly to word boundaries. For multimodal models, images and other media also consume capacity according to the model’s input-processing rules.

Google’s token documentation describes context in terms of input and output tokens. Check the particular model’s documentation: providers may list input capacity and maximum output separately, and some limits also account for reasoning tokens. A headline context size is not a promise that you can fill the entire allowance with a document and still request an equally large answer.

Think of a working desk, not a permanent library

A useful analogy is a desk with a limited working area. The model’s current context is the material laid out for this task. An application’s stored conversation history is more like a filing cabinet: information can exist there without being on the desk right now.

Learned model parameters are a different layer again. Our explanation of training versus inference covers why supplying new context usually changes the input rather than retraining the model.

Consider a fictional shop comparing delivery partners. Its requirements are:

  • A monthly budget of ₦80,000.
  • Deliveries only within an agreed service area.
  • No customer phone numbers in the comparison document.

After a long discussion, the assistant recommends a ₦95,000 option. Before concluding that the model cannot understand budgets, ask whether the current request still contains the budget, whether an earlier summary preserved it correctly, and whether the answer actually checked the recommendation against it. These are different failure points.

Fitting information and using it correctly are different tests

A long context window makes more material available. It does not guarantee that every important detail will influence the answer correctly.

The research paper Lost in the Middle tested multi-document question answering and key-value retrieval. In the models and tasks studied, performance often depended on where the relevant information appeared. Important details in the middle of a long input could be harder to use than details near the beginning or end.

This is evidence from a specific study, first submitted in 2023, not a universal scorecard for current models. The useful lesson is methodological: test your actual task, including different information positions, rather than treating the advertised window size as a recall guarantee.

For the delivery comparison, create three versions of the same test. Put the budget near the start, in the middle and near the end. Keep the other facts unchanged. Check whether the answer rejects the over-budget option every time. A model that finds a single hidden number may still struggle to reconcile several constraints spread across documents.

What happens when the conversation gets too long?

There is no single behaviour shared by every chatbot. The application decides how to handle the model’s limits. It may reject an oversized request, remove material, summarise earlier messages, or retrieve selected information when needed.

Truncation means cutting a sequence to a chosen length. Hugging Face’s tokenizer documentation shows that developers can explicitly enable truncation and set a maximum length. That capability does not tell us whether a particular consumer chatbot uses it, or which messages it keeps.

Summarisation offers another trade-off. A short note may preserve the main decision while losing an exception. “Budget around ₦80,000” is weaker than “Total monthly cost must not exceed ₦80,000, including all mandatory fees.” In this example, losing four words can change the recommendation more than losing several paragraphs of background.

Anthropic’s context engineering guidance discusses compaction, which condenses accumulated context, and retrieving information as it becomes relevant. It also cautions that overly aggressive compaction can lose critical details. These are application design choices with benefits and failure modes, rather than evidence that a model has unlimited memory.

A better way to run a long AI task

For consequential work, keep a short, explicit brief that you can inspect. The following is an illustrative briefing format, not a claim that any chatbot will follow it perfectly:

  • Goal: compare delivery partners for the fictional shop.
  • Hard constraints: total monthly cost at or below ₦80,000; agreed service area only; exclude customer phone numbers.
  • Sources: use the supplied, dated quotations and identify missing fees.
  • Output: explain which options qualify and cite the quotation supporting each cost.
  • Uncertainty: flag missing information rather than inventing a price.

Restate this brief when the task changes or the conversation becomes unwieldy. Preserve exact requirements separately from exploratory discussion. If a summary will be used for the next stage, review the summary before relying on it.

For document questions, ask for the supporting section or passage and check it against the original. A citation is a useful route back to evidence, but the citation itself can be wrong. If a result depends on several documents, verify that the application actually supplied the relevant versions.

How to diagnose a missed detail

  1. Check availability. Was the relevant information included in the request or retrieved successfully?
  2. Check preservation. Did a summary change a number, exception, deadline or hard requirement?
  3. Check interpretation. Was the instruction clear, or did two documents contradict each other?
  4. Check the answer. Does the result satisfy each requirement, with evidence where needed?

A fresh conversation with a carefully prepared brief can help isolate the problem, but it is not an automatic cure. You still need to provide the necessary evidence and review the output.

The practical question is not simply “How much can this AI remember?” Ask what information it has for this response, how that information was selected, and whether the answer demonstrates that it used the important parts correctly.