Graph RAG builds a knowledge graph from documents, then retrieves by traversing entity relationships. Colored nodes show entity types. Blue highlights show the subgraph matched by the current query. Communities (colored regions) are detected automatically.
Graph RAG builds a knowledge graph from documents by extracting named entities and their relationships, then applies community detection to identify clusters of related concepts. When answering a query, it traverses the graph from query-relevant entities following edges to retrieve connected facts. This enables multi-hop reasoning that pure vector similarity search cannot handle.
Entity extraction identifies people, organizations, concepts, and events from raw text
Relation edges (created, leads, based on) capture the structured knowledge vector search misses
Community detection clusters related entities so global summaries can answer broad questions
Subgraph retrieval follows paths from query entities to retrieve multi-hop contextual facts
Part of the EngineersOfAI Interactive 3D - free interactive visualizations covering every major concept in machine learning and AI engineering. Hover any element for a plain-English explanation. No code required.