Skip to content
Last Dictionary

GraphRAG

proper nounAlso: Graph RAG, graph-based RAG, knowledge-graph RAG, KG-RAG

In plain wordsA way of letting AI answer questions about a big pile of documents by first turning them into a map of people, things and their connections, then using that map to find and summarize answers.

  1. 1

    Microsoft method

    A retrieval-augmented generationretrieval-augmented generation, n.: Giving an AI an open-book exam: before answering, it looks up relevant passages in a set of documents and bases its reply on them, often citing where each point came from. method from Microsoft Research designed for questions about a corpus as a whole. A language modellarge language model, n.: A computer program trained on enormous amounts of text to predict the words that come next. At vast scale, that simple skill lets it chat, answer questions, translate, summarize and write code. reads every chunk and records the people, organizations, places, events and other entities it mentions, with the relations among them, in a knowledge graphknowledge graph, n.: A huge web of facts stored as connections between things — 'Paris is the capital of France', 'Marie Curie won a Nobel Prize' — that computers can search, combine and reason over.; the Leiden clustering algorithm then splits the graph into nested groups of tightly linked entities, and the model writes a report on each group in advance. A broad question, such as what themes run through the collection, is answered map-reduce style, by drafting an answer from each relevant group report and then merging the drafts, while a question about specific things starts from the matching entities and collects their neighbors and source passages. Its developers reported fuller and more varied answers to such corpus-wide questions than ordinary vector RAG, which fetches a few similar chunks, at a much higher indexing cost.

    Plain RAG couldn't say what the 4,000 interviews had in common; GraphRAG's global search could.

  2. 2

    General

    Any retrieval-augmented approach that uses a graph — an existing knowledge graph or one extracted from text — to retrieve connected facts, follow multi-hop relationships or organize context, rather than retrieving independent passages by similarity alone.

Origin

Darren Edge, Ha Trinh, Jonathan Larson and colleagues at Microsoft Research described the method in 2024, notably in 'From Local to Global: A Graph RAG Approach to Query-Focused Summarization' (arXiv, April 2024), and released it as open-source software in July 2024. Graph-enhanced retrieval, and the label 'Graph RAG', had also circulated among graph-database vendors in 2023.

Usage note

Errors in entity extraction propagate into the graph, and indexing can need far more model calls than embedding does; lighter variants defer or reduce graph construction. As of October 2026 Microsoft describes its GraphRAG repository as largely in maintenance mode.

Related

See also
  • retrieval-augmented generationretrieval-augmented generation, n.: Giving an AI an open-book exam: before answering, it looks up relevant passages in a set of documents and bases its reply on them, often citing where each point came from.
  • knowledge graphknowledge graph, n.: A huge web of facts stored as connections between things — 'Paris is the capital of France', 'Marie Curie won a Nobel Prize' — that computers can search, combine and reason over.
  • agentic RAGagentic RAG, n.: Retrieval in which the AI runs its own research: it decides what to search for, looks at the results, searches again if needed, and only then answers.
  • chunkingchunking, n.: Cutting long documents into smaller pieces before storing them for AI search, so the system can find and hand the model just the relevant part instead of a whole manual.
  • text summarizationtext summarization, n.: Using a computer to shorten a document, meeting or set of articles into a brief version that keeps the main points.
  • query rewritingquery rewriting, n.: Rephrasing a user's question before searching — fixing typos, adding missing details, splitting it into simpler questions — so the search engine finds better results.

Sources

  1. Edge, D., Trinh, H., Cheng, N., Bradley, J., Chao, A., Mody, A., Truitt, S., Metropolitansky, D., Ness, R. O. & Larson, J. (2024). From Local to Global: A Graph RAG Approach to Query-Focused Summarization. arXiv:2404.16130. arxiv.org/abs/2404.16130
  2. microsoft/graphrag (GitHub repository). github.com/microsoft/graphrag

Mentioned in

retrieval-augmented generationretrieval-augmented generation, n.: Giving an AI an open-book exam: before answering, it looks up relevant passages in a set of documents and bases its reply on them, often citing where each point came from., graph neural networkgraph neural network, n.: A neural network for data shaped like a web of connections, such as molecules, social networks or road maps, in which each point repeatedly gathers information from its neighbors., knowledge graphknowledge graph, n.: A huge web of facts stored as connections between things — 'Paris is the capital of France', 'Marie Curie won a Nobel Prize' — that computers can search, combine and reason over.