Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
import { RetrievalChunks, type RetrievalChunk } from "@/components/assistant-ui/elements/retrieval-chunks"const chunks: RetrievalChunk[] = [ { id: "1", source: "docs/security/api-keys.md", locator: "§2.3", score: 0.92, text: "Rotate keys every 90 days from the dashboard. Old keys stay valid for 24 hours after rotation.", }, { id: "2", source: "guides/authentication.md", locator: "§4.1", score: 0.85, text: "Create a new key, update your services, then revoke the previous key to avoid downtime.", }, { id: "3", source: "changelog/2024-06.md", locator: "L118", score: 0.61, text: "Added self-serve key rotation for workspace admins.", },]export default function RetrievalChunksDemo() { return ( <RetrievalChunks query="How do I rotate API keys?" chunks={chunks} visibleCount={3} searching={false} /> )}