RAG vs Markdown+grep vs LLM Wiki: Choosing a Knowledge Base That Survives Production
RAG's operational overhead and lack of knowledge persistence are pushing teams to either simplify with plain-text search or adopt compile-on-ingest wikis. Choosing the right architecture based on data size, structure, and iteration cadence saves you from building an expensive vector pipeline that rots or a brittle keyword hack that can't scale.
RAG has been the default for private document Q&A, but its production pain is real: vector databases add operational weight, retrieval latency shows under load, and each query is a one-off splice that never builds a persistent knowledge body. A shift from query-time retrieval to ingest-time compilation is the proposed answer.
Two alternatives get detailed treatment. Markdown+grep skips vectors entirely, storing knowledge as structured Markdown and relying on grep/rg to pull context, then letting an LLM summarize. It's minimal, but it demands disciplined document structure and offers no automatic linking or correction.
The newcomer is LLM Wiki, proposed by Andrej Karpathy, where an LLM compiles incoming documents into an interconnected Markdown wiki during ingestion, then updates it incrementally, so queries need zero retrieval. The three are complementary: RAG for big static corpora, Markdown+grep for small stable notes, and LLM Wiki for long-term evolving knowledge.
A central claim is that RAG's query-time retrieval is wasteful because it never builds a durable knowledge structure; the LLM Wiki answer moves the cost to ingestion, which is a different trade-off that may not fit every dataset.
Markdown+grep is a vote of confidence in human-curated, structured text over vector similarity; for many internal use cases, deterministic search beats embeddings when the docs are clean.
LLM Wiki's success depends on how reliably an LLM can compile and maintain a consistent knowledge graph; the mention of only one notable open-source implementation suggests the approach is still unproven at scale.
The discussion centers on two fundamental weaknesses in knowledge-base approaches: handling knowledge conflicts and performing semantic search. One position holds that technology alone cannot resolve evolving or conflicting knowledge, so intelligent Q&A should expose original sources and let users decide, rather than force a standard answer. Another position attacks keyword-based retrieval (like Option 2) as unable to match paraphrases, such as a user searching "how to buy tickets" against the official term "buy tickets," concluding that vectorization is necessary. The split is between relying on human judgment and context versus pursuing automated semantic understanding.
Knowledge conflicts and knowledge iteration ultimately depend on humans; technology can't solve them. Moreover, "intelligent Q&A" should not force a "standard answer" but should expose the conflicting parts and the cited original text to users, letting them judge for themselves. Intelligent Q&A, or rather it should be called "intelligent consultation."
This is a good idea, thumbs up.
Option 2 is essentially similar to an ES (Elasticsearch) solution. There's a serious problem: it can't do semantic search. For example, our official term is "buy tickets". Without vectorization, if a user searches "how to buy tickets", no answers can be retrieved at all.
Keyword retrieval, but not semantic.