Skip to content

AI Glossary · Concepts

What is GraphRAG?

GraphRAG

GraphRAG uses graph structure, such as entities and relationships, to organize or retrieve evidence for a language model. The term describes a family of approaches and also Microsoft's specific graph-and-community-summary pipeline.

Also known as: graph RAG, graph-based RAG

· Updated · Chain of Thought

RAG & Retrieval

  • 3 explainers
  • 1 episode
  • 1 source

Graph structure can help a system connect a customer, a contract, and the products covered by that contract. It can also support questions that require synthesizing information across documents rather than finding one similar passage.

Microsoft’s GraphRAG builds an entity graph and community summaries from source text. Its global search uses those summaries to address broader corpus questions, while local search works around particular entities. Other graph-based RAG systems may query an existing graph or combine it with vector retrieval.

Example: asking “Which services depend on this component?” benefits from explicit dependency links. But an outdated or wrongly extracted link can mislead the answer. A graph is structured evidence, not an automatic guarantee of truth.

Compare against the simplest retrieval baseline that serves your questions. Include extraction, indexing, update cost, and answer quality. Vector database vs. knowledge graph explores the architecture choice; the right choice depends on the relationships the task needs.

Sources

Go deeper

  • Microsoft GraphRAG: Getting started docs

    Follow the sample from indexing to local and global questions. Running it needs Python and configured model access; indexing can consume substantial LLM resources and incur charges.

From the conversation