Skip to Content
RAGCitations

Citations

When retrieval returns supporting passages, each one is attached to the response as a citation. If nothing was retrieved, the response comes back without citations. Rosetta won’t make one up.

Citation Payload

Each citation is self-contained. title is human-readable, url points at the document the agent retrieved, and relevance_score is the similarity score after re-ranking (0–1) so clients can sort or filter.

{ "title": "IDSA/ATS CAP Guidelines (2019)", "url": "https://www.idsociety.org/...", "relevance_score": 0.98 }

Best Practices

  • Prefer primary literature. Guidelines and peer-reviewed papers outrank summaries and review sites.
  • Use stable URLs. Link to DOIs or canonical publisher pages. Avoid search-result URLs that break when the session ends.
  • Show the score. Displaying relevance_score makes the difference between a 0.98 match and a 0.62 best-effort visible to the user.
Last updated on