GraphRAG

What is GraphRAG?

GraphRAG is a form of retrieval-augmented generation that uses a knowledge graph, rather than only text chunks, to retrieve connected entities and relationships, helping AI answer questions that depend on how information links together.

Updated November 2026 · 2 min read


GraphRAG gives a language model a map of how facts connect, not just a pile of matching passages: before the model answers, the system pulls the relevant entities and their relationships from a knowledge graph and passes them in as context. It is a variant of retrieval-augmented generation built for questions that depend on how information links together, such as "which customers are affected if this supplier fails?", or that need a summary across a large body of content, which standard RAG handles poorly.

The term gained wide attention in 2024, when Microsoft Research published a paper on its GraphRAG approach in April and released the code as open source in July.

How does GraphRAG work?

There are two broad approaches:

  • Building a graph from text: a language model extracts entities and relationships from documents to build a graph. Microsoft's approach then groups related entities into communities and writes summaries of each, so broad questions can be answered from the summaries.
  • Using an existing graph: the system queries a curated knowledge graph, such as one built from an organization's systems, and passes the connected facts to the model, often alongside text retrieval.

In both cases, retrieval follows relationships, not just similarity, so the model sees how facts connect.

GraphRAG vs. standard RAG

Question typeStandard RAGGraphRAG
"What is our travel policy for contractors?"GoodGood, but unnecessary
"Which projects depend on the systems owned by this team?"Weak, the links are spread across documentsStrong
"What are the main themes across all incident reports?"Weak, retrieves only a few chunksStrong with community summaries
Cost to set upLowerHigher, since the graph must be built and maintained

An example

Consider a hypothetical pharmaceutical company asking which ongoing clinical trials could be affected by a supply problem at one contract manufacturer. Standard RAG returns documents mentioning the manufacturer but cannot link them to trials. With a knowledge graph connecting manufacturers to the materials they produce, materials to drug candidates and candidates to trials, the system follows the relationships and returns seven affected trials with their sites and timelines, each traceable through the graph.

Limitations of GraphRAG

  • Graph quality: automatically extracted graphs contain errors and duplicates. See entity resolution.
  • Cost: extracting entities from large document sets requires many model calls.
  • Maintenance: the graph must stay current as content changes.

GraphRAG is increasingly used with an enterprise knowledge graph to ground agents in how an organization actually fits together.

Frequently asked questions

What is the difference between GraphRAG and standard RAG?

Standard RAG retrieves text passages similar to a question, which works well for direct lookups such as a policy question. GraphRAG retrieves connected entities and relationships from a knowledge graph, so it handles questions whose answers depend on links spread across documents, or that need themes summarized across a large body of content. It costs more to set up.

How does Microsoft's GraphRAG approach work?

A language model extracts entities and relationships from documents to build a graph, then groups related entities into communities and writes a summary of each. Broad questions, such as the main themes across all incident reports, can then be answered from those community summaries. Microsoft Research published the approach in April 2024 and released the code as open source in July.

When is GraphRAG not worth the extra cost?

GraphRAG adds little for simple factual questions, such as a travel policy lookup, that standard retrieval already answers well. Its costs are real: extracting entities from large document sets takes many model calls, automatically built graphs contain errors and duplicates that need entity resolution, and the graph must be maintained as content changes.

Book a demo