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

- **ID:** 572
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2404.16130
- **Authors:** Darren Edge, Ha Trinh, Newman Cheng, Joshua Bradley, Alex Chao, Apurva Mody, Steven Truitt, Dasha Metropolitansky, Robert Osazuwa Ness, Jonathan Larson
- **Venue:** arXiv / Microsoft
- **Published:** 2024
- **License:** CC BY 4.0
- **License family:** Permissive (auto-classified)
- **Tags:** graphrag, rag, knowledge-graph, leiden, qfs, microsoft, community-detection, sensemaking
- **Topics:** RAG, knowledge graphs, query-focused summarization
- **Added:** 2026-10-01
- **Research status:** done
- **Page:** https://papers.projxon.ai/entries/572

## Summary

GraphRAG: LLM extracts entities/relations/claims into a knowledge graph, Leiden-partitions it hierarchically, and pregenerates community summaries; query-time map-reduce over those summaries answers global QFS that vector RAG misses. Podcast (~1M tok) and news (~1.7M tok) graphs: 8,564/15,754 nodes. vs vector RAG, comprehensiveness win rates ~72–83% and diversity ~62–82% (GPT-4 judge, 125 questions×5). Root-level summaries use ~2–3% of source tokens. Code https://github.com/microsoft/graphrag.

## Attributes

- **Purpose:** Answer global sensemaking questions over a whole corpus by indexing an LLM-built entity graph and summarizing communities
- **Scale:** Podcast 1,669×600-token chunks (~1M tok); news 3,197×600 (~1.7M). Graphs 8.6k nodes/20.7k edges and 15.8k/19.5k. 125 LLM-generated global questions/dataset; 8k-token query context; gpt-4-turbo indexing
- **Time period:** 2024-04-24 (arXiv 2404.16130 v1); last revised 2025-02-19 (v2). HF paper publishedAt 2024-04-24.

## From the source (fetched 2026-10-03)

- **Published:** Apr 24, 2024 (arXiv)
- **Last revised:** Feb 19, 2025 (arXiv)
- **arXiv categories:** cs.CL, cs.AI, cs.IR (arXiv)
- **Citations:** 2,263 (314 influential) (Semantic Scholar)
- **References:** 57 (Semantic Scholar)

## Abstract

The use of retrieval-augmented generation (RAG) to retrieve relevant information from an external knowledge source enables large language models (LLMs) to answer questions over private and/or previously unseen document collections. However, RAG fails on global questions directed at an entire text corpus, such as "What are the main themes in the dataset?", since this is inherently a query-focused summarization (QFS) task, rather than an explicit retrieval task. Prior QFS methods, meanwhile, do not scale to the quantities of text indexed by typical RAG systems. To combine the strengths of these contrasting methods, we propose GraphRAG, a graph-based approach to question answering over private text corpora that scales with both the generality of user questions and the quantity of source text. Our approach uses an LLM to build a graph index in two stages: first, to derive an entity knowledge graph from the source documents, then to pregenerate community summaries for all groups of closely related entities. Given a question, each community summary is used to generate a partial response, before all partial responses are again summarized in a final response to the user. For a class of global sensemaking questions over datasets in the 1 million token range, we show that GraphRAG leads to substantial improvements over a conventional RAG baseline for both the comprehensiveness and diversity of generated answers.

## Research notes

- Primary: arxiv abs (cs.CL; also cs.AI, cs.IR). License CC BY 4.0 on HTML at check. Microsoft Strategic Missions and Technologies / Office of the CTO / Microsoft Research. Correspondence daedge/trinhha/newmancheng/joshbradley/achao/moapurva/steventruitt/dasham/robertness/jolarso @microsoft.com. Code https://github.com/microsoft/graphrag (35,498 stars at check; MIT). HF paper page 7 upvotes; unofficial linked model muthuk1/graphrag-inference-hackathon not copied into hf_* fields. Discord posted PDF. Eval uses public podcast transcripts plus MultiHop-RAG news rather than a new hosted corpus, so no datasets_local row.

## Cited by, within this collection

- [MeMo: Memory as a Model](https://papers.projxon.ai/entries/522) (paper 2026, #522)
- [HippoRAG: Neurobiologically Inspired Long-Term Memory for Large Language Models](https://papers.projxon.ai/entries/665) (paper 2024, #665)
- [Search-o1: Agentic Search-Enhanced Large Reasoning Models](https://papers.projxon.ai/entries/917) (paper 2025, #917)

## Similar entries

- [Reaching 1B context length with RAG](https://papers.projxon.ai/entries/1112) (post, #1112)
- [Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory](https://papers.projxon.ai/entries/549) (paper, #549)
- [pplx-embed-v2-context-9b-preview: contextual embedding beyond the gold passage](https://papers.projxon.ai/entries/825) (model, #825)
- [ReZero](https://papers.projxon.ai/entries/596) (code, #596)
- [Cohere Embed 5 (Pro and Fast embeddings family)](https://papers.projxon.ai/entries/816) (model, #816)
- [How Local Mixing Encodes Relative Position in Global NoPE Attention](https://papers.projxon.ai/entries/840) (paper, #840)
