Skip to content
mentoor

Topic 2 of 5 · 4 min read

Asking questions of an uploaded document

Goal: Ask questions of an uploaded document that require quoted passages, and confirm each quote exists in the source.

When you upload a document, ask the model to answer only from it, to quote the passage, and to give the page or section, then check the quote yourself. An upload gives the model your text to work from. It does not make the answer correct.

Check yourself · 1 of 3

You upload a staff handbook and want a checkable answer. Which request works best?

Choose one answer

Why it matters

Tools such as NotebookLM, Claude, ChatGPT and Gemini let you attach a PDF or a set of files and ask questions. This helps because the answer is tied to your material instead of to whatever the model remembers from training. But the model can still paraphrase wrongly, mix your file with its general knowledge, or quote a sentence that is not in the file. Long files may also be only partly read, because tools limit how much of a file they use.

How to do it

  1. Tell it to stay inside the file. "Answer only from the attached document. If the answer is not there, say so."
  2. Ask for a quote and a location. "Give the exact sentence in quotation marks and the page or section."
  3. Ask one question at a time. A single narrow question gives a quote you can check quickly.
  4. Check the quote. Search the file for a few words from it (Ctrl+F or Cmd+F). If it is not there, the quote is invented or reworded.
  5. Read around it. Open the page and read the sentences before and after. A real quote can still be taken out of context.

Before and after

Before: "What does the handbook say about remote work?"

The answer is a smooth paragraph with no way to check it.

After: "Using only the attached staff handbook, what is the rule on working from another country? Quote the exact sentence and give the section number. If the handbook does not say, reply 'Not stated'."

Now you get a quote, a location and a clear way to fail.

What goes wrong

  • The model answers from general knowledge when the file is silent, and does not tell you.
  • The quote is slightly reworded, which changes a "may" into a "will".
  • The page number is wrong, because it came from the model's guess and not from the file.
  • Only part of a long file was used, so the answer ignores a later section.

Treat each quote as a claim until you find it.

Examples

A grounded question

"Use only the attached lease. When must I give notice to end it? Quote the sentence and give the clause number. If it does not say, answer 'Not stated'." The reply names clause 14 and quotes it. You search the PDF for "written notice" and confirm clause 14 says the same.

A quote that fails the check

The model quotes "Employees may work abroad for up to 90 days." You search for "90 days" and find nothing. The handbook says "up to 30 days with manager approval". The quote was invented, so the whole answer is unreliable.

Key points

  • An upload ties answers to your file, but it does not guarantee they are correct.
  • Tell the model to answer only from the document and to say "not stated" when the answer is absent.
  • Ask for the exact quote and the page or section, so every answer can be checked.
  • Search the file for a phrase from the quote to confirm it exists.
  • A real quote can still be misleading, so read the lines around it.

Common mistakes

  • Asking broad questions that return paragraphs with no quotes.
  • Not telling the model what to do when the file does not contain the answer.
  • Trusting page numbers without opening the page.
  • Assuming a very long file was read in full.

Check yourself · 2 of 3

The AI gives a quote in quotation marks. What is the quickest way to check it?

Choose one answer

Check yourself · 3 of 3

What should you tell the model to do when the uploaded file does not contain the answer?

Choose one answer

Practice items, not counted towards your mastery.

Start here