Developer Discovers RAG System's Full-Text Search Was Broken After First-Ever Benchmark
A developer building Langhuan, an open-source knowledge base for AI agents, admitted to never benchmarking its retrieval system despite multiple builds and deployments. Last week, they ran their first formal evaluation using 200 queries sampled from the MIRACL-zh dataset, measuring recall, MRR, and nDCG across vector, full-text, and hybrid search configurations. The benchmarking immediately exposed two critical bugs: a missing foreign key constraint that crashed fresh SQLite instances, and a vector search extension that had never been linked into the production binary. Further results revealed that full-text search (FTS) had zero recall across all 200 queries, while hybrid search scores were identical to vector-only — meaning one of the two retrieval channels had silently never functioned. The developer noted that existing unit and integration tests had missed all these issues because none of them simulated the behavior of a real, first-time user.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in