How to — check if a long context window is actually usable

You are about to send a 300-page contract, a whole repository, or two years of support tickets to a model because the card says the window holds a million tokens. Whether the model can work in that space is a different question, and it is one you can answer in an afternoon with your own documents.
The advertised number is a capacity, not a capability. The largest independent evaluations of long context all find the same shape: accuracy slides as the input grows, and it slides fastest on questions that resemble real work, where the answer has to be assembled from two places rather than spotted by exact wording. Chroma tested 18 models across four task families and found performance dropping with input length even when the task itself stayed identical and trivial — the only variable was how much text sat around it, per Chroma's Context Rot report.
That is why the vendor chart with the flat green line proves less than it appears to. It is worth knowing what a context window is measured in before you shop on it — What is a context window? covers the units — but the number you need is not on the model card. Here is how to measure your own.
1. Build the test corpus from your worst documents, not a sample
Take the actual material you intend to send, and deliberately include the parts that look alike: three amendments with near-identical clause numbers, four code files with a function named the same thing, tickets that all mention the same error string. Filler is easy for a model to ignore; near-misses are what pull it toward the wrong passage. If you only have clean, well-labeled documents, you have not built a hard test — go find the messy folder people avoid opening.
2. Write questions that require joining two facts
A question with one answer in one paragraph tests lookup, which every model passes. Write the questions your users actually ask: which clause in the appendix contradicts the termination date on page four, which of the two migrations changed the column type, which ticket first reported the timeout that the runbook now blames on the network. Each one should need at least two separated passages, and you should know the correct answer cold. Twenty to thirty is plenty; a hundred re-tested questions tell you nothing new.
3. Sweep length and position, and plot the curve
Run the same question set at four input sizes — roughly a quarter, half, three quarters and the full window you intend to use — and move the supporting passages between the start, middle and end of the input. Do not let every answer sit in the first paragraph of a short file. What you are looking for is the knee: the length at which accuracy starts falling, not the average across all of them. A model that scores 94% at 20,000 tokens and 71% at 400,000 has told you its working length, and it is not the advertised one. Vary position because retrieval quality is uneven across a long input, and an answer that sits mid-document is the one most likely to go missing.
4. Score harshly, and demand a located quote
Three buckets, not a percentage: correct, wrong, and confidently wrong with a plausible fabrication. The third bucket is the one that ships bugs, so count it separately and treat it as worse than a refusal. Require the model to quote the sentence it used and where it sat in the document. An answer you can check against a line number is evidence; an answer without a locatable quote is a guess wearing a suit, and it scores zero. Running each question twice is also cheap information — if the same question gets different answers on identical input, your accuracy figure is noise.
5. Run the cheap baseline and let it compete
Send the same questions through a short-context path: retrieve the five most relevant chunks, or hand the model only the sections a search turned up, and compare. If that ties or wins, the long window is buying you nothing and charging for it. The gap is large enough to matter. In the NVIDIA Research study on context management, reading selectively instead of pasting the file cut cost by 6.5 to 54.6 times depending on the task, with no accuracy loss — and needle-style scores actually improved, because a target sentence is easier to find in a small input than buried in filler. The serving economics behind that gap are worth knowing before you budget for a million-token habit: Long context costs 3.6x to 7x more per token. Retrieval is also auditable in a way a giant prompt is not: you can see the five chunks and argue with them.
6. Set your production budget below the knee
Whatever length held up in step three, subtract headroom for the prompts that will arrive longer and messier than your test set. That number becomes the limit your application enforces, and the point where it summarizes or falls back to retrieval. Writing it down is the whole exercise: a documented budget of, say, 120,000 tokens with an alert when prompts approach it is worth more than a model upgrade, because the failure mode you are preventing is silent.
Don't do this: trust the needle test
Do not accept a vendor's needle-in-a-haystack result as evidence your workload will hold up. That test plants a distinctive sentence in unrelated text and asks for it back — a lexical lookup on filler. NoLiMa rebuilt the same test so the question and the answer share almost no words, and at 32,000 tokens 11 of the 13 models tested fell below half of their own short-context scores; GPT-4o dropped from 99.3% to 69.7%, according to the NoLiMa paper. RULER found a similar cliff across 17 long-context models, with only half holding satisfactory performance at 32,000 tokens despite nearly perfect needle scores, the RULER authors report. If a chart has no near-miss passages in it, it is not testing your job.
How you'll know it worked
The curve stays flat at the length you actually use in production. Every answer carries a quote you can find on the page it cites, and the confidently-wrong bucket is near zero rather than merely small. The short-context baseline stops beating the long one on cost and starts losing on accuracy at the margin. And when you re-run the set a week later, the numbers land within a few points — which means you measured the model, not the afternoon.
What was the first thing that broke when you pushed a long context window into production? Write to us via our contact page.






