Chain-of-Verification Fact Check Prompt
Draft an answer, generate verification questions, answer them independently, then revise, reducing factual errors.
Based on Chain-of-Verification (Dhuliawala et al., 2023).
Steps
- Baseline: answer the question.
- Plan verifications: list factual claims as questions.
- Execute independently: answer each question without showing the draft (separate calls), ideally with retrieval/search.
- Revise: rewrite the answer, dropping or correcting claims that failed verification.
Prompts
# Step 2
List each factual claim in the ANSWER as a standalone yes/no or short-answer question.
Return JSON: {"questions": ["..."]}
ANSWER: {{draft}}
# Step 4
Original question: {{question}}
Draft: {{draft}}
Verification results: {{qa_pairs}}
Rewrite the draft so it is consistent with the verification results.
Remove any claim that could not be verified. Do not add new unverified claims.Failure modes
- The model can 'verify' a wrong claim with the same wrong knowledge; pair with retrieval for facts.
- Verification questions that just restate the claim add cost without catching errors.
- Long drafts produce too many checks; cap the number of questions.
Markdown version: /blueprints/chain-of-verification.md
Want a deeper build of this?
Vote for an extended, fully tested version (more tools, a full workflow file). Votes decide what we build next.
Get one fully built blueprint a week
A weekly email: one blueprint with config, cost, setup time and failure modes, plus a vote on what we build next.
Related blueprints
Few-Shot Classification Prompt
A compact few-shot prompt for labeling text with balanced examples, an explicit label set, and an escape label.
Production Agent System Prompt Template
A sectioned system prompt template covering role, context, tools, rules, and output format for tool-using agents.
Prompt Injection Defense for Tool-Using Agents
Layered mitigations for agents that read untrusted content such as web pages, emails, and documents.