What is GraphRAG, and when is the knowledge-graph structure worth the complexity?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
GraphRAG augments (or replaces) chunk-vector retrieval with a knowledge graph extracted from the corpus at index time: an LLM pass extracts entities and relationships from each chunk, builds a graph, and - in Microsoft's canonical version ("From Local to Global", 2024) - runs community detection (e.g., Leiden) over it and pre-writes LLM summaries of each community at multiple levels. Retrieval then traverses structure: local search starts at matched entities and walks edges collecting related evidence; global search consults community summaries.
Full worked answer with diagram
GraphRAG augments (or replaces) chunk-vector retrieval with a knowledge graph extracted from the corpus at index time: an LLM pass extracts entities and relationships from each chunk, builds a graph, and - in Microsoft's canonical version ("From Local to Global", 2024) - runs community detection (e.g., Leiden) over it and pre-writes LLM summaries of each community at multiple levels. Retrieval then traverses structure: local search starts at matched entities and walks edges collecting related evidence; global search consults community summaries.
It targets the two structural blind spots of vanilla RAG. First, multi-hop relational questions: "Which customers are affected by the outage in the datacentre that hosts service X?" - no single chunk contains the answer, and single-shot vector search retrieves fragments that don't compose. The graph makes the joins explicit. Second, global/aggregate questions: "What are the recurring themes across this quarter's incident reports?" - top-k similarity fundamentally can't answer whole-corpus questions, while pre-computed community summaries can.
The costs are substantial and interviewers want you to weigh them honestly: index-time LLM extraction over every chunk is expensive (often dominating total system cost) and error-prone - entity resolution failures ("Bob Smith" vs "Robert Smith" vs "B. Smith") silently corrupt the graph; incremental updates are hard (a changed document means re-extraction plus re-communitising/re-summarising affected regions - much heavier than re-embedding chunks); and evaluation/debugging is murkier than vector retrieval's clean recall@k. Microsoft's own follow-up, LazyGraphRAG, attacks the indexing bill by deferring most LLM work to query time, which is worth naming if the interviewer pushes on cost.
Decision rule: your query log tells you. Mostly factoid lookup ("what's the parental-leave policy?") → vector+hybrid RAG wins on cost and simplicity, full stop. A meaningful share of relational or corpus-summarization questions over an entity-rich corpus (incidents, contracts, intelligence, biomedical literature) → graph structure earns its keep. Middle path worth naming: agentic RAG with iterative search covers many multi-hop cases without any graph infrastructure - try that first.
Worth sketching. Local and global search coming off the same extracted graph is the part that justifies the index-time cost.
flowchart TD
C["Chunks"] --> X["LLM extracts entities<br/>and relationships"]
X --> G["Knowledge graph"]
G --> D["Community detection,<br/>summarise each level"]
Q{"Question shape"} -->|"multi-hop relational"| L["Local search: match entity,<br/>walk edges for evidence"]
Q -->|"themes across the corpus"| S["Global search over<br/>community summaries"]
G --> L
D --> S
What a good answer covers
- GraphRAG augments (or replaces) chunk-vector retrieval with a knowledge graph extracted from the corpus…
- Retrieval then traverses structure
- It targets the two structural blind spots of vanilla RAG
- First, multi-hop relational questions
- The graph makes the joins explicit
Key terms: LLM summaries of each community · multi-hop relational questions · global/aggregate questions · incremental updates are hard
In the glossary: GraphRAG · RAG · Recall@k · Agentic RAG
Interviewer follow-ups to expect
How would you handle entity resolution errors polluting the graph?
Estimate indexing cost for GraphRAG vs standard RAG on a 1M-chunk corpus. Why can't plain top-k retrieval ever answer "summarise the main themes of this corpus"?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep