RAG & retrieval Guide 22 of 25

GraphRAG: when retrieval needs structure

Vector search finds passages that look like the question. Graphs help when answers are spread across documents or hidden in relationships — but they cost far more to build, and the evidence is narrower than the hype.

  • 9 min read
  • Updated 
  • 8 sources

Key takeaways

  • Vector RAG struggles with two question types: corpus-wide questions about themes, and multi-hop questions that join facts across documents. GraphRAG targets exactly those two.
  • Independent benchmarks broadly agree: plain RAG matches or beats GraphRAG on single-fact lookups, while graphs help on multi-hop reasoning and broad, corpus-level summaries.
  • The strongest production evidence comes from structure that already exists, such as LinkedIn’s linked support tickets, not from graphs an LLM extracts from prose.
  • LLM-built graphs are expensive to index and lossy. In one study, only about two-thirds of answer entities ever made it into the graph.
  • As of August 2026, Microsoft has moved its GraphRAG repository to maintenance mode. Treat it as a reference design, and exhaust cheaper retrieval fixes first.
On this page 7 sections

Most retrieval-augmented generation (RAG) systems work the same way. They split documents into chunks, turn each chunk into a vector, and at question time fetch the few chunks most similar to the question. For “What is our refund window?” that is exactly right: one passage holds the answer, and it reads like the question.

Two other kinds of question break this design. Ask “What keeps causing escalations this quarter?” and no single chunk resembles the answer, because the answer is a pattern across hundreds of tickets. Ask “Which customers run the release that fixed the bug cloned from this ticket?” and the facts sit in different documents, joined by identifiers rather than shared wording.

GraphRAG is the family of techniques that adds a graph — entities as nodes, relationships as edges — so retrieval can follow structure instead of surface similarity. Microsoft’s open-source GraphRAG library, released in July 2024, had more than 36,000 GitHub stars as of early October 2026. Two years on, the evidence is clearer and narrower: graphs help on specific question types, cost far more to build, and Microsoft’s own reference implementation is now in maintenance mode. This guide explains how the main designs work and how to decide whether you need one.

What problem does GraphRAG solve that vector search can’t?

Microsoft Research’s LazyGraphRAG write-up offers a useful framing. Vector search is a best-first strategy: rank chunks by similarity and keep the top few. That suits local questions about one specific thing. It is the wrong shape for global questions, which need a breadth-first sweep across the whole corpus before anything can be summarized.

The team’s February 2024 introduction of GraphRAG showed both failures on thousands of translated Russian and Ukrainian news articles from June 2023. Asked what one political movement had done, baseline RAG retrieved no chunk that mentioned it. GraphRAG recognized the movement as an entity in its graph and answered from the relationships attached to it, with links back to source text. Asked for the top themes, baseline RAG returned five that had little to do with the war dominating the coverage, while GraphRAG answered from summaries of clusters of related entities.

There is a third, quieter failure. Chunking flattens documents that were never flat. A support ticket has a title, a priority, reproduction steps, and links to related tickets, and slicing it into fixed-size windows throws that structure away. Some of the best graph results come from simply keeping it.

Two kinds of GraphRAG: extracted graphs vs. graphs you already have

The label covers designs with very different costs, and most confusion comes from mixing them up. One family asks a large language model (LLM) to extract a graph from prose. The other builds the graph from structure your data already has.

AspectVector RAGLLM-built graph with community summariesGraph from structured recordsLazy, query-time graph
Where the graph comes fromNo graphAn LLM extracts entities and relations from every chunkFields, IDs, and links already in the dataNoun-phrase co-occurrence, no LLM at index time
ExampleMost production RAGMicrosoft GraphRAGLinkedIn’s support-ticket systemMicrosoft LazyGraphRAG
Indexing costLowHigh: LLM extraction plus a summary per clusterLow to moderateAbout the same as vector RAG
Best atSingle-fact lookupsCorpus-wide themes and summariesMulti-hop questions over linked recordsMixed local and global questions
Main riskMisses answers spread across documentsLossy extraction, stale summaries, and costNeeds clean source structureNewer, with little independent testing

How does Microsoft’s GraphRAG work?

The GraphRAG paper by Darren Edge and colleagues at Microsoft Research describes a five-step pipeline:

  1. Chunk the corpus. The experiments used 600-token chunks with 100 tokens of overlap.
  2. Extract entities and relationships. An LLM reads each chunk and lists the named things it mentions and how they relate. Chunk size matters: GPT-4 pulled nearly twice as many entity references from 600-token chunks as from 2,400-token ones.
  3. Detect communities. The merged graph is clustered with the Leiden algorithm into a hierarchy, from a few broad groups of densely connected entities down to many narrow ones.
  4. Summarize every community. An LLM writes a report for each cluster, from the bottom of the hierarchy up. This step makes global questions answerable, and it is also what makes indexing expensive.
  5. Answer with map-reduce. For a global question, the summaries are shuffled into context-sized batches. An LLM drafts a partial answer from each batch in parallel and rates how helpful it is, and the best-rated partial answers are merged into one response.

The evaluation used two corpora of roughly 1 million and 1.7 million tokens: podcast transcripts and news articles. In head-to-head comparisons judged by an LLM, the global approaches beat vector RAG 72–83% of the time on comprehensiveness and 62–82% on diversity. Vector RAG still gave the most direct answers. Querying the top-level summaries also took over 97% fewer tokens than map-reducing the raw source text.

The bill arrives at indexing time. In the paper’s setup, with GPT-4 Turbo doing extraction and summarization, indexing the podcast corpus took 281 minutes. The project’s README still warns that indexing is expensive, advises starting small, and strongly recommends tuning the prompts to your own data. Global search is not the only mode: Microsoft’s LazyGraphRAG post also benchmarks GraphRAG’s local search, which answers questions about specific entities by starting from the entities that match and pulling in their neighbors.

LazyGraphRAG: deferring the expensive part

In November 2024, Microsoft Research published LazyGraphRAG, which skips LLM work at index time. It builds a concept graph from noun phrases using conventional natural language processing (NLP). LLM calls are spent only at query time, testing candidate text for relevance under a configurable budget.

On 5,590 Associated Press articles and 100 synthetic questions, Microsoft reported indexing at 0.1% of full GraphRAG’s cost. Global answers were comparable to GraphRAG’s global search, while query cost fell by a factor of more than 700. These are Microsoft’s own benchmarks, scored by LLM judges. A June 2025 editor’s note says the technique now sits inside Microsoft Discovery, an Azure-based agentic platform for scientific research, and in a public preview of Azure Local services.

When the graph already exists: LinkedIn’s support tickets

The most convincing production result does not ask an LLM to discover entities and relationships in prose. In a paper at SIGIR 2024, the Association for Computing Machinery’s information-retrieval conference, LinkedIn engineers described a customer-service question-answering system built over historical support tickets.

Each ticket becomes a small tree of sections, such as summary, description, priority, and steps to reproduce. Rules pull out predefined fields, and an LLM guided by a template parses the free text that rules cannot handle. Tickets connect in two ways. Explicit edges come from Jira’s own issue links, such as one ticket being cloned from another, and implicit edges join tickets whose title embeddings clear a similarity threshold.

At question time, an LLM extracts entities and intent from the query, and embedding search finds the matching tickets. The LLM then writes a query in Cypher, a graph query language, to pull the relevant subgraph. If that query fails, the system falls back to plain text retrieval.

Against a text-retrieval baseline, mean reciprocal rank (MRR), a measure of how high the right ticket ranks, improved 77.6%. By the time of the write-up, the system had been in use with LinkedIn’s customer service team for about six months. When that team was split at random, the group using it had a median per-issue resolution time 28.6% lower than colleagues who kept working manually.

The lesson is about where the structure came from. Jira already recorded which tickets were related, and the graph preserved that fact instead of asking a model to guess it.

What do independent benchmarks say about GraphRAG?

Early results came mostly from the teams building these systems. Independent studies since 2025 tell a consistent, more modest story.

Researchers from Michigan State University, Meta, IBM, and others compared plain RAG with several graph variants on standard question-answering and summarization benchmarks. Plain RAG did better on single-hop questions that hinge on one precise piece of evidence. Graph methods did better on multi-hop questions and produced more diverse corpus-level summaries. Retrieving only extracted triples fared poorly, partly because only about 65% of answer entities ever reached the LLM-built graph.

The same study found a measurement problem. When an LLM judged two summaries side by side, swapping their order changed the verdict substantially, sometimes reversing it. Many headline GraphRAG wins, including the original paper’s, come from pairwise LLM judging, so how the judging was done deserves scrutiny.

GraphRAG-Bench, from Xiamen University and The Hong Kong Polytechnic University, started from reports that GraphRAG often trails vanilla RAG on real tasks and asked where graphs actually help. Basic RAG was comparable or better on simple fact retrieval, while graph methods led on complex reasoning and contextual summarization. The price was prompt size: the authors report that Microsoft GraphRAG’s global mode grew its prompts from about 7,800 to 40,000 tokens as questions got harder.

The newest pressure comes from agents that search, read, and search again. In an April 2026 study, researchers at NYU Shanghai found that this agentic search makes dense RAG much stronger and shrinks its gap to GraphRAG, especially for agents trained with reinforcement learning. Graphs kept an edge on complex multi-hop reasoning, and their search behavior was steadier once the offline indexing cost was spread over many queries.

Microsoft’s own project has changed status too. On 14 August 2026 it added a notice calling the GraphRAG repository “largely in maintenance mode,” citing how far frontier-model capabilities have moved since the July 2024 release. The team will still fix bugs and update dependencies, especially for security vulnerabilities, but is not taking new pull requests or adding features. As of early October 2026, the latest release is v3.2.0, from 24 September 2026.

When is a graph worth the cost?

Five conditions should all hold before a team commits to an LLM-built graph:

  • Your questions are global or multi-hop, and you can show it. Pull a few hundred real questions from logs and label each one: single fact, multi-hop, corpus-wide theme, or aggregate. If most are single facts, the benchmarks above suggest a graph will add cost without adding accuracy.
  • The questions are not really aggregates. “How many tickets mentioned the outage last month?” needs counting over structured data, through a database query or a metadata filter, not a summary of summaries.
  • The structure is not already in your systems. Foreign keys, ticket links, org charts, product hierarchies, and contract parties are free edges. Using them is cheap and precise; asking an LLM to rediscover them is expensive and lossy.
  • The corpus is stable and queried often. Community summaries must be rebuilt as documents change. Indexing pays off when many queries share it, not when the corpus churns daily.
  • Cheaper fixes have run out. Hybrid keyword-plus-vector search, reranking, and metadata filters fix many retrieval misses. An agent loop that searches more than once narrows the gap to GraphRAG without building one, as the NYU Shanghai study found.

What this means for your team

Start from an evaluation set, not an architecture. Label real questions by type, define what a correct answer looks like, and measure a strong baseline: hybrid search, a reranker, and multi-step agentic retrieval. Only the question types that still fail are candidates for a graph.

If those failures are multi-hop questions over records you already hold, build the thin graph first. Load the entities and links you already trust into a graph store, let the model write graph queries, and keep text retrieval as a fallback, as LinkedIn did. It is cheap to try and easy to debug, because every edge has a known origin.

If the failures are corpus-wide theme questions over a stable document set, LLM-built community summaries are a legitimate tool. Pilot on a sample, measure indexing cost in dollars and hours per million tokens, and budget for re-indexing. Given its maintenance status, treat Microsoft’s library as a reference design rather than a platform, and keep the graph in storage you control.

Plan for four pitfalls:

  • Entity resolution. Extraction can easily turn IBM, I.B.M., and International Business Machines into three separate nodes unless you merge them. Every unmerged duplicate splits a relationship the graph was meant to capture.
  • Silent extraction loss. If a third of your answer entities never reach the graph, graph-only retrieval cannot find them. Keep the source text retrievable alongside the graph.
  • Judge bias. Run pairwise comparisons in both orders, and back LLM verdicts with human spot checks.
  • Stale summaries. Community reports describe the corpus as it was at indexing time. Record when each one was built, and surface that date.

When we build knowledge assistants, the graph usually arrives late, after the eval set shows that cheaper fixes have stopped paying. Even then, success turns on question labels, entity merging, and refresh jobs more than on the graph itself.

Sources

  1. GraphRAG: Unlocking LLM discovery on narrative private data (opens in new tab) — Microsoft Research, 2024 microsoft.com

  2. From Local to Global: A Graph RAG Approach to Query-Focused Summarization (opens in new tab) — Microsoft Research (arXiv), 2024 arxiv.org

  3. LazyGraphRAG: Setting a new standard for quality and cost (opens in new tab) — Microsoft Research, 2024 microsoft.com

  4. microsoft/graphrag (repository and README) (opens in new tab) — Microsoft (GitHub), 2026 github.com

  5. Retrieval-Augmented Generation with Knowledge Graphs for Customer Service Question Answering (opens in new tab) — LinkedIn (arXiv, SIGIR 2024), 2024 arxiv.org

  6. RAG vs. GraphRAG: A Systematic Evaluation and Key Insights (opens in new tab) — Michigan State University, Meta, IBM Research, and others (arXiv), 2025 arxiv.org

  7. When to use Graphs in RAG: A Comprehensive Analysis for Graph Retrieval-Augmented Generation (opens in new tab) — Xiamen University and The Hong Kong Polytechnic University (arXiv), 2025 arxiv.org

  8. Do We Still Need GraphRAG? Benchmarking RAG and GraphRAG for Agentic Search Systems (opens in new tab) — NYU Shanghai (arXiv), 2026 arxiv.org

Where this shows up in our work

Building this? Talk to an engineer.

If this guide maps to a system you’re planning, send a short brief. A senior engineer replies within one business day.