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 { BookOpenIcon } from "lucide-react"import { Citation, Citations, CitationSources, type CitationSource } from "@/components/ui/citations"const sources: CitationSource[] = [ { id: "a", url: "#indexes-intro", title: "Introduction to indexes", siteName: "PostgreSQL docs", favicon: <BookOpenIcon className="size-4" />, snippet: "Indexes speed up searches on the indexed columns at the cost of extra writes.", meta: "Updated 3d ago", }, { id: "b", url: "#where-clause", title: "The WHERE clause and indexes", siteName: "Use The Index, Luke", favicon: <BookOpenIcon className="size-4" />, },]export default function CitationsDemo() { return ( <div className="w-full max-w-lg"> <Citations sources={sources}> <p className="text-sm leading-relaxed"> An index lets the database find matching rows without scanning the whole table <Citation id="a" />. Filters on indexed columns benefit most <Citation id="b" />. </p> <CitationSources className="mt-4" /> </Citations> </div> )}