RAG evals can fail even when your system is correct — leave-one-out fix

Al_Grigor · x · 2026-10-31

Alexey Grigorev shares a counterintuitive RAG eval pitfall: his harness replays historical student questions, and a question correctly classified as NEW months ago is now correctly flagged DUPLICATE once it's in the knowledge base — yet the eval reports failure. His fix: leave-one-out evaluation, removing the FAQ entry created by the original question before replaying it, with experiments tracked in Opik. Lesson: reproduce the original data state, not just the original prompt.

Original post →

More from coding & agent

coding & agent channel →