data-infra

GraphRAG

GraphRAG augments retrieval-augmented generation with a knowledge graph built from the corpus. During indexing, an LLM extracts entities and relationships from every document, assembles them into a graph, clusters it into communities, and writes summaries at each level. At query time the system can traverse relationships and consult community summaries instead of only matching semantically similar chunks. This attacks the two places vanilla RAG is weakest: multi-hop questions ("which customers were affected by the outage the vendor caused?") whose answer spans documents no single chunk connects, and global questions ("what are the main themes across this corpus?") that similarity search cannot answer at all. Microsoft's 2024 open-source GraphRAG popularized the pattern. The costs are indexing expense — entity extraction burns LLM tokens over the whole corpus — plus graph maintenance as documents change. Most teams deploy it selectively, alongside vector retrieval, for relationship-heavy domains rather than as a replacement.

Related terms

More Data & Infra terms