EN
Back to the archive

The archive · Product Ideas · Technical decision · 2023–2024

Mutable.ai leapfrogs vector RAG with a generated 'language map' wiki of each codebase

Mutable.ai auto-writes a Wikipedia-style article of each codebase, then retrieves LLM context through its citations instead of vector similarity.

Mutable.ai

The ideaAuto-write a Wikipedia-style wiki of each codebase, then retrieve context through the sections and code it cites — a 'language map' instead of vector neighbors.incremental

What it had to solve

Mutable.ai's mission was to help developers understand software, starting with a chat that could answer questions about any codebase. Repos would not fit in LLM context windows, and a keyword-plus-vector retrieval chat kept surfacing the wrong context — even after the team trained its own embedding model, asking how to quantize llama.cpp pulled in odd, test-file-heavy answers.

How it works

Mutable.ai wanted to give developers a chat that genuinely understood their code. The naive route — plugging a repository into a large language model — failed on two hard limits: context windows too small for most codebases, and models that answer immediately instead of reasoning step by step. Their first attempt, a codebase chat built on keyword retrieval plus vector embeddings, failed in a more instructive way: even after the team trained its own embedding model, questions like 'how do I quantize llama.cpp' returned answers built from the wrong context, often pulled from test files.

The creative move was to stop retrieving and write the codebase down first. Auto Wiki generated a Wikipedia-style article for each repository, with diagrams and citations pointing at the underlying code. The chat then retrieved through those citations — reading the relevant wiki sections plus the actual code they reference — which the founders called a 'language map' of the codebase. Answers flipped from wrong to accurate, comprehensive and cited, because the model received language and structure instead of snippets that merely sat nearby in vector space.

The Show HN thread on 18 July 2024 read like a map of an idea whose time had come. Commenters compared the approach to Aider's AST-driven repository map, which held the second-highest SWE-bench score without code RAG; one described nearly identical 'knowledge mapping' work at a consultancy; others framed it as graph RAG. The founders answered in-thread, offered free processing for open-source repositories named in the comments, and pointed to a growing list of generated wikis — llama.cpp, Terraform, go-ethereum, NVIDIA TensorRT, langchain and VS Code among them.

Why it lands

  • The wiki's citations became the retrieval index, so context followed real code dependencies instead of lexical or vector nearness — the exact property a code question needs.
  • Putting understanding into a human-readable document made the map useful on its own for onboarding, so the retrieval fix doubled as a second product.
  • They swapped the expensive fight (training a bespoke embedding model) for a change of representation, which is why the same LLM suddenly answered well.
  • Answers that cite both the wiki and the actual lines of code gave developers something previous chat could not: checkable sources for every claim.

What it did

The 18 July 2024 Show HN drew 162 points and 55 comments. On the same llama.cpp quantization question that previously failed, the new chat gave a step-by-step answer citing both wiki sections and code; the founders said quality held 'consistently across codebases of all sizes' and listed live wikis including llama.cpp, Terraform, go-ethereum and VS Code.

Their siteMutable.ai Auto Wiki for llama.cpp

What you can take

Retrieval beats embeddings when it understands structure: instead of endlessly tuning the search, write a human-readable, citation-linked map of the domain and let the model read through it.

Since then

The idea arrived amid a wider convergence. In the thread, one commenter described Aider's AST-driven repo map as already delivering strong SWE-bench results without code RAG; a consultant described near-identical 'knowledge maps' for clients; several builders said they had independently abandoned vector RAG for code. Mutable.ai leaned into the concept, generating wikis for hundreds of open-source repositories while pricing private repos at $2 per month each. The launch stayed modest at 162 points, but the thread showed the idea had become a consensus direction for code intelligence.

Sources

spotted an error? The archive wants to know.

Your turn

You just read one. Describe the brief you are staring at, and see who has been given the same problem.

Free account · 3 free questions · no card

Related cases