Glossary
GraphRAG
Retrieval-augmented generation that builds a knowledge graph of entities and relationships from source documents and retrieves from that graph as well as from text.
GraphRAG is retrieval-augmented generation that uses a knowledge graph as part of its index. A language model reads the source documents, extracts the entities they mention and the relationships between them, and stores the result as a graph. At query time the system retrieves connected entities, relationships and summaries from that graph, usually alongside ordinary text passages, and passes them to the model as context. The name is most closely tied to an open-source method published by Microsoft Research in 2024, and it is also used more loosely for any RAG system that retrieves from a graph.
How GraphRAG works
Indexing does most of the work. Documents are split into text units through chunking, and a model runs named entity recognition and relation extraction over each one, producing nodes for people, organisations, products or concepts and edges for how they relate. Entity resolution merges duplicates, so two spellings of one company become a single node. The output is a knowledge graph, usually held in a graph database as a property graph.
Microsoft’s method adds a second layer. It groups densely connected entities into communities with a clustering algorithm and asks the model to write a summary of each community, which gives the system material for questions about the corpus as a whole.
Queries then run in one of two modes. Local search starts from the entities named in the question and walks to their neighbours, collecting the relationships and source passages attached to them. That suits multi-hop retrieval, such as working out which suppliers two customers have in common. Global search runs the question against the community summaries and combines the partial answers, which suits questions like “what are the recurring themes in these interviews?” that no single passage answers.
GraphRAG compared with standard RAG
Standard retrieval-augmented generation embeds chunks with an embedding model and returns the closest matches from vector search. It finds passages that resemble the question and keeps no record of how facts in different documents connect. GraphRAG makes those connections explicit. GraphRAG vs RAG covers the choice in more depth, and vector database vs knowledge graph compares the two storage models.
Aspect | Standard RAG | GraphRAG |
|---|---|---|
Index | Embedded text chunks | Entities, relationships and community summaries, plus text |
Indexing cost | Low | High, since a model reads every chunk |
Strong at | Finding a specific passage | Connected facts and corpus-wide questions |
Weaker at | Questions that span many documents | Fast-changing corpora and exact quotations |
Updates | Re-embed changed chunks | Re-extract entities and rebuild affected summaries |
The main cost is indexing. Every chunk passes through a model, so building a graph for a large corpus takes far more tokens than embedding it, and a changed document can mean fresh extraction and new summaries. Extraction quality sets a ceiling too, because a relationship the model missed never appears at query time. Many teams combine approaches: hybrid search for passages, the graph for relationships, and an agentic RAG loop that decides when to traverse the graph. Memory systems apply the same idea to facts learned from conversations, often as a temporal knowledge graph that records when each fact was true.
GraphRAG and Exabase
Exabase does not build a document knowledge graph or offer a graph query interface, so a GraphRAG pipeline keeps its graph in a separate store. Exabase can sit underneath as the storage and text retrieval layer. Deep Search returns the paragraph, page or timestamp that answers a query from content stored as Resources, and Extract turns PDFs, audio and video into text chunks with page numbers or timestamps, which is the input an entity extraction step needs. The searching resources guide covers query parameters.
For facts about users, Memory runs on the M-1 engine, which tracks relationships between concepts, resolves contradictions as facts change and organises memories under higher-level concepts, as the about memories guide describes. That gives an agent relationship-aware memory without a graph to maintain. Graph-first tools are compared in best knowledge graph for AI agents, Exabase vs Neo4j and Exabase vs Graphiti. RAG accuracy covers the retrieval failures GraphRAG is often brought in to fix, and research agents shows the pieces working together on literature-heavy work.
FAQs
What is GraphRAG?
GraphRAG is RAG that builds a knowledge graph of entities and relationships from your documents and retrieves from the graph, usually alongside text passages.
Who created GraphRAG?
Microsoft Research published the best-known GraphRAG method and an open-source library in 2024. The name is now also used for other graph-based RAG designs.
When is GraphRAG better than vector RAG?
For questions that connect facts across documents or ask about themes across a whole corpus. For finding one specific passage, vector or hybrid retrieval is usually faster and cheaper.
Why is GraphRAG expensive to run?
A model has to read every chunk to extract entities and relationships, and community summaries add more model calls. Keeping the graph current as documents change adds further cost.
Do I need a graph database for GraphRAG?
Not always. Small graphs can live in files or a relational database, and larger ones usually move to a graph database. Vector database vs graph database compares the options.
Is GraphRAG the same as a knowledge graph?
The knowledge graph is the data structure, and GraphRAG is a retrieval method that builds one and uses it to supply context to a model. What is a knowledge graph covers the structure itself.
How does GraphRAG relate to agent memory?
Both store relationships, but GraphRAG indexes documents while agent memory holds what an agent learns from conversations. RAG vs agent memory explains the difference.
Related pages: GraphRAG vs RAG, Knowledge graph, Agentic RAG, Retrieval-augmented generation, Multi-hop retrieval, Entity resolution, Deep Search, RAG accuracy, Best knowledge graph for AI agents, A vector database is not a knowledge base.