Loading patterns…
Corrective RAG (CRAG)
RAG system that automatically detects and corrects poor retrieval results through quality assessment and re-retrieval
In 30 seconds
- What
- Retrieves documents, scores their relevance, re-retrieves with refined queries when quality falls below threshold.
- When to use
- Retrieval-heavy tasks where initial results are often incomplete or stale, and you can afford extra API calls.
- Watch out
- Quality thresholds set too high trigger endless re-retrieval loops; too low defeats the purpose and wastes compute.
Ask the AI expert about this pattern
Opens the assistant with your question prefilled. You review it before sending.
Corrective RAG (CRAG): Overview
RAG system that automatically detects and corrects poor retrieval results through quality assessment and re-retrieval
- Retrieval quality assessment
- Automatic error detection
- Corrective re-retrieval
- Query refinement strategies
- Knowledge source expansion
- Quality-based filtering
The Agent Architect
One pattern, one tradeoff, one production failure story. A short weekly briefing for people building agentic systems.
Weekly email, one-click unsubscribe. We only use your address to send the briefing.
References
The papers, specifications, and repositories this pattern is based on.
- Corrective Retrieval Augmented Generation (Yan et al., 2024)arXiv:2401.15884
- Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks (Lewis et al., 2020)arXiv:2005.11401
- Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection (Asai et al., 2023)arXiv:2310.11511
- Active Retrieval Augmented Generation (Jiang et al., 2023)arXiv:2305.06983
- Searching for Best Practices in Retrieval-Augmented Generation (Barnett et al., 2024)arXiv:2407.01219
From the engineer behind this catalog
Get your agent architecture reviewed
This page documents one pattern. Your system runs dozens, and most failures live in how they fit together. Have the whole design reviewed against the 288 patterns in this catalog: architecture, reliability, evaluation and cost, every finding mapped to the pattern that fixes it.
€750 instead of €1,500, one week, written report and walkthrough call, until 30 September