Corpus
1,000+ docs indexed
Live document count from production index
Production citation-backed RAG
Ask a real indexed corpus. Every grounded answer shows sources you can open. When retrieval is weak, cite-rag says it does not know.
A fixed pipeline with a grounding gate — not prompt theater.
TXT / PDF corpus via offline CLI
~640 tokens · 12% overlap
MiniLM 384-d in-process
pgvector HNSW · cosine
Groq via Vercel AI SDK
Grounded markers — or explicit no
Live corpus counts and published eval refusal correctness.
Corpus
1,000+ docs indexed
Live document count from production index
Chunks
1003/1003 chunks verified
Scorecard corpus: 1003 documents / 1003 chunks
OOD refusal
100% (8/8)
evals/scorecard.md — out-of-corpus correctly refused
Embeddings
384-dim
Transformers.js all-MiniLM-L6-v2
Monorepo seams — UI, RAG library, ingest CLI, vectors, and LLM.
apps/web
Next.js UI · Auth.js · API routes
packages/rag
chunk · retrieve · ground · cite
data/scripts
1,000+ doc ingest CLI
Postgres + pgvector
Supabase · 384-d HNSW
Groq
openai/gpt-oss-20b
Monorepo · designed seams · not a single-file demo
The same stack that runs in production on Vercel + Supabase.