01Lead toolFrom CrossSource
check_citations
- In
- An answer with inline [id] or [doc_id:chunk_id] citations, and the sources it cites.
- Out
- A verdict per citation, with the rule it used and the reason.
- Decides
- Only what word overlap can: a cite to an id that is not in the sources, or one where another passage clearly covers the claim.
- Hands back
- Everything else, as needs_judgment with CrossSource's judge prompt for your model. It never says supported on its own.
Example: examples/answer.json in the repo.
Callcheck_citations(answer, sources)
- answer
- The warrantless search of the car violated the Fourth Amendment
[smith:0]. A contract signed under duress can be voided by the party who was coerced[smith:1]. The defendant was sentenced to ten years[smith:9]. - sources
-
smith:0The court held that the search of the car, made without a warrant, violated the Fourth Amendment.smith:1The defendant was sentenced to five years in prison on the fraud counts.jones:0Contracts signed under duress are voidable at the option of the party who was coerced.
Returns
- [smith:0] needs_judgment Needs a judgment: overlap alone cannot tell support from a misstatement. judge_prompt attached
- [smith:1] wrong_document The cited passage shares 0% of the claim's content words; [jones:0] in a different document shares 83%.
- [smith:9] unsupported_claim The cited id is not among the sources provided (fabricated or mis-copied id).
3 citations · 2 decided · 1 needs judgment