Home / Insights / Generative AI and LLMs
Generative AI and LLMs
GraphRAG and Knowledge Graphs: When Graph-Based Retrieval Beats Plain Vector Search
Graph-based retrieval can answer questions that plain vector search cannot, but it costs more to build and maintain. This guide explains which questions justify a knowledge graph and how to test the case on your own documents.
Key takeaways
- Plain vector search is strong at finding passages similar to a question; it is weak at questions that need many facts connected across documents or a view of a whole collection.
- GraphRAG adds an LLM-built knowledge graph and community summaries, which Microsoft Research found improves comprehensiveness and diversity of answers to global, corpus-wide questions.
- The trade-off is indexing cost and maintenance: full GraphRAG uses an LLM to extract entities and summarise communities, and Microsoft describes up-front indexing costs that may be prohibitive for some use cases.
- Decide from your real question mix: if most questions are look-ups of specific facts, a well-tuned hybrid search usually wins on cost and simplicity.
- Test with a labelled set of real questions split by type, compare baseline and graph approaches side by side, and include indexing and refresh costs in the decision.
On this page
Most enterprise knowledge search systems start with vector retrieval: documents are split into chunks, each chunk is embedded, and the chunks most similar to a question are passed to a language model to draft an answer. For many questions this works well. For others it fails in a way users notice quickly: ask which suppliers are affected by a regulation across fifty contracts, or what the main themes are in a year of incident reports, and the answer is partial, confident and wrong by omission.
GraphRAG and related knowledge graph approaches promise to fix that. This article is for CTOs, heads of data and product leaders deciding whether to add graph-based retrieval to an existing or planned knowledge search system. It explains what goes wrong with plain vector search, how GraphRAG works, which question types benefit, what it costs, and how to run a fair test before committing. It assumes basic familiarity with retrieval-augmented generation; if you are still choosing between keyword, vector and hybrid search, start with our guide to retrieval choices for enterprise knowledge search.
Where plain vector search falls short
Vector search retrieves chunks whose meaning is close to the question. That makes it good at a specific kind of task: finding the passage that contains the answer. It struggles when the answer is not in any single passage.
Three failure patterns
- Multi-hop questions. “Which of our customers use a product that depends on the component recalled last quarter?” requires connecting customers to products to components. Each fact may be in a different document, and none of the chunks on its own is similar to the question.
- Global or sensemaking questions. “What are the recurring causes of delay across all project post-mortems?” needs a view of the whole collection. Retrieving the top ten similar chunks samples a small fraction and misses the pattern.
- Entity-centred questions. “Tell me everything relevant about Supplier X” benefits from knowing every place that entity appears and how it relates to others, not just the passages that mention it most prominently.
What the research says
The 2024 survey on Graph Retrieval-Augmented Generation by Peng and colleagues summarises the problem: standard RAG reduces hallucination and fills knowledge gaps but struggles with complex relationships between entities. Microsoft Research’s paper From Local to Global: A Graph RAG Approach to Query-Focused Summarization frames the global case directly: questions such as the main themes in a dataset are really summarisation tasks over the whole corpus, which conventional RAG does not handle well.
It is worth being clear about what is not a vector search failure. If answers are poor on simple look-ups, the cause is more often chunking, missing keyword search, weak metadata or permissions problems. Fix those first; a graph will not rescue a poorly prepared index.
How GraphRAG and knowledge graph retrieval work
“GraphRAG” is used loosely. It helps to separate three approaches, because they have very different costs.
1. LLM-built graph with community summaries (Microsoft GraphRAG)
Microsoft’s open-source GraphRAG project documentation describes an indexing pipeline that splits the corpus into text units, uses a language model to extract entities, relationships and key claims, clusters the resulting graph hierarchically using the Leiden technique, and generates summaries for each community from the bottom up. At query time it offers several modes:
- Global search uses community summaries to answer questions about the whole corpus.
- Local search starts from specific entities and explores their neighbours and related concepts.
- DRIFT search combines local search with community-level context.
- Basic search is standard top-k vector retrieval, for questions baseline RAG already handles well.
2. Deferred or lightweight graph approaches
Because full indexing is expensive, Microsoft Research published LazyGraphRAG in November 2024. It avoids pre-summarising the data and defers language model use until query time, blending best-first vector retrieval with breadth-first community search. The authors report indexing costs equal to vector RAG and 0.1% of full GraphRAG, with the cost-quality trade-off controlled at query time.
3. Curated knowledge graphs
Some organisations already have structured relationships in systems of record: customers, products, contracts, assets, suppliers. A curated graph built from that structured data, rather than extracted from text by a model, can be combined with document retrieval. It is more accurate for the relationships it covers and cheaper to keep fresh, but it only covers what the source systems model.
| Approach | How the graph is built | Indexing cost | Best at | Main weakness |
|---|---|---|---|---|
| Plain vector RAG | No graph; embeddings of chunks | Low | Specific look-ups | Multi-hop and global questions |
| Hybrid search with re-ranking | No graph; keyword plus vector | Low | Look-ups with names, codes, exact terms | Same as vector for global questions |
| LLM-built graph with community summaries | Model extracts entities and summarises clusters | High | Global and thematic questions over large text collections | Cost, refresh effort, extraction errors |
| Deferred graph (LazyGraphRAG style) | Lightweight structure; model used at query time | Similar to vector RAG | Mixed workloads where indexing cost matters | Higher per-query cost and latency for deep searches |
| Curated knowledge graph plus RAG | From structured systems of record | Moderate, mostly integration | Precise relationship questions | Only covers modelled entities |
When graph-based retrieval beats vector search
The deciding factor is your question mix, not the technology. In our experience, organisations overestimate how many of their users’ questions are global or multi-hop.
Signals that a graph is worth testing
- Users regularly ask about themes, trends or summaries across many documents, such as research archives, investigation files, customer feedback or audit findings.
- Important questions require following relationships across entities: parts to products to customers, people to projects to decisions, clauses to contracts to counterparties.
- Your domain has a stable set of entity types that matter, and users refer to them by name.
- Answers that miss relevant items are costly, for example in compliance, safety or due diligence work.
Signals that hybrid search is enough
- Most questions are look-ups: policies, procedures, product specifications, how-to answers.
- The corpus changes frequently, so repeated re-indexing would be expensive.
- Your current system has unresolved basic issues such as chunking, metadata or permissions.
- Budget is tight and the benefit of better global answers is hard to quantify.
Decision guide
| Your situation | Recommended starting point |
|---|---|
| Mostly look-up questions, frequently changing documents | Hybrid search with re-ranking; no graph |
| Mostly look-ups, plus occasional thematic questions | Hybrid search, with a deferred graph approach or offline summaries for thematic questions |
| Many global or thematic questions over a large, fairly stable collection | Test LLM-built graph with community summaries |
| Key questions follow relationships already held in business systems | Curated knowledge graph from systems of record, combined with document retrieval |
| Mixed and uncertain | Route by question type: basic search for look-ups, graph modes for global or entity questions |
For example, a 300-person engineering consultancy might find that most of its knowledge search questions are about standards and templates, which hybrid search handles well, while a smaller set of high-value questions from bid teams ask what the firm has learned across past projects in a sector. That pattern suggests routing: keep hybrid search as the default and test a graph approach only for the bid team’s corpus. The split is illustrative; measure your own.
Costs and risks of graph-based retrieval
Graph approaches move cost and complexity to places that are easy to overlook in a proof of concept.
Indexing cost
Full GraphRAG uses a language model to read the corpus, extract entities and relationships, and write summaries. Microsoft’s LazyGraphRAG announcement explains that this up-front indexing cost may be prohibitive for some users and use cases. Estimate it on a representative sample before scaling: index a slice of the corpus, measure tokens consumed, and extrapolate with a margin.
Refresh and maintenance
When documents change, entities, relationships and community summaries may need to be updated. For a stable archive this is manageable; for a corpus that changes daily it can dominate running cost. Decide your freshness requirement before choosing the approach.
Extraction quality
An LLM-built graph contains the model’s interpretation of the text. Entities can be duplicated under different names, relationships can be wrong, and claims can be misattributed. The GraphRAG documentation recommends prompt tuning on your own data before relying on results, which is sensible advice: domain-specific entity types and examples make a large difference.
Permissions
This risk is the one we see underestimated most. Community summaries combine information from many documents. If those documents have different access rules, a summary can leak content to users who should not see part of it. Options include building separate graphs per permission group, restricting graph features to collections with uniform access, or excluding sensitive sources. Our guide to permission-aware RAG infrastructure covers the wider design.
| Risk | Mitigation |
|---|---|
| High indexing cost | Index a sample first; consider deferred approaches; limit graph to high-value collections |
| Stale graph | Set refresh schedules by collection; prefer curated graphs for fast-changing structured data |
| Extraction errors | Tune prompts with domain entity types; spot-check entities and relationships; keep citations to source text |
| Permission leakage through summaries | Graphs per access group or uniform-access collections only |
| Higher latency for global queries | Route only global questions to graph modes; precompute where possible |
How to test GraphRAG on your own documents
A fair test compares approaches on the questions your users actually ask, with costs included. The steps below are the ones we follow.
- Collect real questions. Gather 100 to 300 questions from search logs, support tickets or user interviews. Label each by type: look-up, multi-hop, entity-centred or global.
- Write reference answers. For a subset, have subject experts write what a good answer contains, including the documents it should draw on. Our article on building a test set for knowledge search explains how.
- Fix the baseline first. Make sure the hybrid search baseline has sensible chunking, metadata and re-ranking. Comparing a graph approach with a weak baseline produces a misleading result.
- Index a representative slice. Choose a collection that contains the global and multi-hop questions you care about, and record indexing tokens, time and cost.
- Run both approaches. Answer every test question with the baseline and the graph approach. For global questions, compare comprehensiveness and diversity, the measures the Microsoft paper used; for look-ups, compare accuracy and faithfulness to sources.
- Analyse by question type. The graph will usually help some types and not others. Report results separately for each type, together with latency and cost per query.
- Decide on routing. If the graph wins only on global questions, route those to it and keep basic search for the rest.
Keep the evaluation set and re-run it whenever you change models, prompts or indexing settings. Graph pipelines have more moving parts than plain RAG, so regression testing matters more.
Implementation checklist
Before adding graph-based retrieval to production, confirm the following.
- The question mix has been measured, and global or multi-hop questions are a meaningful share or carry high value.
- The hybrid search baseline is well tuned and evaluated.
- The approach (LLM-built, deferred or curated graph) has been chosen against cost and freshness requirements.
- Indexing cost has been measured on a sample and extrapolated, with refresh costs included.
- Entity types and extraction prompts have been tuned for your domain.
- Permission handling for summaries and graph traversal has been designed and tested.
- Routing rules decide which questions go to graph modes and which go to basic search.
- Answers cite source text, not only graph nodes or summaries.
- The evaluation set, split by question type, runs on every change.
- Monitoring covers latency, cost per query and user feedback by question type.
Our Enterprise Knowledge Search service builds permission-aware retrieval with hybrid search, re-ranking and ongoing quality evaluation, starting with a document audit and test questions. That audit is the right moment to find out whether your question mix justifies a graph, before anyone pays for one.
Frequently asked questions
Is GraphRAG always better than vector RAG?
No. Microsoft Research found it improves comprehensiveness and diversity on global, corpus-wide questions. For specific look-ups, a well-tuned hybrid search is often as good, cheaper and simpler. Microsoft’s own GraphRAG project includes a basic vector search mode for exactly those questions.
Do we need a graph database to use GraphRAG?
Not necessarily. Microsoft’s GraphRAG pipeline produces its graph and summaries as data files that can be stored in ordinary storage. A dedicated graph database becomes more useful when you have a curated knowledge graph from business systems or need complex traversal queries at scale.
How expensive is GraphRAG indexing?
It depends on corpus size and model choice, because a language model reads and summarises the content. Microsoft describes full GraphRAG indexing costs as potentially prohibitive for some use cases, and reports LazyGraphRAG indexing at 0.1% of that cost. Measure on a sample of your own documents before deciding.
Can GraphRAG respect document permissions?
Only if you design for it. Community summaries combine content from many documents, so they can expose information across access boundaries. Building graphs per access group or limiting graph features to uniformly accessible collections are the common approaches.
How do we know if our users ask global questions?
Review search logs and support requests, and label a sample of a few hundred questions by type. If most are look-ups, invest in hybrid search quality first. If a meaningful share are thematic or multi-hop, a graph test is justified.
Sources and methodology
Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.
- arXiv: From Local to Global: A Graph RAG Approach to Query-Focused Summarization (Edge et al., Microsoft Research, 2024) — accessed 9 November 2026. Supports the description of GraphRAG indexing and map-reduce querying, and the finding that it improves comprehensiveness and diversity on global questions.
- Microsoft GraphRAG project documentation — accessed 9 November 2026. Supports the indexing pipeline steps, the global, local, DRIFT and basic query modes, and the advice to tune prompts on your own data.
- Microsoft Research Blog: LazyGraphRAG: Setting a new standard for quality and cost (November 2024) — accessed 9 November 2026. Supports the cost of full GraphRAG indexing and LazyGraphRAG indexing at 0.1% of that cost.
- arXiv: Graph Retrieval-Augmented Generation: A Survey (Peng et al., 2024) — accessed 9 November 2026. Supports the summary of standard RAG limitations with complex entity relationships and the three-stage GraphRAG workflow.
Related reading
Continue your research
Not sure whether your knowledge search needs a graph?
We can audit your documents and real questions, then test graph and hybrid retrieval side by side with costs included.
