Overview
Leiden / Louvain clustering to find topical neighbourhoods.
Why it matters
Communities give you natural hierarchical summarisation units — the secret sauce behind Microsoft GraphRAG.
Where this sits in the stack
Community detection over the entity graph is one of the load-bearing decisions in a KG/RAG/agent system: choices made here propagate to retrieval quality, agent reliability, cost per query, and the on-call burden of whoever ships it. Teams that name this trade-off explicitly ship faster than teams that leave it implicit.