Skip to content
Visionwork
Log in

Free resources · For businesses

Does asking Claude to quote your document first make its answers more accurate?

A prompt that makes Claude quote your document before it answers. It did not change accuracy in a test of 144 replies, but every answer came with a findable sentence.

Can you trust an answer about your own document?

You give Claude a document and ask a question about it. Anthropic's advice is to "explicitly give Claude permission to admit uncertainty". For long documents, its advice is to "ask Claude to extract word-for-word quotes first before performing its task".

What was tested?

We used one made-up bakery information sheet of 145 words, and 24 questions about it. Twelve questions the sheet answers. Twelve it does not, and six of those assume a fact the sheet lacks, such as the flavors of the gluten-free cake. We asked each question 3 times with each of two prompts, so Claude Haiku wrote 144 replies. The plain prompt said "Answer the question." The other asked for the exact sentence first, then a one-sentence answer. It said to write "I don't know" if the sheet did not say.

What happened?

The cost was $0.0009 a reply for the plain prompt and $0.0010 for quote-first.

What does it mean?

Here the plain prompt almost never guessed, so quote-first changed little in accuracy. What it added was a way to check: each answer came with a sentence you can find in your own document.

How far can this be trusted?

What we would do

  1. Paste your document and your question into Claude, then add this prompt:
Quote the exact sentence from the document that answers the question, then answer in one sentence. If the document does not contain the answer, say "I don't know" and do not guess.
  1. Search your document for the quote Claude gave.
  2. If you cannot find the quote, treat the answer as unconfirmed and read the nearby text.

Check

Sources

Sign up for membership to see the sources.