What is GraphRAG and which kind of question is it built for?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
GraphRAG turns a corpus into an entity-relationship graph, clusters it into communities, and pre-summarizes each — so it can answer global "what are the themes?" questions that top-k vector RAG can't.
Imagine a giant pile of meeting notes and someone asks "what were the big themes this whole quarter?" Plain search just hands you the few sticky notes that mention the exact words you typed — useless for a question that needs the whole pile. GraphRAG does prep work ahead of time instead. It reads everything, draws a map of who talked to whom and what connects to what, groups that map into neighborhoods of related stuff, and writes a short summary for each neighborhood. Now when the big-picture question arrives, it reads those neighborhood summaries instead of hunting for matching words. The downside: drawing the map and writing all those summaries takes a lot of reading up front, so it is slow and pricey to build.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
3-4 min: the offline pipeline (extract, cluster, summarize), why top-k can't do global questions, the local versus global query split, and the build-cost trade-off.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Thinking a bigger k fixes global questions. No value of k makes top-k synthesize a corpus-wide theme — the answer lives in no single chunk, so you need a precomputed structure, not more chunks.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.