RAG Citation Cards
Assistant reply with sources [1]-[n] whose full passage is inspected by hovering over each card.
About this block
What it's for
- Assistant reply with sources [1]-[n] whose full passage is inspected by hovering over each card.
- Support console showing cited knowledge base articles with a quick preview without leaving the conversation.
- Engineering assistant that cites code files and shows the retrieved snippet on hover.
Includes
- Numbered source cards
- Hover intent preview
- Inline citation linking
- Relevance score metrics
- Source type badges
- Retrieval metadata inspection
- Pinned preview
- Empty state
Works with
- Radix UI primitives (the registry variant it ships in)
- React 19, Next.js App Router and Tailwind CSS 4, installed with the shadcn CLI
- Your theme tokens, in light and dark mode
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
Agentic UI CLI
agentic-ui add rag-citation-cardsInstalls through shadcn and adapts the component to your design tokens.
shadcn CLI
npx shadcn@4.17.0 add @agentic-ui/rag-citation-cardsUsed in
A standalone component: drop it into any screen.
- Type
- Block
- Variants
- Radix UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- Motion
- Animated, with a reduced-motion fallback
- npm packages
- None beyond your project's React and Next.js
- Registry dependencies
lib-primitives- Files
1 file
- components/agentic-ui/rag-citation-cards/index.tsx
Related components
RAG Chunk Viewer
Inspecting how a document was chunked when indexing it in the vector database.
Details and live previewRAG Freshness Badge
RAG source manager that flags which indexed documents have become obsolete.
Details and live previewRAG Retrieval Inspector
RAG debugging console that breaks down why a chunk did or did not pass the vector similarity and reranker cutoff threshold.
Details and live previewRAG Search Playground
Test console to evaluate natural-language queries against the vector store and calibrate retrieval parameters.
Details and live preview