FDEInterviews logo
arXiv preprint

From Local to Global: A Graph RAG Approach to Query-Focused Summarization

Microsoft's 2024 paper on answering questions about a whole corpus, not one passage: build an entity graph, summarize its communities, then map-reduce over the summaries.

Breakdown by FDE Interviews · 11 min read · Updated

About the original · 2024
AUTHORS
Edge, Trinh, Cheng, Bradley, et al.
FROM
Microsoft Research, Microsoft Strategic Missions and Technologies, Microsoft Office of the CTO
PUBLISHED
Apr 2024 · arXiv preprint
CITED BY
2,366Semantic Scholar · Oct 2026
IN THIS BREAKDOWN · 10 SECTIONS

You can read 21% of this breakdown.

01

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.

THE IDEA, VISUALLY
INDEX ONCE, AHEAD OF TIME 600-token chunks LLM extracts entities + relations entity graph Leiden communities, 4 levels LLM summary per community ANSWER: MAP, THEN REDUCE global question summary partial summary partial summary partial combined global answer Every community contributes, so the answer covers the whole corpus, not a top-k sample. Indexing the 1M-token podcast corpus took 281 minutes of GPT-4-Turbo calls. COVERAGE VS COST, PODCAST CORPUS Figure 2 and Table 2 72% 2.6% tok C0 75% 22.2% tok C1 78% 55.8% tok C2 79% 73.5% tok C3 83% 100% tok all text Top label: how often its answers beat vector RAG on comprehensiveness. Bar: tokens per question vs all text.
Pay at indexing time, answer globally. Community summaries let every part of the corpus contribute to an answer, at a fraction of the tokens needed to summarize all the source text.
Research notes: the problem, approach and results
72–83%

comprehensiveness win rate against vector RAG on a 1M-token podcast corpus

97%

fewer tokens per question for root-level community summaries than map-reducing the source text

281min

of GPT-4-Turbo calls to index the 1M-token podcast corpus

THE PROBLEM

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.

THE IDEA

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.

THE RESULT

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.

02

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.

THE FULL BREAKDOWN

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

Get Premium · ₹2,000 / $25
  • ◇1 architecture diagram
  • </>1 runnable code experiment
  • ▦3 results tables
  • ?5 interview questions with answers
  1. 03Key takeaways

    The ideas to keep, the pipeline's design choices, cost against quality, and the misreadings to avoid

    Free account
  2. 04How it works

    Each indexing stage, the query-time map-reduce and the evaluation design, with a diagram

    Premium
  3. 05The numbers that matter

    Win rates by criterion, token costs by level, indexing cost and claim counts

    Premium
  4. 06Try it yourself

    A miniature pipeline that finds the themes a top-k retriever misses

    Premium
  5. 07Where it breaks

    The evaluation's limits, the indexing cost, and what the summaries lose

    Premium
  6. 08Using it on a deployment

    When to propose it, how to pilot it, and how to control cost and drift

    Premium
  7. 09Interview angles

    Five questions this paper prepares you for, with answer hints

    Premium
Back to the paper library →