A docs RAG bot that refuses to guess — and the failure a hidden test set exposed

ZtasnimS75 · reddit · 2026-12-05

A Reddit build log on a RAG bot over 8 FastAPI tutorial pages (ChromaDB + MiniLM + Gemini Flash-Lite + Streamlit) that either answers with a cited source or replies NOTINDOCS. Eval used 25 cases — 15 dev / 10 hidden (run once): dev went 10/14 → 14/14 after tuning, hidden scored 9/10. Key finding: embedding distance alone can't separate answerable from out-of-docs questions (1.36 vs 1.12); the one hidden failure was a false refusal from wrong top-ranked chunks. Untried: hybrid search and re-ranking. Caveats: questions were AI-drafted and only 9 of 25 answers were manually verified. Repo is open source.

Related event: Developer Shares Lessons from Refusal-Based RAG Doc Bot(2 posts)→

Original post →

More from coding & agent

coding & agent channel →