GraphRAG
Definition
Retrieval-augmented generation that uses a knowledge graph of entities and relationships to connect related facts across many documents.
In more detail
Plain RAG retrieves chunks similar to the question, which works for local facts but struggles with questions like 'what are the main themes across these reports?'. Microsoft Research's GraphRAG, published in 2024, uses a model to extract entities and relationships into a graph, groups them into communities and summarises each, then answers broad questions from those summaries.
The term now covers any RAG system that uses a graph. Indexing is far more expensive than embedding chunks, so it suits corpora where relationships matter and that do not change constantly.
Related terms
Agentic RAG
Retrieval-augmented generation in which an agent decides when and how to search, often running several searches and refining queries.
Knowledge graph
A structured representation of entities and the relationships between them, sometimes used alongside vector search to improve retrieval.
Retrieval-augmented generation (RAG)
Retrieving relevant documents and adding them to the prompt before the model generates an answer from them.
Read more about GraphRAG
- Knowledge graph
A structured representation of entities and the relationships between them, sometimes used alongside vector search to improve retrieval.
- Retrieval-augmented generation
Fetching relevant documents and adding them to a prompt to ground answers.
- RAG vs long context vs fine-tuning: how to choose
What each approach changes, what it costs, where it fails, and a practical order to try them in before you commit to one.