Large Language Models Are Absorbing RAG Architectures
This article examines a minimalist, file-based knowledge workflow in which a large language model incrementally compiles raw Markdown and image material into a human-readable wiki, and answers cross-document questions from that wiki without a vector database. It breaks down the three-layer structure, explains the conditions under which this approach can replace part of a conventional RAG pipeline, outlines a reusable four-layer methodology for teams, and states the boundaries, risks, and cost considerations that still require external retrieval.
Introduction: Where the Leverage in Tokens Really Is
Under the industry consensus that every token must be spent carefully, a half-joking rule has long circulated in developer communities: the real experts do not burn large volumes of tokens writing code; they invest them in higher-leverage work — building assets, accumulating understanding, and amplifying judgment. A researcher known as a heavy AI user recently pushed that idea back into the spotlight.
He published a workflow he has practiced for a long time. The core is not having the model write more code on his behalf, but spending the vast majority of tokens on maintaining a knowledge base that keeps evolving around his personal research interests: material is stored on disk as Markdown and images, while the model handles organizing, summarizing, cross-referencing, and updating it. The post drew tens of millions of views on social platforms, disclosed the engineering details quite completely, and put a sharp question back on the table: are we overestimating the necessity of retrieval-augmented generation (RAG)?
One boundary statement first: this article evaluates no specific product or tool and only abstracts the technical paradigm. Neutral phrasing such as “a certain AI coding tool,” “a certain note-taking platform,” and “a certain cloud vendor” is used throughout.
1. Dissecting the Paradigm: A Minimal Architecture of Three Directories
The method is worth studying precisely because it is “plain” to the point of having almost no infrastructure.
The first layer is the raw layer. Everything related to the research topic — papers, technical blogs, code repositories, datasets, screenshots, and charts — is dumped unstructured into a single directory. This step deliberately refuses design: no classification, no cleaning, no metadata. The only goal is to maximize the completeness and traceability of the original information, so nothing is lost at the entrance through premature assumptions about structure.
The second layer is the compile layer (the wiki). The model incrementally “compiles” the raw material into a set of Markdown files with a clear directory structure, resembling an encyclopedia written and continuously maintained by AI. “Compiling” here means converting unstructured raw input into navigable text with an index, summaries, and cross-links.
The third layer is the presentation layer (the frontend). Using a local note-taking platform that supports backlinks and graphs as an “IDE,” the researcher can view raw material, compiled output, and derived visualizations side by side; when a report is needed, a plugin renders the Markdown into slides. The key discipline: the wiki content is written and maintained almost entirely by the model, with very little direct human editing.
Describing the main loop in pseudocode is more intuitive than prose:
# Incremental compile main loop (illustrative)for doc in watch_new_files("raw/"):ctx = load_wiki_index() # existing directory and summariesdraft = llm.compile(doc, ctx) # generate/update entriesif review_gate(draft): # lightweight human gateapply_patch("wiki/", draft) # persist as Markdownupdate_index(draft) # maintain index and summaries
In engineering terms this structure costs almost nothing: no vector database, no embedding service, no chunking-strategy tuning — only a file system, one model interface, and a layer of version control.
2. Why It Can Replace Part of RAG
Traditional RAG rests on an implicit assumption: the model’s context cannot hold the corpus, so the corpus must be chunked, vectorized, retrieved by similarity in a few fragments, and stitched into the prompt. That pipeline carries well-known costs — chunk boundaries breaking semantics, retrieval noise, multi-hop questions requiring query rewriting, extra governance to keep the index consistent with the source text, and a whole evaluation apparatus.
The practice above offers a counterexample. On a corpus of roughly a hundred articles totaling about 400,000 characters, the researcher asks the agent systematic cross-document questions directly, relying not on an external retrieval architecture but on the model’s “endogenous understanding” of the wiki — locating information through the automatically maintained directory, summaries, and cross-references, then performing synthesis.
The conditions for this to hold can be stated more rigorously in three points:
- The corpus size sits in a range where it can be loaded into context wholly or nearly wholly. Modern long-context capability makes materials on the order of hundreds of thousands of tokens coverable in one pass or a few.
- There is a human-readable intermediate representation. Summaries and indexes serve compression and navigation rather than vector retrieval; they are essentially a “lossy compression” with higher fidelity.
- The write path is monopolized by the model. Uniform formatting and consistent structure mean incremental updates need not worry about style drift or duplicate entries.
Put differently, what gets absorbed is not the act of “retrieval” but the heavy infrastructure built to work around context limits. Retrieval capability moves up into the model, and engineering complexity sinks down to the file system.
3. A Reusable Methodology: Layered Knowledge Engineering
To transfer this idea to a team setting, proceed in four layers.
- Collection layer: keep the entrance unstructured, but always leave a trace. Record the source and timestamp for every item so it stays traceable later; store binaries and images separately and create reference entries for them in the wiki.
- Compile layer: split “compiling” into three independently evaluable operations — summarization (compression), indexing (location), and synthesis (merging). Each operation maps to a different prompt template and acceptance criteria.
- Governance layer: introduce lightweight gates rather than heavy manual work. For example, spot-check consistency only for new entries, use version control to record each compile diff, and roll back on conflict instead of patching by hand.
- Consumption layer: separate question answering from output production. Q&A follows “read the index first, then expand at the specific point”; production follows “draft an outline first, then fill in section by section,” avoiding a single dump of the entire context that dilutes attention.
An illustrative directory convention:
raw/ # raw material, read-onlywiki/index.md # global directory with one-line summariestopics/ # topic entriespeople/ # key entitiessynthesis/ # cross-document synthesisassets/ # images and charts
4. Boundaries and Risks: Do Not Over-Extrapolate
The applicable boundary must be stressed. Working at a scale of about 400,000 characters does not mean that millions of documents, strongly time-sensitive data, or exact numeric queries work the same way. The latter still require external retrieval, structured databases, and permission systems. In addition, a model-maintained knowledge base carries three risks: hallucinated citations (entries look plausible but the source is missing), structural drift (the directory bloats and falls into disorder as compiles accumulate), and non-reproducibility (the same question yields different syntheses at different times). The corresponding mitigations are a mandatory source field, periodic “recompilation” to compress the directory, and fixed prompts and temperature parameters with compile logs retained.
On cost, a single long-context call usually costs more than small-block retrieval, but because the embedding, indexing, and operations pipeline is eliminated, total cost of ownership is often better on medium-sized corpora. Whether it pays off should be measured by “cost per effective answer,” not “price per token.”
5. Conclusion
The real lesson of this workflow is not “RAG is dead,” but that architecture choices should move with the boundaries of model capability. As context windows widen and models get better at self-organization and self-retrieval, some systems that once had to be external are being absorbed into the model itself. The practical advice for developers is direct: first turn the knowledge base into a text asset that humans can read and the model can maintain, then evaluate whether heavyweight retrieval is needed. If an enterprise wants to deploy this in the cloud, object storage can hold the raw material, a container platform can run compile jobs, and logging and monitoring services can observe compile quality — leaving the complexity to data governance rather than architectural stacking.
