GraphRAG becomes useful when an answer does not live in one paragraph but is distributed across people, events, relationships and themes throughout a document collection. The architecture decision should therefore begin with the query class, not with the word graph.
Start with the question, not the graph
When I evaluate a RAG design, I start with real questions. “Search our documents” is too broad to select an architecture.
A question such as “What are the contract termination conditions?” may be answered from a few passages. With sensible chunking and metadata, vector retrieval combined with keyword search may be enough. The original RAG work by Lewis and colleagues described a model combining parametric knowledge with external memory retrieved through a dense vector index. [1]
A question such as “Which issues recur across projects, who is involved and how are the events connected?” is different. It requires evidence from several locations, entity resolution, relationship traversal and synthesis. This is where graph-based RAG begins to justify its complexity.
Vector search asks which passages are semantically close to the query. Graph retrieval asks what an entity connects to and through which relationship. They are different retrieval primitives, not an old and a new generation of the same design.
GraphRAG has two meanings
Graph-based RAG is a broad architecture category. Its graph may come from relational data, an ontology, a curated enterprise knowledge graph or relationships extracted from documents. Retrieval might use traversal, path search, subgraph selection or vector retrieval followed by graph expansion. Community summaries are optional.
Microsoft GraphRAG is a particular research project and implementation. The From Local to Global paper proposes extracting an entity knowledge graph from text, organizing it into hierarchical communities, pregenerating community summaries and answering corpus-wide questions with map-reduce over those summaries. [2]
A team can use graph retrieval over trusted master data without adopting this pipeline. It can also test Microsoft GraphRAG for global sensemaking without committing to a production graph database. At the time of writing, the repository describes the project as largely in maintenance mode, identifies the code as a research demonstration rather than an officially supported Microsoft offering, and warns that indexing can consume substantial LLM resources. [3]
Separate the indexing path from the query path
The indexing path ingests documents, enforces access rules and preserves document identifiers, versions and source locations during chunking. It then extracts entities, relationships and claims and performs entity resolution. Every graph element should trace back to a source span. Summaries and embeddings are rebuildable indexes, not sources of truth.
The default Microsoft GraphRAG dataflow includes Documents, TextUnits, Entities, Relationships, Covariates, Communities and Community Reports. TextUnits link graph artifacts back to source documents for provenance. The pipeline extracts the graph, uses hierarchical Leiden community detection, generates reports and embeds selected artifacts for retrieval. [4]
The query path needs a router. It should not force every question through the graph:
- Fact lookup: start with keyword and vector retrieval.
- Entity question: find an entry point with vector search, then expand its neighborhood alongside raw source chunks.
- Multi-hop question: retrieve a path or subgraph under explicit edge types and hop limits.
- Global question: use community reports or another aggregation method with measurable coverage.
- Counts and “all” queries: use a deterministic database query over a defined scope, not a top-k sample.
Microsoft GraphRAG separates Local Search for entity-focused questions, Global Search for corpus-wide questions, DRIFT Search for locally focused exploration informed by community context, and Basic Search as a vector RAG baseline. [5]
A graph adds meaning and failure modes
LLM-based graph extraction is probabilistic. One entity can become several nodes, distinct entities can be merged, and an edge can exist without adequate evidence. When the graph is wrong, traversal reaches the wrong conclusion faster.
The cost is not only the graph database. It includes LLM calls during indexing, entity resolution, prompt tuning, embeddings, community summaries and re-indexing. The project therefore provides both Standard GraphRAG, which uses LLMs for extraction and summarization, and FastGraphRAG, which uses NLP and co-occurrence to reduce cost in exchange for a less descriptive and potentially noisier graph. [6]
Freshness and permissions must be designed from the beginning. Permission filtering needs to happen before restricted data enters the model context. Hiding a citation afterward cannot undo disclosure. Many useful systems therefore become hybrid: keyword search for identifiers, vectors for semantic recall, graphs for multi-hop relationships and deterministic database queries for counts or completeness.
Evaluate both the answer and the retrieval path
A test set should include local facts, entity-centric questions, multi-hop reasoning, global sensemaking, contradictions, freshness and permission boundaries. Every graph approach should be compared against a fairly configured vector RAG baseline.
At retrieval level, measure evidence recall, source precision, entity-resolution accuracy, path validity and coverage. At answer level, measure correctness, citation entailment, completeness and relevance. At system level, track latency, cost, indexing duration, update lag and failure rate.
The Microsoft GraphRAG research evaluated global answers using comprehensiveness, diversity and empowerment. BenchmarkQED extends evaluation across local and global query classes and uses LLM-as-a-Judge comparisons. [7] An LLM should not be the only judge. Gold questions, deterministic checks, human review and error analysis must separate retrieval, graph construction, routing and generation failures.
Move from PoC to production deliberately
PoC: choose one document domain and real questions where vector RAG struggles. Establish the baseline first. Test a narrow schema such as Person, Organization and Event, and preserve provenance for every edge from day one.
Pilot: add document versions, user permissions, incremental indexing, stale-index tests and human review for high-impact edges. Decide whether the graph is a derived index or curated enterprise knowledge. The latter needs data ownership and an approval workflow.
Production: separate transactional truth from the AI-derived index. Add versioning, audit, rollback, observability and a fallback router. Material answers must return to source evidence rather than ending at a community summary generated by another model call.
A practical selection checklist
Choose Vector RAG when answers usually live in a few passages, the main workload is document Q&A or policy lookup, and the team needs a fast PoC without a stable graph schema.
Choose GraphRAG or graph-based RAG when questions regularly cross several entities, documents or hops; users need relationship or corpus-wide exploration; and the team can operate provenance, freshness, permissions and entity resolution.
Choose a hybrid when the workload mixes fact lookup, semantic search, multi-hop exploration and global questions, or when the system needs a fallback for incomplete graph coverage.
Do not choose GraphRAG because a graph looks more intelligent. Select retrieval paths from real questions, measure them against a baseline and show what quality the added complexity actually buys.
Sources
- Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
- From Local to Global: A Graph RAG Approach to Query-Focused Summarization
- Microsoft GraphRAG repository
- GraphRAG Indexing Dataflow
- GraphRAG Query Engine Overview
- GraphRAG Indexing Methods
- BenchmarkQED: Automated benchmarking of RAG systems