Forward-deployed / Learning zone
RAG & vector databasesa Generative AI module
Lesson 07

Beyond flat RAG: GraphRAG & structured retrieval

TL;DR

Plain ("flat") RAG retrieves the text chunks most similar to a question — which is perfect when the answer sits in a passage somewhere, and useless when the answer is a connection no single passage states, or a summary of the whole corpus. Two question types break flat RAG structurally: multi-hop ("which of our customers are exposed to this supplier's recall?" — the answer is a chain across documents, not any one of them) and global ("what are the main themes across this quarter's tickets?" — the answer is an aggregate, not a retrievable passage). GraphRAG and structured retrieval fix this by retrieving structure — a subgraph of connected entities, pre-built community summaries, or the result of an actual database query — instead of, or alongside, similar text. The product-leader takeaway is a discipline, not a technology purchase: know which questions flat RAG can't answer, adopt structure only when your roadmap actually has those questions, and never let a heavier pipeline in for a workload plain vector search already handles.

🎯 For the product leader

Why it matters — Teams hit a wall where "our RAG just can't answer these questions" and either give up or over-build. Knowing the shape of question that flat RAG can't do tells you exactly when to invest in structure — and when the acronym is just fashion.

What it changes in your decisions — You classify the questions your feature must answer (passage-level vs. multi-hop vs. global) before choosing a retrieval architecture, and you let measured flat-RAG failures justify the step up, not a vendor deck.

Ask yourself — "Are the questions we're failing on actually about connections or whole-corpus summaries — or is our flat RAG just tuned badly?"

Risk if ignored — Either a feature that plateaus because it can't do the questions that matter most, or an expensive graph-indexing pipeline built for questions that were 95% simple passage lookups.

The mental model: passages, chains, and summaries

Three question shapes, three retrieval needs:

GraphRAG

Three retrieval shapes · matched to what the question is actually asking

Flat RAG is the right default. Graduate to structure only when the question demands it.

What shape is the question?
Default · cheapest
Flat RAG · answer sits in one passage

Retrieve similar chunks — the right tool for most questions

"What's our refund window?" → one policy passage
Graph retrieval
Hop · answer is a chain across entities

Walk the connections between related records

"Which customers depend on this failing supplier?" → supplier→parts→products→contracts
Community summaries
Global · answer summarizes the whole corpus

Pre-built summaries over clusters, not a single record

"Main themes in Q3 tickets?" → summarize clusters, not one ticket
Why flat RAG breaks on these: chunk-similarity search can't traverse relationships or summarize what it hasn't grouped — the other two shapes exist because flat RAG structurally can't answer them.

Flat RAG is the right and cheapest tool for the first shape — most questions. The other two are where you graduate to structure.

Why flat RAG breaks on these

The structured approaches

The full treatment of graphs and their marriage with LLMs is the Knowledge graphs track — this lesson is the bridge from RAG to it.

How to decide

  1. Classify your questions. Sample the real (or expected) questions and bucket them: passage-level, multi-hop, global, quantitative. The mix tells you what you need.
  2. Start flat, measure the failures. Ship plain hybrid RAG, and watch which questions it fails — with an eval set, not vibes. If the failures cluster in multi-hop/global, you have your justification.
  3. Add structure surgically. Route only the question types that need it to graph or query retrieval; keep flat RAG for the majority. Don't replace a working pipeline wholesale.
  4. Cost the freshness. A graph or structured index is a second thing to keep current; budget that before committing.

Failure modes

Practitioner checklist