GraphRAG
GraphRAG (Graph Retrieval-Augmented Generation) is a RAG method that uses an LLM to extract entities and their relationships from documents, builds a knowledge graph from them, and uses that graph for retrieval. It also pre-generates summaries for communities, which are groups of closely related entities, which can help it handle global questions about a whole collection, such as "What are the main themes in this data?", more comprehensively than vector RAG in the authors’ reported experiments.[1] Microsoft Research introduced it in a 2024 paper and released it as open source on GitHub.[1][4]
What does GraphRAG mean in simple terms?
GraphRAG reads all of your material first and draws a map of how people, organizations, and concepts are connected. Conventional RAG finds a few passages that look similar to the question and answers from those. With the map, GraphRAG can pull together information scattered across many documents.[1] The catch is cost: building the map takes many LLM calls, and Microsoft's own documentation warns that indexing can be expensive.[4][6] A practical way to decide is to check how many of your real questions ask about the whole collection rather than one specific document.
How can GraphRAG be explained with an analogy?
It is like drawing a character map before reading a long novel, then answering questions by tracing the lines on that map.
Where is GraphRAG used?
Microsoft Research — The original experiment on global questions
Microsoft Research compared GraphRAG with vector RAG on two datasets of about 1 million tokens each: podcast transcripts and news articles.[1] An LLM judged pairs of answers to broad "sensemaking" questions. Across both datasets, the global methods tested won 72–83% of comparisons on comprehensiveness and 62–82% on diversity against vector RAG.[1] Even the cheapest setting, which used only the top-level community summaries, kept 72% and 62% win rates while needing over 97% fewer context tokens per query than summarizing the source texts directly.[1]
Result: Comprehensiveness win rates of 72–83% and diversity win rates of 62–82% against vector RAG (LLM-judged, research setting).[1]
LinkedIn — Knowledge graph for customer service
LinkedIn built a knowledge graph from past customer service issue tickets and combined it with RAG retrieval, keeping both the structure inside each ticket and the links between tickets.[2] On its benchmark datasets the method improved MRR, a retrieval quality metric, by 77.6% over the baseline. The team reported running it within LinkedIn's customer service team for about six months.[2]
Result (reported by the authors): Median per-issue resolution time reduced by 28.6%; MRR +77.6% over the baseline on benchmark data.[2]
Lettria on AWS — Accuracy across four industries (vendor-reported)
AWS partner Lettria compared its hybrid GraphRAG, which combines graph and vector retrieval, with a vector-only RAG baseline. The test data came from finance (Amazon financial reports), healthcare (COVID-19 vaccine studies), industry (aeronautical material specifications), and law (EU environmental directives). Lettria's in-house team graded the answers manually.[3] Correct answers rose from 50.83% to 80% overall, and the largest gap appeared in technical specifications: 46.88% versus 90.63%.[3]
Result (vendor-reported): Correct answers 50.83% → 80% across four domains (AWS blog, December 2024).[3]
Try it today
- Open Neo4j's LLM Knowledge Graph Builder, connect a free Neo4j database, and upload one PDF to see how entities and relationships are extracted into a graph.[7]
- Read the Getting Started guide in the official GraphRAG documentation: install with pip install graphrag, then index the sample text it provides.[6]
- Write down your team's real questions and sort them into "find a specific document or fact" and "understand the whole collection". Count how many fall into the second group.
- Note the documentation's cost warning and its advice to start with the tutorial dataset and inexpensive models before a large indexing job.[6]
- Compare a global question ("What are the top themes?") with a local one ("Who is this person and what are their main relationships?") using the two query examples in the guide.[6]
Limits and direction
The main limit is cost. GraphRAG runs an LLM over the whole collection during indexing to build the graph and summaries, and the repository warns that indexing can be an expensive operation.[4] In Microsoft’s reported experiments, its later LazyGraphRAG approach had indexing costs equal to vector RAG and only 0.1% of full GraphRAG.[5] Because the graph is built in advance, frequently changing data also adds update work. Microsoft recommends tuning prompts for your own data because default settings may not give the best results, and it describes the code as a demonstration rather than an officially supported Microsoft product.[4] The original paper notes that its evaluation covered only two corpora of about 1 million tokens, so results may differ in other domains.[1]
Development is moving toward lower cost and managed services. LazyGraphRAG, announced in November 2024, skips pre-summarization and uses the graph at query time. For global questions it showed answer quality comparable to GraphRAG global search at more than 700 times lower query cost.[5] In March 2025, GraphRAG became generally available in Amazon Bedrock Knowledge Bases as a managed feature.[8] The open-source project continues to release updates: v3.1.0 came out in May 2026 and v3.1.2 in August 2026, and the repository had more than 35,000 GitHub stars when checked in October 2026.[9]
Which sources explain GraphRAG?
- Microsoft Research (Edge et al.) — From Local to Global: A Graph RAG Approach to Query-Focused Summarization (arXiv, v1 2024-04-24, v2 2025-02-19) — https://arxiv.org/abs/2404.16130
- LinkedIn (Xu et al.) — Retrieval-Augmented Generation with Knowledge Graphs for Customer Service Question Answering (arXiv, 2024-04-26) — https://arxiv.org/abs/2404.17723
- AWS Machine Learning Blog — Improving Retrieval Augmented Generation accuracy with GraphRAG (2024-12-23) — https://aws.amazon.com/blogs/machine-learning/improving-retrieval-augmented-generation-accuracy-with-graphrag/
- Microsoft — microsoft/graphrag GitHub repository (checked 2026-10-13) — https://github.com/microsoft/graphrag
- Microsoft Research Blog — LazyGraphRAG: Setting a new standard for quality and cost (2024-11-25) — https://www.microsoft.com/en-us/research/blog/lazygraphrag-setting-a-new-standard-for-quality-and-cost/
- Microsoft — GraphRAG documentation: Getting Started — https://microsoft.github.io/graphrag/get_started/
- Neo4j — LLM Knowledge Graph Builder: From zero to GraphRAG in five minutes (2024-06-19) — https://neo4j.com/blog/developer/graphrag-llm-knowledge-graph-builder/
- AWS — Amazon Bedrock Knowledge Bases supports GraphRAG now generally available (2025-03-07) — https://aws.amazon.com/about-aws/whats-new/2025/03/amazon-bedrock-knowledge-bases-graphrag-generally-available/
- Microsoft — microsoft/graphrag releases (checked 2026-10-13) — https://github.com/microsoft/graphrag/releases
Tell us what you think
Your feedback helps us improve the content.