IN THIS BREAKDOWN · 10 SECTIONS
You can read 21% of this breakdown.
The paper in one minute
Ask a vector RAG system "what was the refund policy in 2023?" and it does well: find the few chunks about refunds, answer from them. Ask it "what are the main themes in these thousand interviews?" and it fails with no sign of failing. It retrieves the few chunks most similar to the question and summarizes those, presenting a sample as if it were the whole picture. The authors call these sensemaking questions, and the task query-focused summarization over a corpus too large for any context window.
GraphRAG, from Microsoft Research, does the expensive work at indexing time. An LLM reads every chunk and extracts entities (people, organizations, places, concepts) and the relationships between them, with short descriptions. Those form a knowledge graph. A community-detection algorithm (Leiden) splits the graph into groups of closely connected entities, at several levels of granularity. The LLM then writes a summary of each community, bottom-up.
At question time, each community summary is used to write a partial answer, in parallel (map), and the partial answers are combined into one (reduce). Every community gets a say, so the answer covers the corpus rather than a top-k sample.
On two corpora of about a million tokens each, podcast transcripts and news articles, an LLM judge preferred GraphRAG's answers to vector RAG's for comprehensiveness and diversity roughly three times out of four. Vector RAG still gave the more direct answers. The method is open source and widely copied.
Research notes: the problem, approach and results
comprehensiveness win rate against vector RAG on a 1M-token podcast corpus
fewer tokens per question for root-level community summaries than map-reducing the source text
of GPT-4-Turbo calls to index the 1M-token podcast corpus
Vector RAG answers questions about specific facts. It fails on questions about a whole corpus, such as "what are the main themes?", because no top-k set of chunks represents everything.
Use an LLM to extract an entity graph, split it into nested communities, write a summary for each, and answer global questions by map-reduce over those summaries.
Judged by an LLM, answers beat vector RAG on comprehensiveness and diversity about three times in four, and top-level summaries did it with 2.6% of the tokens of summarizing the source text.
Why it matters to an FDE
Customers ask global questions all the time, they just do not call them that: "what are customers complaining about this quarter?", "what risks show up across these contracts?", "summarize what the field teams are reporting". Vector RAG answers them badly and confidently. This paper is the clearest statement of why and of one fix.
Spot the question type before choosing the architecture. If the answer depends on a few specific passages, vector RAG fits. If it depends on patterns across the whole collection, retrieval of a top-k sample is the wrong tool. Most enterprise assistants get both kinds, so routing by question type matters.
The cost moves to indexing. Every chunk passes through an LLM to extract entities, and every community gets an LLM-written summary. Indexing the one-million-token podcast corpus took 281 minutes of GPT-4-Turbo calls. That is affordable once; it is a real line item for a corpus that changes daily, because updates mean re-extracting and re-summarizing.
The evaluation is softer than it looks. The win rates come from an LLM judging answers to LLM-generated questions, with no ground truth and, as the authors acknowledge, no measurement of fabrication. "More comprehensive and diverse" is not the same as "more correct". Before recommending GraphRAG to a customer, test it on their questions with their experts.
Understand the mechanism. Try it on a real problem.
Unlock this breakdown and 49 more papers.
Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.
6 months · One payment · No auto-renewal
- ◇1 architecture diagram
- </>1 runnable code experiment
- ▦3 results tables
- ?5 interview questions with answers
- 03Key takeaways
The ideas to keep, the pipeline's design choices, cost against quality, and the misreadings to avoid
Free account - 04How it works
Each indexing stage, the query-time map-reduce and the evaluation design, with a diagram
Premium - 05The numbers that matter
Win rates by criterion, token costs by level, indexing cost and claim counts
Premium - 06Try it yourself
A miniature pipeline that finds the themes a top-k retriever misses
Premium - 07Where it breaks
The evaluation's limits, the indexing cost, and what the summaries lose
Premium - 08Using it on a deployment
When to propose it, how to pilot it, and how to control cost and drift
Premium - 09Interview angles
Five questions this paper prepares you for, with answer hints
Premium - 10Read next
Where to go from here on this site
Premium
