AI Components / RAG Panel
RAG Panel
Retrieved documents display for RAG. Relevance scores, type badges, excerpts, filter controls.
ai-workflow v0.4.0
Playground
Examples
Mixed sources
<ai-rag-panel style="max-width:550px;"></ai-rag-panel> Import
import { AiRagPanel } from '@cognivo/components'; // Or tree-shake: import '@cognivo/components/ai-rag-panel'; Per-component imports ship only that component (~8 kB gzip).
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
documents | RagDocument[] | — | Documents — {title, source, excerpt, relevance, type?, url?} |
query | string | — | Search query context |
sortBy | "relevance" | "recency" | "source" | "relevance" | Sort order |
rounded | "none" | "sm" | "md" | "lg" | "lg" | Border radius |
Events
| Event | Detail | Description |
|---|---|---|
ai-rag-document-click | {index, document} | Document clicked |