Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

The AI Practitioner Podcast

The AI Practitioner Podcast artwork

PODCAST — GraphRAG vs. Vector RAG: Better Retrieval or Expensive Overengineering?

Sep 23, 202613 minAudio
ShareXLinkedInFacebookWhatsAppEmail

Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. Standard RAG works well when the answer is contained in one place. But when a question requires connecting facts across several documents, vector retrieval can start to struggle. GraphRAG adds explicit structure around entities and their relationships, making multi-hop retrieval easier, but also more complex and expensive. In this episode, the focus is on how GraphRAG works, how the main approaches differ, and whether the added complexity is actually worth it. You’ll learn: * Why does vector retrieval struggle with multi-hop questions? Exploring why semantic similarity alone is often not enough when an answer requires connecting several entities and facts across documents. * How do the main GraphRAG architectures differ? Breaking down community-based approaches like Microsoft GraphRAG, entity-relation systems like LightRAG, PageRank-based retrieval such as HippoRAG, and recursive summarization with RAPTOR. * Is GraphRAG actually worth the additional cost? Looking at benchmark results, retrieval quality, token usage, latency, and practical implementations of NaiveRAG, LightRAG, and Microsoft GraphRAG. 👉 Enjoyed this episode? Subscribe to The AI Practitioner to get future articles and podcasts delivered straight to your inbox: aipractitioner.substack.com Get full access to The AI Practitioner at aipractitioner.substack.com/subscribe

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Transcript

From the show. Tap a time to play from there.

[music]

SPEAKER_01Welcome back to The AI Practitioner. I'm Lina Faik, ML Engineer, Consultant, and Lecturer in Advanced Machine Learning at Sorgon University. I help companies turn their data into real outcomes with AI, and this is where I share what I learn from actual projects. The deep technical write-ups live on Substack, AIpractitioner.substack.com, and these conversations are the audio companions. Today I'm joined by Mark, a senior data scientist who has built his share of retrieval pipelines but hasn't gone deep on graph-based retrieval yet,

SPEAKER_01which makes him the perfect person to keep me honest on this one.

SPEAKER_02Keep you honest. No pressure. So what's on the table today?

SPEAKER_01Graphrag. And the question that keeps coming up around it, is the extra structure actually worth it or is it expensive over engineering?

SPEAKER_02Strong framing. Where do we start?

SPEAKER_01With a scene. Picture a question answering assistant built over a big pile of movie articles, biographies, and award records. Someone asks it, who directed Inception? And it nails it. There's a chunk about Inception, it mentions Christopher Nolan, and it looks a lot like the question. Easy win.

SPEAKER_02So far so good.

SPEAKER_01Then someone asks, which films directed by Christopher Nolan feature an actor who had already won an Oscar? And now the assistant struggles. No single document holds that answer. You need Nolan's films, then their casts, then each actor's award history.

SPEAKER_02Ouch. And that's a very normal question to ask.

SPEAKER_01Exactly. It's what we call a multi-hop question. The system has to connect several facts, one after the other, before it can answer. Director to film, film to actor, actor to award.

SPEAKER_02Hold on though, couldn't you just retrieve more chunks, pull the top 50 instead of the top 5, and let the model sort it out?

SPEAKER_01That's the instinct, and it's the part I find most interesting, because the problem isn't quantity, it's structure. Vector Search scores each chunk on its own, based on how similar it is to the question. It never represents how one fact connects to another. More chunks give you more context, but the retriever still has no way to follow a chain.

SPEAKER_02So it finds similar things, not connected things.

SPEAKER_01That's the whole story in one line. Vector search was designed to find what's similar, not to model how information is connected. And that's the gap GraphRag tries to fill.

SPEAKER_02Okay. So what does graph-based retrieval look like in practice? Because add a graph can mean a lot of things.

SPEAKER_01And those become the nodes and edges. Yes. Entities are the nodes, relationships are the edges. And one detail that matters a lot. The graph usually keeps links back to the original text.

SPEAKER_01So when you answer, you're still grounded in the source documents, not just in a list of extracted facts.

SPEAKER_02So at query time, instead of searching for similar paragraphs, you walk the chain.

SPEAKER_01Nolan directed Film Stars Actor 1 Oscar. The graph gives you an explicit path between the facts.

SPEAKER_02Then why keep embeddings at all? Isn't the graph just replacing vector search?

SPEAKER_01That's a common misreading. In most systems, they work together. Embeddings help find the right starting entities, rank candidates, or pull supporting text. The graph then connects them. Similarity gets you in the door. The graph tells you where to walk next.

SPEAKER_02I like that. So is there one graph rag, or is this a whole zoo?

SPEAKER_01A zoo. There's no single architecture. In the article, I grouped them into four families, and the way to tell them apart comes down to two questions. What do you build during indexing, and how do you search it at query time?

SPEAKER_02Walk me through the four.

SPEAKER_01The first family is community hierarchies. Microsoft Graphrag is the main example. You build a full entity graph, then you run a clustering algorithm, usually Leiden, that groups nodes that are densely connected. Then an LLM writes a summary for each group. Groups can sit inside bigger groups, so you end up with summaries at several levels.

SPEAKER_02Give me the movie version.

SPEAKER_01One community could be Nolan, his films, their actors and the related awards. A bigger one could cover a wider set of directors, films and studios. Each gets its own summary.

SPEAKER_02And what do the summaries buy you?

SPEAKER_01Two ways of searching. Local search starts from a specific entity and grabs its neighborhood. Good for a question like, which actors appeared in Inception? Global search works from the community summaries, and it's built for broad questions about the whole corpus. Something like, what are the main trends across Nolan's films? For that, each summary produces a partial answer on its own, and then those partial answers get merged into one.

SPEAKER_02That sounds powerful and expensive.

SPEAKER_01Both. That's the trade. You get great coverage from focused questions to corpus level ones. But extraction, clustering, and summarization all add a lot of processing at indexing and at retrieval.

SPEAKER_02What's the second family?

SPEAKER_01Entity relation graphs. Lightrag is the one people usually point to. Same entities, same relationships, but no community layer. A flat graph stored alongside vector representations.

SPEAKER_02So how does it handle broad questions without the summaries?

SPEAKER_01It splits the query in two, low-level keywords or the specific things, like Christopher Nolan or Inception. High-level keywords are the themes, like film awards or directors and actors. It searches both levels and combines what it finds.

SPEAKER_02Isn't that just keyword extraction with extra steps?

SPEAKER_01A little on the surface. But the keywords are only the entry point. What comes back are entities and relationships from the graph. The real benefit is simplicity. No hierarchy to maintain, so indexing and updates are much easier. The cost shows up on broad questions. Without pre-computed summaries, it has to rebuild the big picture from individual entities at query time.

SPEAKER_02Got it. Third family?

SPEAKER_01This is my favorite one conceptually. Memory-inspired traversal. Hipporag is the reference here. The idea borrows from associative memory. The way thinking of one concept can activate the ones connected to it.

SPEAKER_02Like a smell reminding you of a place.

SPEAKER_01That kind of thing. The graph is built with open information extraction, which turns sentences into simple subject, relation, object triples, without a predefined list of entity types. And then it adds something clever, synonymy edges.

SPEAKER_02Meaning?

SPEAKER_01Links between entities that probably refer to the same thing, based on embedding similarity. Academy Award and Oscar, for example. Your documents say one, your user types the other. Without that link, the query might never reach the right node.

SPEAKER_02That's the kind of mismatch that silently breaks a system. So how does retrieval work?

SPEAKER_01It finds the entities in the question, links them to graph nodes, and uses those as starting points for personalized page rank. The intuition is simple. You drop relevance on the starting nodes and let it spread through the connections. A node several hops away can still score high if strong paths lead to it.

SPEAKER_02So the chain from Nolan to the Oscar lights up in one go.

SPEAKER_01In a single graph operation, no need to ask the LLM what to fetch at every step. I won't unpack how the scores propagate on mic. The article walks through the pipeline with a diagram, and it's much easier to see than to hear.

SPEAKER_02Okay, but here's my worry. If everything depends on where you start, what happens when you start in the wrong place?

SPEAKER_01Then it goes wrong quickly. That's the main weakness and its entity linking. If the question gets linked to the wrong nodes, relevance spreads from the wrong place and retrieval quality degrades fast. FastGraphRag uses the same page rank idea on a lighter graph.

SPEAKER_02And the fourth.

SPEAKER_01The odd one out, recursive summarization trees. Raptor is the main example and it doesn't extract entities at all.

SPEAKER_02Then why is it in a graph rag conversation?

SPEAKER_01Fair challenge. It's there because it still builds structure over the corpus, just not a graph of facts. It embeds the chunks, clusters similar ones, summarizes each cluster, and then does it again on the summaries. The leaves are the original chunks. The root is the most general view.

SPEAKER_02So Inception, Interstellar, and Dunkirk end up under a summary about Nolan's directing style.

SPEAKER_01This is likely that. At query time, the approach that's often preferred throws every node, chunks, and summaries alike into one pool and searches it. So one query can pull a precise fact from a leaf and a broad summary from higher up.

SPEAKER_02Where does it break?

SPEAKER_01On precise chains of facts. The tree knows what's similar, at many levels. It doesn't know that Nolan directed Inception. So for our Oscar question, it's the wrong tool.

SPEAKER_02Four families, four trade-offs. Now the question I actually care about. Do they work?

SPEAKER_01On paper, impressively. The Microsoft Graph Rag paper reports more comprehensive answers than Vector Rag in 72 to 83% of comparisons on corpus-wide questions. Light Rag reports beating Naive Rag in 60 to almost 85% of comparisons. Hippo Rag and Raptor also report clear gains on their own benchmarks.

SPEAKER_02So it's settled. Graphs win.

SPEAKER_01That's the headline. But every paper uses different datasets, different models, different evaluation setups. You can't line them up against each other.

SPEAKER_02I've seen enough leaderboards to be suspicious already.

SPEAKER_01Then you'll like this one. The more useful study is by Zeng and colleagues. They put Microsoft GraphRag, LightRag, FastGraphRag, and NaiveRag through the same framework. And they point out that these comparisons can be swayed by things that have nothing to do with quality. Which answer is shown first, which answer is longer, whether you ran the evaluation once or several times.

SPEAKER_02Position and length bias. Classic.

SPEAKER_01So they corrected for it. They allowed ties, matched answer lengths, swapped the order, and repeated the runs. And the gaps shrank. Lightrag's win rate against Naiverag on their agriculture dataset dropped from about 67% to 39%.

SPEAKER_02Wait, below 50?

SPEAKER_01Below 50. Though with ties allowed, that doesn't mean it lost outright. And across the board, most of the relative gaps ended up under 8%.

SPEAKER_02That's a very different story from 85%. It is.

SPEAKER_01But it doesn't say graphs are useless either. They also split questions by complexity. Questions about a single entity, questions about a relationship, and questions that need a larger piece of the graph. Microsoft GraphRag did best on the simple single entity ones. Fast GraphRag improved as questions needed more of the graph, and NaiveRag dropped most clearly on the most connected questions.

SPEAKER_02So the graph pays off exactly where the Oscar question lives.

SPEAKER_01That's the pattern. Adding a graph doesn't automatically improve retrieval. It depends on the structure, the retrieval strategy, and the kind of question you're asking.

SPEAKER_02And the bill?

SPEAKER_01The bill is where it gets sobering. Same study, averaged over 100 questions. Microsoft GraphRag used about 77 times more tokens per query than NaiveRag, and about 16 times more than LightRag. Fast Graphrag had the lowest latency of the four. I'll leave the full table to the article. The per method numbers are all there.

SPEAKER_0277 times. That's not a rounding error, that's a budget meeting.

SPEAKER_01It's a budget meeting. More structure can help on complex questions. It also means more cost, more latency, and more moving parts.

SPEAKER_02How different are these to actually build? Is Microsoft Graphrag a weekend project?

SPEAKER_01The article has minimal code for three of them. Naiverag, Lightrag, and Microsoft Graphrag. And even the minimal versions tell the story. Naive Rag is a handful of lines. Load, Index, Query. With Light Rag, you insert your text, it builds the graph and vector indexes, and you pick a retrieval mode. Microsoft Graph Rag runs indexing as its own pipeline. It builds the graph, detects communities, writes community reports, and creates embeddings. All before you ask a single question.

SPEAKER_02And that's something you read, not something you listen to.

SPEAKER_01Definitely. The code is all in the article, with links to the docs. And there's a second piece coming that goes much deeper. Configuration, retrieval modes, indexing choices, a benchmark under one evaluation setup, and a companion repository. That one's for paid subscribers.

SPEAKER_02Okay, let me bring it back to Earth. Say it's Monday morning. I have a vector rag in production that works fine most of the time. Someone on my team says we should move to graph rag. Where do I start?

SPEAKER_01And for the details behind all of that? Everything's in the full write-up at AIPractitioner.substack.com. The four families with their diagrams, the benchmark numbers, the code, and all the papers referenced.

SPEAKER_02I came in thinking graph rag was a single upgrade. I'm leaving with a menu and a price list.

SPEAKER_01That's the right way to leave. Vector search finds what's similar. A graph tells you what's connected. The real skill is knowing which of those your questions need and being honest about what you're willing to pay for the difference.

Open the transcript file

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. PODCAST — Beyond Static Prompts: Building Self-Improving LLM Agents with ACE

    Nov 19, 202611 minAudio

    Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if AI agents could learn from every interaction...

    Credit the people on this episode

  2. PODCAST — Inside GEPA: Evolving LLM Agent Prompts with Reflective Feedback

    Nov 11, 202611 minAudio

    Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if AI agents could continuously improve their...

    Credit the people on this episode

  3. PODCAST — TextGrad in Practice: Optimizing LLM Agent Prompts with Textual Gradients

    Nov 3, 202615 minAudio

    Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if AI agents could improve their own prompts...

    Credit the people on this episode

  4. PODCAST — Continuously Optimizing AI Agent Prompts in Production

    Oct 28, 202615 minAudio

    Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if the key to better AI agents isn’t writing...

    Credit the people on this episode

  5. PODCAST — From Prompt Engineering to Harness Engineering: Where the Real Leverage Moved

    Oct 16, 202613 minAudio

    Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if improving an AI agent’s performance had less...

    Credit the people on this episode