How it works · 10 of 37 Advanced
What is GraphRAG and how is GraphRAG different from RAG?
Following connections
GraphRAG: Store facts as a knowledge graph (things and how they relate) to answer questions that need several linked facts.
Loading the animation…
Say it like this GraphRAG stores facts as things joined by named links, so it can answer a question by following the links step by step, and show the chain it followed.
Under the hood — for builders
- What the graph stores
- Facts, each written as two things joined by a named link. A model reads your documents once and writes down every fact it finds this way. These are the three facts this card's answer used:
- How Microsoft builds the board
- Microsoft's GraphRAG, step by step. Teal steps are where a model does the work:
- Two ways to ask
- Follow the string (this card): start from what the question names, like SolarMax, and walk the links. Or ask about everything at once, like “What are the main risks across all our suppliers?”, answered from the cluster summaries. Microsoft calls these local and global search.
- Real impact
- Microsoft tested the ask-about-everything kind against plain meaning search, on podcast transcripts and news articles. For each question the two answers were compared and the better one picked. Win rate = how often GraphRAG's answer was picked; 50% means no better than plain search:
- Typical cost
- Building the board for the podcast set (about 1 million tokens, the word pieces from Tokens) took 281 minutes of model time (Edge et al., §6.1). Plain meaning search has no such step.
- Tools
- Microsoft publishes its GraphRAG code and docs; a graph database can store the board and walk its links.
- Measure it
- Write test questions that need two or three facts joined, like this card's. Check the answer, and that every step of its chain points to a real page.
- Watch out
- If the model misses or invents one link, every chain through it breaks. When your documents change, the board must be rebuilt. For one-fact questions, plain search is enough.
- Sources
- Edge, Trinh, Cheng, Bradley, Chao, Mody, Truitt, Metropolitansky, Ness & Larson, From Local to Global: A GraphRAG Approach to Query-Focused Summarization (arXiv 2404.16130v2, 2025) · Microsoft GraphRAG docs, query overview.
What happens in the GraphRAG animation, step by step?
- The question needs three facts joined: who makes the product, where their factory is, and whether that place floods. Each fact sits on a different page.
- Plain search finds the pages whose words sound like the question: the product, a supplier, the flood map. But nothing on those pages joins them.
- Your turn: tap the product photo to start following the string.
- A graph stores each fact as a link with a name: "made by", "factory in", "inside". The search follows the links one hop at a time; dead ends fade.
- One chain reaches the flood zone. The answer is Kirana Cells, and it comes with the chain that proves it.
What everyday example explains GraphRAG?
A detective's pinboard with string between photos.
Why should a team care about GraphRAG?
"connect the dots" questions over company data.