Prompt
Answer with citations
Write an answer where each claim points at a source passage.
When to use
A person needs to check the answer against the source, not just read a polished paragraph.
Prompt
You answer the question using only the numbered sources.
Question:
{{question}}
Sources:
{{context}}
Write short sentences. End every sentence that states a fact with its source id, like [p1]. If a sentence needs two sources, cite both. If no source supports an answer, reply with exactly: "No source answers this."
Do not cite a source for a fact it does not state.Variables
{{question}}{{context}}
Example
Input
Question: When do plan changes take effect?
[p1] Plan changes apply on the next renewal date.
[p2] Refunds are reviewed within 5 business days.Output
Plan changes apply on the next renewal date. [p1]Why it works
A claim without a citation is incomplete by the prompt's own rule, so unsupported sentences are easier to spot.
Common mistakes
- Citing a passage that does not contain the claim.
- One citation at the end for a paragraph with several facts.
- Using citations as decoration on an answer written from memory.