← Blog

AI How-To Guides

How much context to give AI: test it before you blame the model

November 26, 2026 · 6 min

How much context to give AI: test it before you blame the model

Give AI the context that stops it from doing the task wrong, and leave out the rest. If an answer disappoints you, run the same task three ways before you blame the model: the task alone, the task plus the rules it needs, and those rules plus extra material. Keep whatever changes the answer. Cut whatever doesn't.

How much context should you give AI?

Enough that a capable stranger could do the task without guessing. That usually means a few sentences, not your whole project folder.

Necessary context is any detail whose removal would make a correct answer impossible or a wrong answer likely.

A quick test for each line you're about to paste: if you deleted it, would the answer change? If you can't say yes, it probably doesn't belong in the prompt.

What counts as necessary context?

Most useful context falls into five groups:

  • The goal and the reader. "A reply a frustrated customer will read on their phone" tells the model more than "write a reply."
  • Constraints. Length, format, tone, deadline, budget, anything the answer must not exceed.
  • The rules that currently apply. The policy, spec or style guide the answer has to follow, with its current version marked.
  • One example of the input and the output you want. One clear example often does more than a paragraph of description.
  • What must stay unchanged. When you ask for edits, a short do-not-touch list keeps the model away from parts you didn't ask about.

Background history, every earlier draft and the full email thread usually fail the deletion test. Paste them only when the task depends on them.

Why can more context make the answer worse?

Because the model has to find the part that matters, and long inputs make that harder.

The 2023 paper Lost in the Middle found that performance is often highest when the relevant information sits at the beginning or end of the input, and drops significantly when models must use information buried in the middle of a long context. Chroma's Context Rot report evaluated 18 models and found that performance grows increasingly unreliable as input length increases.

Both are research findings about specific setups, not a rule that every model fails the same way on every prompt. They do explain a pattern many people notice: you paste more "just in case," and the answer gets vaguer or follows the wrong detail.

A bigger context window doesn't change this. A window is how much a model can accept, not how much your task needs. If you're curious about window sizes themselves, see our context window comparison.

How do you test the right amount of context?

Keep the task and the model fixed, and change only the context. Three versions are enough:

  1. A: task only. "Route this support ticket: I need a new device."
  2. B: task plus the rules it needs. Add the two policies that decide the route.
  3. C: B plus extra material. Add the kind of thing you'd normally paste along: an old policy, a long thread, last quarter's notes.

Then compare. If A already gets it right, you were over-explaining. If A fails and B succeeds, the problem was missing context, not the model. If B succeeds and C fails, the extra material is hurting, and you've learned what to cut.

You can reuse this prompt to frame the test:

Here is a task and the context I'm giving you. Answer the task. Then list which parts of the context you actually used, and which parts you ignored or found confusing. Do not invent details I did not give you.

The "which parts did you use" line isn't proof of what the model relied on. It's a useful hint about what to trim next.

What should you do with outdated context?

Delete it if you can. If you can't, for example because the old rule explains a customer's expectation, label it plainly and ask the model to cite the rule it used.

We recorded one small example of this in EVA on November 25, 2026, using GPT-6.1 Sol. The prompt gave two current policies and one archived policy that pointed the other way:

Route this fictional support ticket using only the supplied policy. Return three short lines: route, supporting policy IDs, required clarification. P1: replacement means an existing line. P2: adding a line requires explicit confirmation. Archived P0: all new-device requests add a line; obsolete, do not use. Ticket: I need a new device. Do not take an account action. Ask if replacement or adding a line is unclear.

The answer, unchanged:

Route: Clarification needed; no account action. Supporting policy IDs: P1, P2. Required clarification: Are you replacing a device on an existing line or explicitly requesting an additional line?

GPT-6.1 Sol's recorded EVA answer citing P1 and P2 and asking whether the request is a replacement or a new line

The model cited the current policies, didn't rely on the archived one, and asked the clarifying question instead of guessing. It returned one paragraph rather than the three separate lines we asked for, so the format instruction wasn't fully followed.

This is a single answer from one model with a short, clearly labeled prompt. It shows what a good label plus a "cite the rule you used" request looks like. It doesn't show how any model behaves when the old rule is unlabeled or buried in a long document, and that's exactly the case to test with version C above.

Where should the context go in the prompt?

Put long material first and the question last. Anthropic's prompting guide recommends placing long documents near the top of the prompt, above the query and instructions. It says that in its own tests, putting the query at the end improved response quality by up to 30 percent, especially with complex, multi-document inputs.

That's one provider's guidance from its own tests, not a universal law. It's cheap to try, though, and it fits the Lost in the Middle finding: don't leave the instruction that matters most in the middle of a long paste.

A simple order that works for most tasks:

  1. Long reference material, each piece labeled (and marked "obsolete" where it is).
  2. The rules that apply now.
  3. The task, the format you want, and what to do if something is unclear.

FAQ

Does a bigger context window mean I should paste more?

No. The window is a limit on how much the model can accept. What your task needs is usually much smaller, and extra material can make the answer less reliable.

How do I keep context when I switch to another model?

Write a short handoff note with the goal, decisions so far and open questions, rather than pasting the whole conversation. Our guide to switching AI models without losing context walks through it.

Should I test with more than one model?

If you're deciding whether the model or the context is the problem, yes. When two models both struggle on version A and both succeed on version B, the context was the issue.

Run the same task with two context levels side by side in EVA, and keep only the context that changes the answer.

Try EVA free

We count visits anonymously, without cookies. Accept to also allow analytics cookies, session recordings, and limited sharing with Google to measure our ads. Our analytics never collect the content of your chats. Privacy Policy · Your Privacy Choices