Agentic RAG
Instead of a linear pipeline, we can use an Agent to handle retrieval dynamically.
An Agentic RAG system can:
- Query Reformulation: The agent rewrites the user's messy question into a clean search query.
- Self-Critique: The agent gets the search results and asks: "Did this actually answer the question?"
- Multi-Hop: If it didn't find the answer, it searches again with a different query.
🎯 Pro Tip: GraphRAG is an emerging pattern where documents are converted into a Knowledge Graph (Entities and Relationships) before searching. It excels at answering global questions like 'what is the overall theme of these 10 books?'