Pattern
- Generate an answer with any model, the way you do today.
- Send the same
document,question, andanswertoPOST /v1/attributions. - Render each returned answer range as a citation that points to its source range.
Good fit
- Chat and search answers over a document, a knowledge base, or retrieved web pages.
- RAG pipelines. Send the retrieved chunks the model saw, joined into one
document. - Agents whose final answer summarizes tool output. Send the tool output as the
document. - Any setup where you can’t or don’t want to change the generating model.
Tips
- Cite the facts, not every word. TokenPath already picks out the phrases that carry facts.
- Show the source text on hover or click, so readers can check a claim without leaving the answer.
- When several documents are joined into one, record where each begins. Then you can map a source range back to its document and title.
