A citation rule is a contract: every claim in the answer carries the source it came from, and a claim with no citation is treated as unverified. ADK’s grounded search pattern already points this way, with agents instructed to answer using search and cite their sources. Write the rule into the agent’s instructions and into the output shape: each claim followed by its source name and location. Then check a sample answer claim by claim; if a claim has no citation, the rule is not working, whatever the instructions say.
What you need
- An agent that answers from documents or web search
- A citation format: source name plus page or section
- Three test questions with known source passages
Step 1: Write the citation rule into the instructions
Add a sentence that every factual claim must carry a citation in the chosen format, and that a claim with no source must be marked as unconfirmed instead of stated as fact.
Step 2: Ask the three test questions and check the citations
Ask each test question and open every citation to confirm the passage supports the claim. A citation that points to the wrong passage is as bad as no citation.
Step 3: Send back any answer with uncited claims
If an answer has claims without citations, return it to the agent with the missing claims listed and ask for the citations. Do not publish the uncited version.
Worked example: synthetic citation check
The table below is a synthetic example. It shows the expected result of the citation rule; no agent was run.
| Claim | Citation present? | Passage supports it? |
|---|---|---|
| Refund window is 30 days | Yes | Yes |
| Price is $49 per month | Yes | Yes |
| Support is 24 hours | No | n/a – marked unconfirmed |
| All claims cited or marked | Yes | Pass |
Expected result (UNTESTED). every claim carries a citation that supports it, and the one unsourced claim is marked unconfirmed instead of stated as fact. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- A citation proves a passage exists, not that the agent read it correctly.
- The rule only works if someone opens the citations; unchecked citations rot.
- Forcing a citation for every claim can make short answers long, so keep the format tight.
- A claim the sources do not cover must be marked unconfirmed, not dressed up with a nearby citation.
