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)→
More from coding & agent
- Microsoft details four architectures for wiring Copilot Studio agents to Fabric data — adnan_hashmi · 2026-12-06
- Most AI engineering problems are old engineering problems in new clothes — arpit_bhayani · 2026-12-06
- Yacine: coding agent Neon nails hardest engine problems like 8M-particle Vulkan fluid sim — yacineMTB · 2026-12-06
- Tencent joins OpenClaw Foundation as donor, deepens open-source agent security work — vincent_koc · 2026-12-06
- OpenAI ships dots, an always-on agent powered by GPT-6 Astra, now expanding to GPT-6.1 Terra — blakesamic · 2026-12-06
- Running crons via Grok Bot with day-long notifications makes each job 100x more useful — gaganghotra_ · 2026-12-06