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 { SourceCitationRail, CitationMarker, type CitationSource } from "@/components/motiq/source-citation-rail"const sources: CitationSource[] = [ { id: 's1', index: 1, title: 'Getting started', domain: 'docs.example.com', type: 'docs', location: '§2', author: 'Docs team', publishedAt: '2024-03-12' }, { id: 's2', index: 2, title: 'Configuration reference', domain: 'docs.example.com', type: 'docs', excerpt: 'Set the cache directory before the first run.' }, { id: 's3', index: 3, title: 'Release notes 2.4', domain: 'example.com', type: 'article', verified: true },]export default function SourceCitationRailDemo() { return ( <SourceCitationRail sources={sources} defaultActiveSourceId='s1' className='w-full max-w-2xl'> <p className='text-sm leading-relaxed'> Install the package with your package manager first<CitationMarker source='s1' />. Then point the cache at a writable directory<CitationMarker source='s2' />. Version 2.4 added offline mode<CitationMarker source='s3' />. </p> </SourceCitationRail> )}