# GraphRAG

> Canonical: https://skillalmanac.com/glossary/graph-rag | Verification status: pending | Index status: not offered to search engines

GraphRAG is a retrieval-augmented generation approach that uses a language model to build a knowledge graph of entities and relationships from documents, summarizes groups of related entities, and uses those structures to answer questions.

Also called: Graph RAG, knowledge graph RAG, Microsoft GraphRAG, graph retrieval-augmented generation, GraphRAG vs RAG.

## In plain language

Ordinary RAG finds a few passages that look like your question. That works for narrow questions, but the paper says conventional RAG fails on global questions directed at an entire text corpus, such as what the main themes are. GraphRAG first reads the whole collection and builds a map of the people, places and ideas in it and how they connect, then writes short summaries of each cluster. When you ask a question, the AI can use the map and the summaries, not only snippets. The catch is cost: building the map means many calls to a language model, so Microsoft's own project warns that indexing can be an expensive operation and advises starting small.

## Technical definition

The GraphRAG paper (arXiv 2404.16130, first submitted 24 April 2024) proposes a two-stage index: an LLM builds an entity knowledge graph from the source documents, then pregenerates summaries for communities of closely related entities. For a global question, each community summary produces a partial response and these are combined into a final answer.

## How it shows up when you use agents

You are unlikely to meet GraphRAG inside a coding agent session. It appears when someone builds a question-answering system over a large body of text, such as a research archive, a support history or a set of contracts, and finds that [retrieval-augmented generation](/glossary/retrieval-augmented-generation) answers specific questions well but misses the big picture. The Microsoft paper frames that gap as query-focused summarization over a whole collection. If an agent works against such a system, perhaps through an [MCP server](/glossary/mcp-server), the choice of search mode matters: Microsoft's documentation separates global search over community summaries from local search about specific entities.

What breaks when it is misunderstood: the graph is built by a [large language model](/glossary/large-language-model), so it can contain extraction mistakes, and the summaries inherit them. The README says indexing can be an expensive operation and advises starting small. The documentation also says that using GraphRAG with your data out of the box may not yield the best possible results, and recommends prompt tuning. A sensible next action is to run a plain RAG baseline and GraphRAG on a small set of questions whose answers you already know, and compare each answer with its sources before paying to index everything. The README also describes the project as largely in maintenance mode, so check the repository's status before adopting it.

## Common confusions

- **GraphRAG versus RAG.** RAG retrieves passages that resemble the question. GraphRAG adds a graph of entities and relationships and summaries of communities, aimed at questions about a whole collection.
- **GraphRAG versus a knowledge graph.** A [knowledge graph](/glossary/knowledge-graph) is the data structure. GraphRAG is a way of building one with a language model and using it for retrieval-augmented answers.
- **GraphRAG versus Microsoft GraphRAG.** "GraphRAG" is used for the general idea of graph-based retrieval and also for the Microsoft research project and library of that name. Check which one a source means.
- **Myth.** A graph removes hallucination. The graph is itself produced by a model, and the answer still needs checking against the original documents.

## Worked examples in this catalogue

### [What Is RAG? Retrieval-Augmented Generation Explained](https://skillalmanac.com/learn/what-is-rag)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The guide explains plain RAG: documents are chunked, indexed and retrieved at question time, with a worked chunking example.

Why it exercises the concept: GraphRAG is a variant built for questions that passage retrieval handles poorly. You need the plain pipeline in mind to see what the graph adds.

### [rag-chunking-planner](https://skillalmanac.com/skills/skill-almanac/rag-chunking-planner)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Your documents are chunked by three strategies, with defects and offline recall reported for each.

Why it exercises the concept: It measures the baseline step that GraphRAG is compared against. The catalogue has no GraphRAG skill, so this is the closest runnable check on the passage-retrieval side.

### [claim-evidence-map](https://skillalmanac.com/skills/skill-almanac/claim-evidence-map)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Factual propositions in a supplied draft are traced to supplied excerpts, source identifiers and locations.

Why it exercises the concept: Graph summaries are second-hand text. A claim-to-excerpt map is one way to check an answer built from summaries back against the original passages.

## Related terms

- [Retrieval-augmented generation (RAG)](https://skillalmanac.com/glossary/retrieval-augmented-generation.md)
- [Knowledge graph](https://skillalmanac.com/glossary/knowledge-graph.md)
- [Large language model (LLM)](https://skillalmanac.com/glossary/large-language-model.md)
- [Embedding](https://skillalmanac.com/glossary/embedding.md)
- [Semantic search](https://skillalmanac.com/glossary/semantic-search.md)
- [Agentic RAG](https://skillalmanac.com/glossary/agentic-rag.md)

## Sources

- [microsoft/graphrag](https://github.com/microsoft/graphrag), Microsoft (GitHub) (accessed 2026-11-24)
- [From Local to Global: A Graph RAG Approach to Query-Focused Summarization](https://arxiv.org/abs/2404.16130), arXiv (Edge et al.) (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above. Independent source and example-target verification is pending. [Glossary index](https://skillalmanac.com/glossary.md).
