PRODUCTION SCENARIO
A pharma regulatory assistant answers questions over 80-page text-based submission PDFs, and reviewers must click through to the exact supporting sentence. The prompt says 'quote your sources', and an audit found 8 percent of quoted sentences do not exist in the documents.
Which design guarantees that every quoted sentence appears verbatim in the submitted PDF?
Answering here is anonymous. Nothing is saved unless you sign in.
Show answer and explanation
Answer: Pass the PDFs as document blocks with citations enabled on each block
With citations enabled the API extracts cited_text from the document you supplied and returns it with a page range, so the docs state citations are guaranteed to contain valid pointers into the provided documents; the app renders that field rather than model prose. Zero temperature makes generation repeatable, not grounded. A verifier that rewrites a failed quote is generating again. One chunk narrows the input and still leaves the quote to free-form generation.
Official Source: https://platform.claude.com/docs/en/build-with-claude/citations ↗