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, 2026·David·14 min read 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, 2026·David·16 min read 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
August 18, 2026·David·11 min read A local RAG knowledge base does not need a full database and queue stack on day one. Start with real documents, Chinese-aware retrieval, and evidence; move to production components when the workload earns them.
Local RAGKnowledge baseSQLiteChinese retrieval
August 18, 2026·David·12 min read The second agent changes the question. Instead of uploading the same documents again, decide who owns versioning, retrieval, access, and source evidence. That is where an MCP knowledge base belongs.
MCP knowledge baseEnterprise agentsRAGRetrieval
August 17, 2026·David·18 min read Stuffing every document into a Claude or ChatGPT project knowledge base eventually hits context limits — answers degrade first, uploads fail later. Symptoms, causes, and moving knowledge out of the context window.
ClaudeKnowledge BaseRAGMCP
August 13, 2026·David·8 min read Store vectors in pgvector and tokenize Chinese with zhparser for full-text search, then fuse with RRF on a single SQL stack without a separate vector database.
pgvectorFull-text searchPostgreSQL
August 12, 2026·David·7 min read Why pure vector search misses exact keywords, what full-text search adds, how RRF deterministically fuses two ranked lists, and what it costs.
Hybrid searchRAGRetrieval
August 11, 2026·David·7 min read Comparing stdio, SSE, and streamable HTTP transports for MCP: when to use each, and the deployment and security trade-offs.
MCPMCP over HTTPAgent
August 10, 2026·David·6 min read What the Model Context Protocol solves, what servers, clients, and tools are, and how a knowledge base becomes an MCP-callable service.
MCPAgentModel Context Protocol
August 5, 2026·David·9 min read When building several enterprise agents, I found the thing most often rebuilt isn't model capability — it's the ingestion, access control, retrieval, and evidence chain for knowledge.
Enterprise agentsKnowledge baseRAGMCP