RAG & search

SourceCitation

Full-card RAG source — shows title, domain, snippet, relevance score, and metadata. The entire card becomes an anchor or button when source.url or onClick is provided.

Sourcesrc/components/ai/source-citation.tsx

Web, document, and code sources

type controls the icon. Works for web pages, internal docs, code snippets, database rows, and video transcripts.

Highlighted (active citation)

Pass highlighted to visually pin a card — useful when the user clicks an inline [n] and the reading pane should scroll to and emphasise the matching source.