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 { useState } from "react"import { DocumentReference, type DocumentAnchor } from "@/components/assistant-ui/elements/document-reference"const anchors: DocumentAnchor[] = [ { page: 4, quote: "Revenue grew 12% year over year." }, { page: 17, quote: "Operating margin expanded to 18.5% in the second half." }, { page: 32, quote: "The board approved a new share buyback program." },]export default function DocumentReferenceDemo() { const [activePage, setActivePage] = useState(4) return ( <DocumentReference title="Annual Report 2024.pdf" pages={48} anchors={anchors} activePage={activePage} onJump={(page) => setActivePage(page)} /> )}