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 { ConversationSearch, type SearchHit } from "@/components/assistant-ui/elements/conversation-search"const hits: SearchHit[] = [ { id: "h1", before: "We should review the ", match: "budget", after: " before Friday.", position: 12 }, { id: "h2", before: "The ", match: "budget", after: " is approved.", position: 68 }, { id: "h3", before: "Can you send the updated ", match: "budget", after: " spreadsheet?", position: 88 },]export default function ConversationSearchDemo() { const [query, setQuery] = useState("budget") const [activeIndex, setActiveIndex] = useState(0) return ( <div className="w-full max-w-md"> <ConversationSearch query={query} hits={hits} activeIndex={activeIndex} onQueryChange={setQuery} onStep={(delta) => setActiveIndex((i) => Math.min(Math.max(i + delta, 0), hits.length - 1)) } /> </div> )}