Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

Course overview

Retrieval and Knowledge Systems

Free · sign in to start and track progress

1 · Building the index

  • 1Embeddings in practice
  • 2Chunking structured documents
  • 3Vector indexes and databases
  • 4Measuring retrieval

2 · Retrieval that reasons

  • 5Hybrid search and reranking
  • 6Agentic retrieval
  • 7Knowledge graphs and GraphRAG

    Exercise answers

    • Answer: Build a graph from verified records, and compare with an LLM-extracted one
    • Answer: Trial GraphRAG on a global question (stretch)
  • 8Long context versus RAG
CapstoneA measured retrieval service for cases and reference documentsReference implementation

Module 2 · Retrieval that reasons · Lesson 7

Knowledge graphs and GraphRAG

When questions are about relationships and aggregates rather than passages, how a schema'd knowledge graph built from verified records differs from LLM-extracted GraphRAG, what each costs, and what the evidence says about when they're worth it.

65 min 1 video 3 exercises 6-question quiz Answers
Setup for the exercises:Install Claude CodePython with uv

By the end of this lesson you can

  • Classify questions as passage, multi-hop, relational aggregate or global sensemaking, and match each to a retrieval approach
  • Build a small knowledge graph from verified ingest records with entity resolution by stable keys, and query it
  • Explain how Microsoft's GraphRAG indexes and answers queries, and estimate its indexing cost against vector RAG
  • Assess GraphRAG claims critically using recent unbiased evaluations

On this page

  • Four kinds of question
  • A knowledge graph from verified records
  • GraphRAG: a graph extracted from text
  • What it costs
  • What the evidence says
  • When it's worth it
  • Connections
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01Four kinds of question
  2. 02A knowledge graph from verified records
  3. 03GraphRAG: a graph extracted from text
  4. 04What the evidence says
  5. 05When it's worth it
  6. 06Connections
  7. 07Summary

Sources & further reading

  • From Local to Global: A Graph RAG Approach to Query-Focused SummarizationPaper · Edge et al. · Microsoft Research · 2024The GraphRAG paper. Read the method section for the pipeline (entity extraction, community detection, community summaries, map-reduce answering) and the evaluation of global sensemaking questions on corpora of about a million tokens.
  • RAG vs. GraphRAG: A Systematic Evaluation and Key InsightsPaper · Han et al. · 2025A unified protocol comparing RAG and GraphRAG on question answering and summarisation. Each wins on different tasks, and combining them helps. Read the key-insights section.
  • How Significant Are the Real Performance Gains? An Unbiased Evaluation Framework for GraphRAGPaper · Zeng et al. · 2025Shows that unrelated test questions and biased LLM grading inflated reported GraphRAG gains; under their corrected framework the gains were far smaller. Read before trusting any GraphRAG benchmark.
  • HippoRAG: Neurobiologically Inspired Long-Term Memory for Large Language ModelsPaper · Jiménez Gutiérrez, Shu, Gu, Yasunaga, Su · 2024A knowledge graph plus Personalized PageRank for multi-hop retrieval in one step, reported as comparable to iterative IRCoT at 10–30 times lower cost.
  • Graph Retrieval-Augmented Generation: A SurveyPaper · Peng et al. · 2024A taxonomy of graph-based indexing, retrieval and generation. Use the overview figure to place any new GraphRAG variant you meet.
  • LazyGraphRAG: Setting a new standard for quality and costLab research · Edge, Trinh, Larson · Microsoft Research · 2024The GraphRAG team's own cost correction. Indexing cost identical to vector RAG and 0.1% of full GraphRAG, by deferring LLM work to query time. Read the cost comparisons.
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 7 more sections
  • 3 hands-on exercises
  • A 6-question quiz
  • Progress, quiz scores and bookmarks