GraphRAG
A RAG variant that builds a knowledge graph of entities and relations from documents and retrieves along it, not only by text similarity.

GraphRAG is a RAG variant that builds a knowledge graph of entities and relations from documents and retrieves along it, not only by text similarity. It targets questions that span many documents, such as “what are the main themes in these reports” or “which suppliers are tied to delayed projects”.
A model reads the documents, extracts entities (people, companies, products) and the relations between them, and often writes summaries of related clusters. Questions that span many documents are answered from the graph and the summaries, where plain RAG would find only scattered passages. The term was popularized by a Microsoft Research project published in 2024: the paper From Local to Global and the open-source GraphRAG library. The price is an expensive indexing step, with many model calls over the whole collection, that has to be repeated as documents change.
Try it only after plain RAG with hybrid search fails on questions that need connections across documents. For single facts it adds cost without benefit. An alternative for multi-step questions is agentic RAG, where the model searches several times instead of relying on a prebuilt graph.
Sources
- arXiv: From Local to Global: A Graph RAG Approach to Query-Focused Summarization arxiv.org
- Microsoft: Welcome microsoft.github.io
Related terms
- RAG (retrieval-augmented generation): Finding relevant documents first and putting them into the prompt, so the model answers from them.
- Agentic RAG: RAG where the model decides what to search for, reads the results and searches again if needed, instead of one fixed retrieval step.
- Chunking (RAG): Splitting documents into smaller passages before indexing them for search, so retrieval returns the relevant part instead of a whole file.
- Hybrid search: Combining keyword search (such as BM25) with vector search, so results match both exact terms and meaning.
