Journal · Blog

Writing down what building a product clarifies, slowly

On RAG, MCP, knowledge bases, and retrieval systems: experience, judgment, mistakes, and the implementation details worth thinking one step further. For the site itself, technical references, and corrections, seeAbout Langhuan。

August 25, 2026David14 min read

How a Chinese Question Sentence Zeroed Out Our Full-Text Search

An everyday question like "埃及有哪些民族?" returns literally nothing from SQLite FTS5 Chinese full-text search — and hybrid retrieval quietly degrades to vector-only, with no errors, no alerts, and normal-looking metrics. The mechanism, the query-side fix, and how to check whether your FTS channel is already spinning in neutral.

Full-Text SearchSQLiteChinese TokenizationHybrid Search
August 25, 2026David16 min read

We Benchmarked Our Own RAG Retrieval — and the First Smoke Run Caught Two Production Bugs

The metric that matters most for a knowledge base product is retrieval quality, and all we had were functional tests. How Langhuan built a retrieval eval with 200 human-annotated real queries, a dual-track channel matrix, and bit-identical reproducibility — plus the production bugs it caught on day one and the hybrid-search hypothesis it finally confirmed with data.

RAG EvaluationRetrievalHybrid SearchKnowledge Base