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 { FeedbackDialog } from "@/components/assistant-ui/elements/feedback-dialog"const reasons = ["Inaccurate", "Too long", "Off topic"]export default function FeedbackDialogDemo() { const [selected, setSelected] = useState<string[]>(["Too long"]) const [note, setNote] = useState("The answer repeated itself twice.") const [sent, setSent] = useState(false) return ( <FeedbackDialog reasons={reasons} selected={selected} note={note} sent={sent} onToggleReason={(reason) => setSelected((prev) => prev.includes(reason) ? prev.filter((r) => r !== reason) : [...prev, reason] ) } onNoteChange={setNote} onSubmit={() => setSent(true)} /> )}