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)→
More from coding & agent
- Running crons via Grok Bot with day-long notifications makes each job 100x more useful — gaganghotra_ · 2026-12-06
- JetBrains runs 500k context on a 16GB GPU with two-tier Q8 KV cache — yogthos · 2026-12-06
- Agent-native GTM teams need full-stack plus agent engineering, LangChain job post shows — BraceSproul · 2026-12-06
- Cohere Team to Host NeurIPS Panel on Shipping Frontier Research into Regulated Industries — Julianfmack · 2026-12-06
- Agentic commerce in action: snap a QR code and your agent pays for parking and donations — jeff_weinstein · 2026-12-06
- Voice agent dev: even fastest LLM API leaves laggy responses, users hang up — FalseSort5750 · 2026-12-06