AI Document Q&A (RAG) with Citations and Evaluation (Demo) by Soban FarooqAI Document Q&A (RAG) with Citations and Evaluation (Demo) by Soban Farooq

AI Document Q&A (RAG) with Citations and Evaluation (Demo)

Portfolio project
Soban Farooq
Demo project built with sample policy documents. Not client work. Answers staff questions from company documents with citations, and says so when the documents don't contain the answer. Documents are split by section and retrieved with BM25 plus a client-editable domain glossary. Claude answers through a grounded prompt with JSON-schema structured output (answer, citations, answerable), with an offline baseline for testing. Evaluated on 20 questions, including 5 reworded and 2 unanswerable. Adding the glossary raised retrieval hit@3 from 83% to 100%, answer accuracy from 72% to 83% and citation accuracy from 72% to 94%, with 100% correct refusals. 7 automated tests. Honest note: a real project measures on a held-out test set built from the client's own documents.

0 likes · 0 views · Nov 23, 2026

Built a document Q&A system with citations, refusals and an evaluation suite that measures retrieval, answer and citation accuracy.

Tags