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 { Controls, type Edge, type Node } from "@xyflow/react"import { Canvas } from "@/components/ai-elements/canvas"const nodes: Node[] = [ { id: "prompt", position: { x: 40, y: 110 }, data: { label: "User prompt" }, }, { id: "draft", position: { x: 230, y: 40 }, data: { label: "Generate draft" }, }, { id: "review", position: { x: 230, y: 180 }, data: { label: "Review response" }, }, { id: "result", position: { x: 430, y: 110 }, data: { label: "Final answer" }, },]const edges: Edge[] = [ { id: "prompt-draft", source: "prompt", target: "draft" }, { id: "prompt-review", source: "prompt", target: "review" }, { id: "draft-result", source: "draft", target: "result" }, { id: "review-result", source: "review", target: "result" },]export default function CanvasDemo() { return ( <Canvas className="h-80 w-full max-w-2xl" nodes={nodes} edges={edges}> <Controls /> </Canvas> )}