From Local to Global: A Graph RAG Approach to Query-Focused Summarization
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.
- Venue
- arXiv / Microsoft
- License
- CC BY 4.0
- License family
- Permissive
- 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.
- Added
- Oct 1, 2026
- Research status
- done
From the source
- Published
- Apr 24, 2024
- Last revised
- Feb 19, 2025
- arXiv categories
- cs.CL, cs.AI, cs.IR
- Citations
- 2,263 (314 influential)
- References
- 57
Abstract (from arXiv)
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.
Tags
Topics
RAG, knowledge graphs, query-focused summarization
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
Similar entries
- Post Reaching 1B context length with RAG
- Paper Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory
- Model pplx-embed-v2-context-9b-preview: contextual embedding beyond the gold passage
- Code ReZero
- Model Cohere Embed 5 (Pro and Fast embeddings family)
- Paper How Local Mixing Encodes Relative Position in Global NoPE Attention