RAG
GraphRAG
Extract entities and relations into a graph to answer multi-hop and “across the corpus” questions.
What it is and why it exists
Some questions need joining facts from different documents (“who owns the service that emits ERR-4012?”) or summarising themes across everything. GraphRAG extracts entities and relations with an LLM at ingest, then traverses the graph or summarises communities of related entities at query time.
Quick prototype
Hand-written entity links between a few documents.
In production, at scale
LLM-based extraction at ingest (expensive, needs review), a graph store, query-time traversal or community summaries, combined with ordinary retrieval for single-hop questions. Measure whether multi-hop accuracy justifies the ingest cost.
Vendors and tools
| Microsoft GraphRAG | Community summaries for global questions |
|---|---|
| Neo4j + LLM graph builder | Knowledge graphs for RAG |
| LlamaIndex PropertyGraphIndex | Graph-based retrieval |
On AWS: Amazon Neptune Analytics with Bedrock Knowledge Bases GraphRAG.
How it fails
- Extraction errors become confident wrong links
- Ingest cost far beyond plain RAG for little gain on simple questions
What the interviewer asks next
When would you reach for GraphRAG?
When eval failures cluster on multi-hop or corpus-wide questions that ordinary top-k retrieval can’t assemble — not as a default.