An uploaded 300-page manual: the assistant answers well about early pages but ignores later ones
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
A user uploads a 300-page product manual. The assistant answers accurately about content from the first dozen pages but acts as if anything in the back half of the document doesn't exist. Walk through the likely causes and how you would confirm and fix each.
Early-works-late-fails is a coverage bug: either ingestion truncated the doc so late chunks were never indexed, or retrieval can't reach them. Confirm by counting chunks per page; don't stuff the whole manual in.
Imagine you photocopy a 300-page book to make searchable index cards, but your copier jams after page 30. Now anyone searching only ever finds cards from the front of the book — the back half might as well not exist. That is one cause: the upload step quietly stopped partway, so the later pages never became searchable cards at all. The other cause is subtler: all the cards exist, but you only ever pull the five cards that look closest to the question, and the front of book cards keep winning that contest. Either way, the fix is to make sure every page becomes a findable card and that your search reaches deep enough — not to dump the entire book on the reader's desk and hope.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
5 min: read the positional cutoff as a coverage symptom, separate ingestion truncation from retrieval reachability, confirm by counting indexed chunks per page, apply the matching fix, and reject the stuff the whole doc anti-pattern.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Jumping to 'the model has a context limit, so let's stuff the whole 300-page manual into the prompt' — that bypasses retrieval, blows up cost, and triggers lost-in-the-middle instead of fixing the real coverage bug.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.