Topic 2 of 4 · 3 min read
Details lost in long documents
Goal: Spot an answer that missed or misplaced a detail from the middle of a long source.
A model reads a long document unevenly: it tends to catch what is near the start and the end and can miss what sits in the middle. A bigger context window lets you paste more. It does not promise that every part will be used.
Check yourself · 1 of 3
Research on long inputs found that models often do best when the needed fact is in which place?
Why it matters
You paste a 40-page contract, a long email thread or a set of meeting notes and ask a question. The answer sounds sure. But the key date was on page 22, and the reply quotes an older date from page 3. Nothing signals the miss. A published study called "Lost in the Middle" found that models answered best when the needed fact was at the start or end of the input and worse when it was in the middle. Chroma's "Context Rot" tests found that answers on many models get less reliable as the input grows, even on simple tasks.
Vendors now say the same. The Claude docs note that more context is not always better, because accuracy can fall as the window fills.
How to work with long inputs
- Ask narrow questions. "What is the notice period in section 9?" is safer than "What are the key terms?"
- Ask for quotes. Tell the model to quote the exact sentence it relies on, with the section name. You can then check the quote against the source in seconds.
- Cut the input down. Paste only the sections you need. Fewer pages means fewer places to lose a detail.
- Put the question and key rules where they are seen. Many vendors advise placing long documents first and the question after them. Repeat the most important instruction at the end.
- Split big jobs. Process one section at a time, then combine the results yourself.
- Spot-check the middle. Pick two or three facts you know are in the centre of the source and see if the answer used them.
Before and after
Weak: "Here is our 60-page supplier agreement. List all the deadlines." The reply gives four deadlines. The document has seven. The three missing ones were all in the middle.
Better: you paste one section at a time and ask "List every deadline in this section, with the sentence that states it." You get a complete list you can check line by line.
What goes wrong
- Missing detail. The answer leaves out a fact that is in the source.
- Misplaced detail. The model uses a similar fact from another place, such as the old date instead of the new one.
- Blended facts. Two nearby details merge into one that neither section said.
- False completeness. "Here are all the deadlines" sounds final even when the list is partial.
Examples
Seven deadlines, four found
Source: a 60-page supplier agreement with seven deadlines. Three are in sections 12 to 15, in the middle.
Prompt: List all the deadlines in this agreement.
Output: "The agreement has four deadlines: signing, first delivery, first payment and renewal notice."
Check: The three in the middle (audit window, insurance renewal, dispute filing) are absent. The reply sounds complete. Re-ask section by section and request the sentence for each deadline.
Quotes make the check cheap
Add one line to the prompt: "For each answer, quote the exact sentence and give its section number."
Now a wrong or invented answer shows up fast. If the quote is not in section 9, or the sentence says something different, you know to distrust that line and the lines near it.
Key points
- Models often use details at the start and end of a long input better than details in the middle.
- A larger context window means you can paste more, not that every part will be read with equal care.
- Narrow questions and requests for exact quotes make a missed detail easy to catch.
- Splitting a long source into sections and asking about each one reduces lost details.
- A confident "here are all of them" does not prove the list is complete.
Common mistakes
- Pasting a very long document and asking for "everything important" in one go.
- Trusting a list because it sounds complete, without counting items in the source.
- Assuming a bigger context window removes the need to check the middle of the document.
- Not asking for quotes, so there is nothing quick to verify the answer against.
Check yourself · 2 of 3
You paste a long report and need every date in it. Which approach gives the most reliable result?
Check yourself · 3 of 3
An assistant says "Here are all the risks in the contract" and lists five. What is the best next step?
Practice items, not counted towards your mastery.
Start here
- Instruction-Following Evaluation for Large Language Models (IFEval) (opens in a new tab)PaperFree
A benchmark of checkable instructions such as word counts and required keywords, used to measure what models skip.
- Lost in the Middle: How Language Models Use Long Contexts (opens in a new tab)PaperFree
Research showing models use details at the start and end of a long input better than details in the middle.
- Context Rot (Chroma research) (opens in a new tab)ArticleFree
Tests of many models showing answers get less reliable as the input grows, even on simple tasks.