RAG Chat — Grounded Document Intelligence
Grounded Document Intelligence — Retrieval‑Augmented Generation over PDF documents with hybrid search, anti‑hallucination grounding, and real‑time streaming. Live Demo: ragchatbot-61jh.onrender.com.
- Hybrid SearchCombines vector search (pgvector) with lexical text search (to_tsvector)
- Eval Harness14-case golden test set vs live deployment: 100% answer accuracy, 100% grounding, 100% source attribution — including a trap case the model knows but the corpus doesn't (refuses anyway)
- Anti-HallucinationDistance gate (MAX_DISTANCE ≤ 0.5): weak evidence never reaches the LLM — refusal over guessing
- Token StreamingToken-by-token SSE streaming responses with document attribution