Advanced patterns: agentic, graph & multimodal RAG
When a single retrieve-then-generate pass is not enough, and what each extension costs.
Single-pass RAG struggles with questions that need several facts from different places, or a judgement that the first retrieval was poor. Agentic RAG lets a model decide what to search, look at the results, and search again, using the agent loop with retrieval as a tool. It handles multi-hop questions better and costs more calls and more latency.
Corrective patterns add a check after retrieval: grade the retrieved passages for relevance, and if they are weak, rewrite the query, widen the search or fall back to another source before generating. Graph-based approaches extract entities and relations into a graph and use community summaries, which helps with questions about a whole corpus such as 'what are the main themes' that chunk retrieval answers poorly.
Multimodal RAG retrieves from images, tables and slides, either by embedding them directly or by generating text descriptions to index. Adopt each pattern for a failure you can show in your evals, since every one adds complexity, cost and new ways to fail.
Key points
- Agentic RAG handles multi-hop questions with more cost and latency.
- Retrieval grading and query rewriting catch bad first passes.
- Graph approaches suit corpus-wide questions, not simple lookups.
- Add a pattern only to fix a failure your evals demonstrate.
Answer these out loud
- 1Which of your eval failures would agentic retrieval fix, and which would it not?
- 2Why does 'summarise the main themes across all reports' defeat plain top-k chunk retrieval?
Use this from an agent
Any MCP client, including Grok, can read this lesson. See how to connect.
curl https://engineeros-delta.vercel.app/api/v1/topics/rag-advanced-patterns