Author

David

Founder of Langhuan

While building different enterprise agent systems, I kept hitting the same wall: the knowledge base is unavoidable, yet every system tends to re-ingest documents, process content, and build retrieval from scratch.

I didn't want this rebuilt in every project. That's why Langhuan exists: distill the processing and retrieval of a knowledge base into shared infrastructure, expose it over MCP and HTTP, and let agents reuse one set of knowledge capabilities.

David's avatar

Focus

Enterprise agentsKnowledge systemsRAG & MCP

Writing · Published posts

Judgments written down from practice

August 25, 202614 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.

August 25, 202616 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.