Lesson 05.09 · Phase 05 · Retrieval & Agentic RAG
Graph-based retrieval
When the answer is a chain (this service depends on that one, which that team owns, which that person leads), store the links and walk them. Similarity search finds documents that look like the question; a graph finds the documents connected to it.
Learning objectives
- Extract (subject, relation, object) triples from text and build a graph you can walk in both directions.
- Implement entity linking and k-hop neighbourhood retrieval, rendering the triples as context.
- Measure, per question, how many facts on the answer path reach the context, for vector top-k and for 1 to 3 graph hops.
- Explain the costs: extraction loses facts, and every extra hop grows the context.
"Who should I page if a checkout dependency breaks?" The answer is in six sentences across the documentation:
Loading the full lesson…