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 { Sources, type Source } from "@/components/assistant-ui/elements/sources";const sources: Source[] = [ { domain: "wikipedia.org", title: "Photosynthesis - Wikipedia", snippet: "Photosynthesis converts light energy into chemical energy stored in glucose.", author: "Wikipedia contributors", publishedAt: "2024-03-01", }, { domain: "nature.com", title: "How plants capture sunlight", snippet: "A review of recent advances in light-harvesting chlorophyll complexes.", author: "A. Rivera", publishedAt: "2023-11-15", }, { domain: "britannica.com", title: "Chloroplast", },];export default function SourcesDemo() { const [open, setOpen] = useState(true); return ( <div className="w-full max-w-md"> <Sources sources={sources} open={open} onOpenChange={setOpen} /> </div> );}