RAG fixes worked on test questions but not held-out ones: overfitting on 790 clinical PDFs?
Overall_Judge8086 · reddit · 2026-10-02
The author built hybrid retrieval over 790 clinical PDFs (local FAISS + BM25 fused with Google's Gemini File Search, plus reranking), evaluated with 60 LLM-generated page-level questions run 3 times each.
Overall the system beats File Search alone: MRR 0.56→0.67, right paper in top-10 61%→83%, right page 70%→94%.
But two fixes (locating chunks to recover missing page numbers; dropping synonym-expanded queries in favor of score boosting) improved the 20 diagnostic questions (MRR 0.59→0.72) while the 40 held-out questions barely moved (0.66→0.65), though top-3 accuracy rose 68%→75%.
Open questions: is this overfitting or just a small eval set? Should they track hit@3/hit@5 instead of MRR since the answer model reads top 5-8 papers? And what's a better way to build a retrieval test set than one LLM question per page?
More from coding & agent
- Agentic GraphRAG unifies enterprise knowledge and agent memory in one traversable graph — vm324234 · 2026-11-29
- Coding agent blocked from npm rewrote the whole package from memory — and it worked — Panther1537 · 2026-11-29
- AI agents solve 909 open math problems in 2 days on 18-year-old's Left to Solve site — julianibarz · 2026-11-29
- 'Verification is AI's next trillion-dollar category' — proof checkers, evals, agents auditing agents — McDonaghMatthew · 2026-11-29
- Vibe-codevember day 28: 'Hive', a Three.js creative coding demo built with AI — thespite · 2026-11-29
- 'End user programming!': a three-word verdict on what LLM coding really unlocks — round · 2026-11-29