Dashboard
0%
1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
51 small wins to finish your pathNext question →

Q35IntermediateConcept

What are Corrective RAG, Self-RAG, and Adaptive RAG?

30-second answerSay your answer out loud first, then reveal.
An adaptive router sends a query to a direct answer, single retrieval or an iterative loop; retrieved docs are graded, poor ones trigger a query rewrite or another source, and the generated answer is checked for grounding before it is returned.

How the three compare

ApproachKey ideaCost
Adaptive RAGClassifier picks the pipeline per querySaves cost on simple queries
Corrective RAG (Yan et al. 2024)Retrieval evaluator; corrective actions (refine, web search)Extra grading calls
Self-RAG (Asai et al. 2023)Model emits reflection tokens: retrieve? relevant? supported? useful?Originally needs a fine-tuned model; prompt-based versions exist

Practical implementation: a state graph (e.g. LangGraph) with nodes for route → retrieve → grade → generate → check, and edges for retries. Cap the loops.

Trade-offs: better robustness at the cost of latency (2–5x more LLM calls) and complexity. Use them for high-value or complex queries; keep simple queries on the fast path.

Every expert started right here.