Skip to content
mentoor

Topic 3 of 5 · 4 min read

What a million-token window buys

Goal: Judge whether to paste a whole collection of documents into a long-context model or send only the relevant parts, given size, cost and accuracy needs.

A very large window lets you send a whole book or codebase in one go, but it does not make the model reason well over all of it, and it costs more time and money than sending only what is needed. Several current models from Anthropic, Google and OpenAI advertise windows of hundreds of thousands to a million tokens. That is a real capability. It is not a reason to paste everything.

Check yourself · 1 of 3

What is the main benefit of a very large context window?

Choose one answer

What a big window is good for

  • Asking questions about one large document, such as a long contract or a report.
  • Summarising or searching a whole file you cannot easily split.
  • Reading several related files together when the answer needs links between them.

What it does not give you

  1. Perfect recall. A model can pass a simple "find the one hidden sentence" test and still do worse on harder work. The RULER paper tested this and found that many models claiming long windows lost accuracy on tasks beyond plain lookup.
  2. Good reasoning over everything. Combining facts spread across many pages is harder than finding one.
  3. Low cost. Providers charge by token, so a bigger input costs more on every call, and each turn resends it.
  4. Speed. Reading more input takes longer before the first word comes back.

Choosing between paste-all and send-the-relevant-part

Ask four questions:

  1. How much text do I really need for this question?
  2. Does the answer depend on links across the whole collection, or on a few passages?
  3. How often will I ask? Many questions over the same documents multiply the cost.
  4. How costly is a missed fact?

If the answer needs a few passages, find them first with search, a table of contents or a retrieval step, and send only those. Anthropic's contextual retrieval write-up describes this approach, and it also notes that for a small knowledge base you can simply include everything. If the answer needs the whole thing, use the big window and check the result.

Before and after

Before: "I have 400 support tickets. Put them all in and ask which bugs are most common."

After: Group tickets by product area first, send the tickets for one area at a time with the same question, then ask a final call to combine the short results. Each call is smaller, cheaper, and easier to check.

What goes wrong

  • Trusting a retrieval test. Passing one lookup test is not proof of good reasoning.
  • Paying on every turn for a huge paste you only needed once.
  • Skipping checks because the model "saw everything".

Examples

Whole contract versus the right clauses

Question: "Can we cancel without a fee after month 6?" Only the term, fees and cancellation sections matter. Send those three sections plus the question. For "Does anything in this 80-page contract conflict with our policy?", the whole text is needed, so use the large window and ask for quotes.

Splitting a big collection

For 400 tickets, summarise each product area in its own call, then combine the summaries in a last call. You get checkable steps instead of one huge answer you cannot verify.

Key points

  • A large window lets you send big inputs, but it does not guarantee the model uses all of them well.
  • Passing a simple find-the-fact test does not prove good reasoning over the whole input.
  • Bigger inputs cost more and are slower, and every turn resends them.
  • If the answer needs only a few passages, find them first and send only those.
  • Use the full window when the task truly depends on links across the whole text, and verify the result.

Common mistakes

  • Assuming a million-token window means a million tokens read equally well.
  • Pasting a full collection into every turn of a chat and paying for it each time.
  • Judging a model by one needle-in-a-haystack demo.
  • Never trying the smaller input first to compare answers.

Check yourself · 2 of 3

A model finds a single hidden sentence in a huge text every time. What can you safely conclude?

Choose one answer

Check yourself · 3 of 3

You need to answer one narrow question using 3 pages out of a 600-page archive. What is the sensible approach?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic