# Compounding Knowledge vs. Retrieval

Why an LLM-maintained wiki accumulates understanding where retrieval-augmented generation re-derives it on every query.

Two ways to put a language model to work over a body of documents sit behind much of this wiki's later material — and they compound very differently.

## Retrieval vs. integration

Retrieval-augmented generation (RAG) fetches relevant chunks from raw documents at query time and generates an answer. It works, but nothing accumulates: a subtle question spanning several sources is reassembled from fragments every single time, and the cross-references are only ever rediscovered.

The [LLM-maintained wiki](/wiki/llm-maintained-wiki.md) — Karpathy's [pattern](/docs/llm-wiki.md) — inverts this. Each source is read once and *integrated* into a persistent, interlinked artifact: entity pages updated, summaries revised, contradictions flagged. Queries then hit the wiki, where the synthesis already exists.

## The older idea underneath

The bottleneck on any compounding knowledge base was never the reading or the thinking — it was the bookkeeping, which is why humans abandon wikis. That is precisely the part a model does for free. The result is the delivery of [Vannevar Bush](/wiki/vannevar-bush.md)'s [Memex](/docs/as-we-may-think.md): private, curated, with the links between documents as valuable as the documents themselves.

The pattern is kin to [Interpretable Context Methodology](/wiki/interpretable-context-methodology.md) (context laid out on disk) and the [Semantic Web](/wiki/semantic-web.md) (meaning made machine-readable) — all file-native, all favoring a durable structure over re-derivation. This wiki is itself an instance of the pattern.

---

## Backlinks

Pages that link here:

- [Glossary](/wiki/glossary.md) — Formal definitions of the key terms behind the Independent Internet and Web 4.0, as used across this wiki, with links to source material.
