Citation and claim verification
Check whether a cited passage actually supports a generated claim.
CHOICE×1
01
HOW IT WORKS
state = {
"claim": "The policy requires seven years of retention.",
"cited_passage": "Records should be retained according to the applicable schedule.",
"source_document": "Expense records are retained for seven years after the end of the fiscal year.",
}
questions = {
"relationship": Choice(
instructions="What is the relationship between `claim`, `cited_passage`, and `source_document`?",
criteria={
"supports": "The cited passage and source establish the claim.",
"contradicts": "The cited material conflicts with the claim.",
"insufficient": "The cited material is related but does not establish the claim.",
"unrelated": "The cited material does not address the claim.",
},
),
}Auto-accept only a high-confidence supports answer. Use a contradicts answer to block or regenerate, and route insufficient, unrelated, and low-confidence results to a review queue.
Source: Double-checking citations.
1 REQUEST / 1 ANSWER
THIS PATTERN IN ONE LINE