Pattern
GraphRAG with community summaries (global/local search)
activeNeeds verification
Extract an entity graph from documents, cluster it hierarchically, pre-summarise communities, then answer global questions over summaries and local ones over entity neighbourhoods.
Problem
Vector RAG cannot answer corpus-wide "what are the main themes" questions.
Solution
LLM entity/relation extraction → Leiden communities → community reports → map-reduce over reports (global) or entity-centred retrieval (local).
Trade-offs
Indexing is LLM-intensive and costly; summaries can go stale as documents change.
Profile
| Category | graphrag |
|---|
Relationships
- Part of
- Prerequisites
- Leiden community detection(Algorithm)
- Louvain community detection(Algorithm)
- GraphRAG(Concept)
- Implemented by
- Microsoft GraphRAG(Library / framework)
- GraphRAG on Azure(Reference architecture)
- Related
- LazyGraphRAG(Pattern)