Automated fact-checking AI needs more than retrieved URLs. Split statements into reviewable claims, retain the source passage for each, and distinguish support, contradiction and insufficient evidence. Search and extraction supply candidate material. A model can propose a judgment, but the application should preserve uncertainty and route consequential decisions for review.
Keep the claim small enough to verify
A claim combining product availability, price and a performance benefit needs separate checks. Record each statement’s subject, date and qualification before building a query. This prevents a source that supports one clause from being used to justify the entire sentence.
| Stage | Retained output | Failure boundary |
|---|---|---|
| Claim definition | A stable ID and an atomic statement | An ambiguous statement goes back for clarification |
| Source discovery | Query, market and candidate URLs | A snippet is not a reviewed source passage |
| Source extraction | URL, access time and full context | Empty or wrong-page text is excluded |
| Evidence judgment | Source passage, stance and review state | A model score is not automatically a calibrated probability |
| Decision routing | Support candidate, contradiction, conflict or insufficient evidence | Missing evidence remains visible |
Use an evidence-routing record, not an accuracy promise
This Python example checks the shape of evidence records and routes claims according to reviewed stances. It intentionally never declares a statement verified. The stance is supplied by a reviewer or a separately evaluated judgment process; the function does not infer truth from a passage or from the number of links.
from urllib.parse import urlparse
def evidence_record(claim_id, source_url, passage, stance, reviewed=False):
if not isinstance(claim_id, str) or not claim_id or not isinstance(reviewed, bool):
raise ValueError("Explicit claim ID and boolean review state required")
if not isinstance(source_url, str) or not isinstance(passage, str) or urlparse(source_url).scheme != "https" or not passage.strip():
raise ValueError("Evidence needs a source and a nonempty passage")
if stance not in {"supports", "contradicts", "uncertain", "irrelevant"}:
raise ValueError("Unknown stance")
return {"claim_id": claim_id, "source_url": source_url,
"passage": passage, "reviewer_stance": stance, "reviewed": reviewed}
def route_claim(claim_id, records):
if any(not isinstance(r, dict) or not isinstance(r.get("reviewed"), bool)
or r.get("reviewer_stance") not in {"supports", "contradicts", "uncertain", "irrelevant"}
for r in records):
raise ValueError("Invalid evidence record")
relevant = [r for r in records if r["claim_id"] == claim_id]
reviewed = [r for r in relevant if r["reviewed"]]
positions = {r["reviewer_stance"] for r in reviewed}
if "supports" in positions and "contradicts" in positions:
state = "conflicting_evidence"
elif "contradicts" in positions:
state = "review_contradiction"
elif "supports" in positions and "uncertain" not in positions:
state = "review_supported_candidate"
else:
state = "insufficient_reviewed_evidence"
return {"claim_id": claim_id, "state": state,
"records": relevant, "auto_verified": False}
if __name__ == "__main__":
import json
record = evidence_record("fixture-claim", "https://example.test/source",
"Synthetic passage, not a real-world finding", "supports", reviewed=False)
print(json.dumps(route_claim("fixture-claim", [record]), indent=2))
Replay three different evidence outcomes
For a real source-backed case, review Google’s Custom Search JSON API overview against the limited statement that the API is unavailable to new customers. Retain the supporting passage and access date. Do not expand that passage into a claim that every Google search product is closed.
A second bounded case is the SearchCans Reader response contract: checking whether data.markdown is the documented text field is different from asserting that all extracted facts are correct. These two cases test claim scope. They are not a validation dataset for medical, financial or legal judgments.
- Unreviewed or irrelevant passages lead to insufficient reviewed evidence.
- Reviewed support and contradiction together lead to a conflict state.
- A reviewed supporting passage leads only to a supported candidate awaiting the application’s final decision policy.
Retrieve the source without losing its identity
Use the source-tracking agent search tool to perform a bounded search-and-read operation. Validate data.organic as a result list, use link for the URL, and read text from data.markdown. Preserve failed reads outside the answer context. the grounding workflow explains retrieval mechanics; this page owns claim-level review and abstention.
Evaluate judgments on an explicit review set
Before enabling automatic decisions, retain reference labels, source passages, evaluation dates and known failure cases. Measure whether the cited passage actually supports the proposed claim, not merely whether the citation opens. Include conflicting dates, missing qualifiers and sources that discuss the topic without answering the statement. Report the cases and limits instead of attaching an unsupported success percentage.
For context selection use the evidence token-budget method. For the packaged research workflow use the bounded research guide. More source text does not remove the need to check what each claim says and what its evidence supports.