AI Use Cases

Guide · updated 2026-11-19

Why an AI assistant makes things up about your PDF, and how to make it stick to the file

The four reasons a chat assistant invents answers about a PDF, a two minute test for each, and the prompt that makes it answer only from the document.

An AI assistant makes things up about a PDF for one of four ordinary reasons: the file has no real text in it, the assistant read only part of it, the answer is not in the file at all, or an older file in the same chat is leaking into the answer. A language model writes the most likely next words, and when the file does not supply them, it fills the gap from what it already knows. Each cause has a test that takes under a minute and a fix that matches it. Run the tests first, then apply the one fix that fits, instead of rewording the same question until it sounds right.

What does it look like when an assistant invents something about a file?

It looks like a confident answer that you cannot find in the document. The usual signs:

  • A quote that sounds right but does not appear anywhere when you search the PDF for it.
  • A page number that points at a page about something else.
  • A summary of the right topic with the wrong figures, names or dates.
  • A description of a different kind of document altogether, such as a contract described as a report.
  • A claim that the file is empty, or that it cannot see the file, when you uploaded it a moment ago.

None of these mean the assistant is broken or that your file was swapped with someone else's. They mean the model is answering without the text it needed, and the next sections find out why.

The two minute diagnosis

Run the tests in order. Stop at the first one that fails, because that is your cause.

What you seeThe quick testThe likely causeThe fix
Answers are vague or about the wrong kind of documentOpen the PDF and try to select one sentence with your cursorThe file is a scan with no text layerRun text recognition (OCR) on the file, then upload it again
Early pages are right, later pages are wrongAsk for a word for word quote of the last sentence on the last pageThe assistant read only part of the fileSplit the file into sections and ask about one at a time
A detailed answer to a question the file never coversAsk: "Quote the sentence that says this. If there is none, say so"The answer is not in the file, so the model guessedTell it to answer only from the file and to say when the file is silent
Names, figures or details from another document appearStart a fresh chat, upload only this file, and ask the same questionAn older file or earlier message in the chat is mixing inUse one chat per document, and remove old files from projects

Does the file actually have text in it?

Check this first, because it is the most common cause and the easiest to miss. A PDF made by scanning or photographing paper is a picture of text, not text. Open it and try to select a single sentence. If the cursor draws a box around the whole page instead of highlighting words, there is no text layer.

Some assistants look at each page as an image as well as reading its text. Anthropic's PDF support documentation describes converting each page into an image and extracting the text alongside it (read 2026-11-19). Reading a picture of a page is less reliable than reading its text, and a blurred or skewed scan makes it worse. Small print, handwriting and tables are where the guessing starts.

The fix is text recognition, often called OCR. Acrobat Pro and a number of free online tools can add a text layer to a scanned PDF. Run it, check that you can now select a sentence, and upload the new file. For scans with tables or complex layouts, a document tool that converts the file to clean text first, such as Docling, gives the assistant something it can actually read.

Did the assistant read the whole file?

Not always. Every assistant has a limit on how much text it can hold at once, and a long or dense PDF can pass it. Anthropic's developer documentation notes that dense PDFs with small print, complex tables or heavy graphics can fill the context window before they reach the page limit (read 2026-11-19). Some chat apps also search a long file for the passages that look relevant and answer from those, so a section that did not match the search is never seen.

The test: ask for a word for word quote of the last sentence on the last page, and of one sentence from the middle. If it cannot quote them, or quotes something you cannot find, it did not read those parts.

The fix:

  • Split the PDF into sections, such as one chapter or twenty pages per file, and ask about one section at a time.
  • Remove pages you do not need, such as appendices and reference lists, before you upload.
  • Name the section in your question: "In section 4, what does it say about notice periods?"

What happens when the answer is not in the file?

The model answers anyway, unless you tell it not to. A chat assistant is built to be helpful, and a question with no answer in the file is still a question it will try to answer, drawing on everything it learned in training. The result reads exactly like an answer taken from your document.

Anthropic's guide to reducing hallucinations lists the counter measures in plain terms: give the model explicit permission to say it does not know, ask for word for word quotes before the answer on documents over about 20,000 tokens, have it cite a quote for every claim and retract any claim it cannot support, and tell it to use only the provided documents and not its general knowledge (read 2026-11-19). The same page says these techniques reduce invented answers but do not remove them, so important answers still need checking.

The test is the question in the table: ask it to quote the sentence that supports its answer, and to say so if there is none. A real answer comes back with a sentence you can find in the PDF. An invented one comes back with a paraphrase, a vague reference, or an admission.

Why do answers from an older file turn up?

Because the assistant sees everything in the conversation, not just the file you uploaded last. If you asked about one contract and then uploaded another in the same chat, details from the first can turn up in answers about the second. The same happens with files stored in a project or a custom assistant's knowledge section, which are included in every chat that uses it, and with memory features that carry facts between chats.

The fix:

  • Start a new chat for each document.
  • Upload only the file you are asking about.
  • Remove old files from a project or custom assistant when you move on to a new one.
  • Turn off memory for the session, or check what it has stored, if details keep coming back from earlier work.

How do you make it answer only from the document?

Combine the fixes into one instruction at the start of a fresh chat, with only the one file attached. This prompt applies each counter measure above:

Answer only from the attached PDF. Do not use general knowledge. For every claim, give the page number and a word for word quote that supports it. If the PDF does not answer the question, reply "Not in the document" and nothing else.

Then check two or three of the quotes by searching the PDF for them. If every quote is real, you can trust the rest of that chat a good deal more. If one is not, the tests in the diagnosis table tell you which cause to look at.

This works in ChatGPT, Claude, Gemini and most other chat assistants, because none of it depends on a setting. It reduces invented answers. It does not end them, and a quote you have not checked is still a claim.

When should you use a tool built for documents instead?

Use one when you ask questions of documents often, when the files are long, or when a wrong answer would cost you something. Document tools are built around the steps above: they keep answers tied to the files you add and show where each answer came from. Google's help page for NotebookLM, which the page now titles Gemini Notebook, describes answers based on your uploaded sources with clear inline citations, and lists missing information in the sources as one reason a question goes unanswered (read 2026-11-19).

Citations make checking fast, but they do not make a tool infallible. A tool given a scan with no text layer, or a file it only partly read, still answers from what it has. The diagnosis applies to every tool.

The chat with documents use-case page ranks the tools built for this from public evidence, including NotebookLM, ChatPDF and the general assistants such as Claude and ChatGPT. The free tools for chatting with documents list covers the options that cost nothing. If you are still deciding what kind of tool you need at all, how to choose an AI tool for a task walks through it.

FAQ

Why does the assistant answer confidently about pages it never read?

A language model writes fluent text whether or not it has the source in front of it. Confidence is a property of how it writes, not a sign of what it read. Ask for a quote from the page in question, and treat an answer it cannot quote as a guess.

Does asking for page numbers stop invented answers?

Not on its own. A model can invent a page number as easily as a fact. Ask for the page number and a word for word quote, then search the PDF for the quote. The quote is what you can check.

Is a paid plan better at reading long PDFs?

A plan or model with a larger context window can hold more of a long file at once, which helps with the partial read cause. It does nothing for a scan with no text layer, a question the file does not answer, or an older file mixing in. Run the diagnosis before you pay for more capacity.

Do document chat tools have the same problem?

Yes, less often. Tools built for documents tie answers to your sources and show citations, which makes invented answers easier to catch. They still depend on the file having readable text and on the answer being in it, so the same tests apply.

Find a tool that sticks to your documents

Compare the tools built for asking questions of documents, with a reason for and against each one, on the chat with documents use-case page.

More guides