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 { findMatches, HighlightMatch } from '@/components/ui/highlight-match'import { Input } from '@/components/ui/input'const titles = ['Łódź city guide', 'Lodge booking tips', 'Ödön coffee notes', 'Trip to Zürich', 'Lodz tram map']export default function HighlightMatchDemo() { const [query, setQuery] = useState('lodz') const results = titles.filter((t) => !query.trim() || findMatches(t, query)) return ( <div className='flex w-full max-w-sm flex-col gap-3'> <Input value={query} onChange={(e) => setQuery(e.target.value)} placeholder='Search...' /> <ul className='flex flex-col gap-1'> {results.map((t) => ( <li key={t} className='rounded-md border px-3 py-2 text-sm'> <HighlightMatch text={t} query={query} /> </li> ))} </ul> </div> )}