Skip to main content

Citations & Verification

Every ask answer carries per-claim citations with exact source spans, deep links, and a verification verdict: supported, issues, or unverifiable, per answer.

Every completed ask lets you check each claim at its source. Citations tie each load-bearing claim in the answer to an exact passage in a source document, and verification reports whether the answer's claims match that cited evidence. This page is for developers who pass answers on to people or systems and need to decide which answers can go through automatically and which need a human look.

The citations array

Citations appear twice in the completed payload, and they always agree: inline in the answer markdown as links, and structured in the citations array, which is parsed from those same links. Each entry ties one quoted claim to one source document.

Citation fields

quotestringThe claim text the citation supports, as it appears in the answer.
document_iduuidThe source document. Resolvable via GET /v1/documents/:id, and its extracted fields via GET /v1/documents/:id/fields.
kindstringfield or quote. field cites an extracted field value and the span it was read from; quote cites a verbatim passage of document text.
referencestringFor kind field: the cited field key. For kind quote: the quoted text.
filenamestring | nullThe source document filename when known, else null.
app_urlstringAbsolute link into the Talonic app that opens the document with the cited span highlighted.

The two kind values cover the two kinds of evidence. A field citation points at an extracted field value: a value Talonic read out of the document, which carries its provenance back to the exact span it came from. A quote citation points at verbatim document text, for claims that live in prose rather than in a single value. An answer about contract terms typically mixes both: field citations for amounts and dates, quote citations for clause language.

A mixed citations array

"citations": [
  {
    "quote": "EUR 96,000",
    "document_id": "1b6f2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
    "kind": "field",
    "reference": "contract_value",
    "app_url": "https://app.talonic.com/documents/1b6f2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d?cite=contract_value"
  },
  {
    "quote": "either party may terminate with ninety (90) days written notice",
    "document_id": "1b6f2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
    "kind": "quote",
    "reference": "either party may terminate with ninety (90) days written notice",
    "app_url": "https://app.talonic.com/documents/1b6f2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d?citeq=either%20party%20may%20terminate%20with%20ninety%20(90)%20days%20written%20notice"
  }
]

The app_url is built for handing an answer to a reviewer: opening it lands them in the Talonic document viewer with the cited span highlighted, so checking a claim takes one click. In your own UI, render quote as the visible citation text and use app_url as its link; workspace members who are signed in see the highlighted source immediately. For checks in code, document_id plus reference lets you fetch the same evidence over the API: GET /v1/documents/:id/fields returns the cited field with its value and confidence.

Verification verdicts

After the answer is written, Talonic checks its claims one by one against the evidence the turn gathered. The result ships as the verification object with a three-value verdict, the check counts and, when a claim could be corrected, a suggested correction.

Verification object

verdictstringsupported: every checked claim is backed by the evidence. issues: at least one claim did not match the evidence. unverifiable: the claims could not be checked against specific evidence.
checks_totalintegerHow many claims were checked.
checks_unsupportedintegerHow many of them were not supported.
correctionstringPresent only when a corrected statement for the unsupported claims is available.

Use the verdict to route answers. supported means the answer and the evidence agree, which is the normal case and safe to pass through automatically. issues is a review pointer: it does not prove the answer wrong, it flags that at least one claim did not match its evidence, so send the answer to a person, show the correction if present, and use the citation links to check. unverifiable usually means the answer summarises or aggregates in a way that cannot be tied to one passage; weigh it by how much unreviewed synthesis your use case tolerates. verification can also be null when no verdict was produced; treat that like unverifiable.

Verification checks the answer against the evidence this turn gathered, not against the whole workspace from scratch. It catches an answer that contradicts its own sources; it is a safety net, not a substitute for the citations.

Negative answers

"It is not there" is an answer you can rely on. When an ask answers "none of the 421 agreements in the workspace contains an exclusivity clause", the count is the number of documents actually covered, and the absence is checked across all of them, not a sample. Negative answers are verified the same way as positive ones.

Handling verdicts in code

function routeAnswer(turn: AskResult): 'auto' | 'review' {
  const v = turn.verification;
  if (v?.verdict === 'supported') return 'auto';
  // issues, unverifiable, and null all get a human look.
  // Show the reviewer the correction and the citation links.
  return 'review';
}

Frequently asked questions

What is the difference between field and quote citations?+
A field citation supports a claim with an extracted field value, referenced by its field key, with provenance back to its exact source span. A quote citation supports a claim with verbatim document text. Both carry a document_id and an app_url that opens the document with the span highlighted.
How should I treat a verdict of issues?+
As a review pointer, not proof the answer is wrong. At least one claim did not match its evidence. Send the answer to a person, show the correction field if present, and use the citation links to check the flagged claims at the source.
Can verification be null?+
Yes. verification is null when no verdict was produced. Treat it like unverifiable: fine for exploration, send to review where the answer feeds a decision.
Do citation links work for people outside my Talonic workspace?+
No. The app_url links open the document inside the Talonic app and require a signed-in member of the same workspace. For external consumers, fetch the evidence over the API with GET /v1/documents/:id and GET /v1/documents/:id/fields.