chapter fifteen
15 Production RAG: Metrics, agentic systems, and continuous improvement
This chapter covers
- Measuring RAG stability and scalability with RAGGED
- Building an agentic RAG with reflection and planning
- Unifying fine-tuning and retrieval in a single model
- Self-improving pipelines that learn from experience
- Mapping failure points to RAG technique selection
- Answering from page images when text extraction fails
Throughout this book, we have traced RAG's evolution from its information retrieval roots through foundational models (REALM, RAG), multi-document fusion (FiD, Atlas), query enhancement (HyDE, RAG-Fusion), adaptive retrieval (Self-RAG, FLARE, CRAG), graph-based approaches, context compression, and systematic evaluation. Each technique addressed specific failure points: missing content, missed rankings, hallucination, context loss, and incomplete extraction.
What we have not yet addressed is how these techniques compose into production systems, how to choose between them, and where the field is heading. That last question has a concrete answer: RAG systems are becoming more autonomous and more tightly coupled with the LLMs they serve.