My no-guessing docs bot: hidden test set exposed a failure I couldn't fully fix

ZtasnimS75 · reddit · 2026-12-05

The author built a docs QA bot that refuses to guess: RAG over 8 FastAPI tutorial pages (ChromaDB, MiniLM embeddings, Gemini flash-lite, Streamlit), answering only with a cited source or NOTINDOCS. Eval covers 25 cases (15 dev / 10 hidden): dev went from 10/14 to 14/14 after tuning; the hidden set, run once, scored 9/10. Key findings: distance alone couldn't separate answerable from out-of-docs questions (1.36 vs 1.12), and the single hidden failure was a false refusal caused by wrong top-ranked chunks. Untried fixes: hybrid search and re-ranking. Caveats: questions were AI-drafted and only 9 of 25 answers were manually verified. Repo is on GitHub.

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

Original post →

More from coding & agent

coding & agent channel →