22. Agentic RAG — Revision Guide#

Overview: This guide distills how to build a multi-agent Retrieval-Augmented Generation (RAG) system using CrewAI and DeepSeek (via OpenRouter in the cloud or Ollama locally). Starting from plain RAG, it builds up to an agentic team that routes questions between a private PDF and the live web, checks its own answers for relevance and hallucinations, and falls back to web search whenever a check fails.

13 Sections • 5 Code Snippets • 3 Diagrams • 8 Self-Check Q&As