Topic 2 of 5 · 4 min read
File size limits and partial retrieval
Goal: Tell from an answer whether the assistant read the whole file or only retrieved parts, and change the request to match.
An assistant has either the whole file in front of it or only a few excerpts pulled from it, and the right request is different for each case.
Check yourself · 1 of 3
A tool answers from retrieval. What does the model actually see when you ask a question?
Why it matters
You ask, "What are all the deadlines in this contract?" If the assistant read the full text, it can list every one. If it only retrieved three passages that matched your words, it lists the deadlines in those three passages and misses the rest. Both answers look the same on screen. You only get the right result if you know which case you are in.
Two ways a file reaches the model
- Whole file in the context window. The tool places the full text in the model's working space for the chat. The model can use any part of it. This is limited by size: a file that is too big for the window is cut or refused, and tools also set their own caps on file size and page count. The upload help pages for Claude and ChatGPT list the current caps, and they change, so read them.
- Retrieval. The tool splits the file into small chunks, stores them, and for each question it fetches the few chunks that look most relevant. The model sees only those. Claude Projects switch to this mode when the stored knowledge grows large, as described in Anthropic's help page on project retrieval. Other tools use similar designs.
Retrieval is good for finding a fact in a big pile of files. It is weak for tasks that need everything, such as "summarise the whole document", "count all the mentions" or "find anything that contradicts page 3".
Signs you got excerpts, not the whole file
- The answer quotes only a few places and none from other sections.
- A "complete list" is shorter than you expect.
- The answer changes when you reword the question, because different chunks were fetched.
- The tool shows source snippets or citations that all come from one or two spots.
Research on long inputs adds a second warning. In "Lost in the Middle", models used facts at the start and end of a long input better than facts in the middle. So even a whole file does not guarantee even attention.
Before and after
Before: "Find every clause about termination in the 300-page agreement."
With retrieval, the tool may fetch five passages that contain the word "termination" and miss clauses that say "ending the agreement".
After: "Read the agreement section by section. For each section, tell me whether it has anything on ending the agreement, using any wording. List section numbers, including those with nothing. Then give me the combined list."
This pushes the work from one lookup to a systematic pass.
What goes wrong
- You ask a whole-document question in a retrieval setup and get a partial answer.
- You assume a bigger upload means better coverage.
- You never ask which parts the assistant used.
Ask directly: "Did you read the whole file or only parts? Which sections did you use?" The reply is not perfect proof, but it is a useful prompt to look at the sources.
Examples
A list that is too short
A manager uploads 40 supplier contracts to a project and asks, "List every contract that auto-renews." The assistant names six. The manager knows there are more. The project was in retrieval mode, so only passages matching "auto-renew" came back. Contracts that said "continues for successive terms" were never fetched.
Fix: ask for one pass per contract with a fixed question, for example "Does this contract renew automatically? Quote the clause."
Asking about coverage
Prompt: "Before you answer, tell me whether you have the full text of the file or only excerpts. List the page or section ranges you used."
If the reply shows only a few ranges, change the request into section-by-section passes.
Key points
- A file reaches the model either whole, inside its working space, or as a few retrieved excerpts.
- Tools set their own caps on file size and pages, and those caps change, so check the help page.
- Retrieval suits finding a fact but fails on tasks that need every part, such as full lists or complete summaries.
- Answers that quote only a few spots, or change when reworded, suggest you got excerpts.
- Even a fully loaded long input is not read evenly, because models attend less well to the middle.
Common mistakes
- Asking a whole-document question when the tool only retrieves excerpts.
- Treating a bigger upload as a guarantee of fuller reading.
- Not checking the tool's current size and page limits.
- Never asking which parts of the file were used.
Check yourself · 2 of 3
You ask for every deadline in a long contract and the answer lists only four, all from the same part. What is the best next move?
Check yourself · 3 of 3
Which task is retrieval LEAST suited to?
Practice items, not counted towards your mastery.
Start here
- Upload files to Claude (Claude Help Center) (opens in a new tab)DocsFree
Anthropic's page on what file types Claude accepts and how it reads them.
- Uploading files and audio to ChatGPT (OpenAI Help Center) (opens in a new tab)DocsFree
OpenAI's page on file uploads, including limits and how spreadsheets and images are handled.
- Retrieval augmented generation (RAG) for projects (Claude Help Center) (opens in a new tab)DocsFree
Explains how project knowledge switches to retrieval of passages when it grows large.
More for this topic
- Lost in the Middle: How Language Models Use Long Contexts (opens in a new tab)PaperFree
The study showing models use information at the start and end of a long input better than the middle.