Glossary
Corrective RAG
A RAG method that grades retrieved documents with a small evaluator, keeps and trims the relevant ones, and falls back to web search when retrieval looks wrong.
Corrective RAG (CRAG) is a retrieval augmented generation method that checks the quality of retrieved documents before the model uses them. A small evaluator scores the retrieved passages. If they look relevant, the system trims them to the useful parts; if they look wrong, it discards them and searches the web; if it cannot tell, it does both. The method was introduced in a January 2024 paper by Shi-Qi Yan, Jia-Chen Gu, Yun Zhu and Zhen-Hua Ling.
How corrective RAG works
CRAG adds a grading step between retrieval and generation. The retriever returns documents as usual. A retrieval evaluator, in the paper a fine-tuned T5-large model of about 0.77 billion parameters, scores how relevant each document is to the question. Two thresholds turn those scores into one of three actions.
Verdict | Condition | Action |
|---|---|---|
Correct | At least one document scores above the upper threshold | Keep the documents and refine them to the relevant parts |
Incorrect | Every document scores below the lower threshold | Discard them and run a web search instead |
Ambiguous | Scores fall between the two thresholds | Combine the refined documents with web results |
Refinement uses what the authors call decompose-then-recompose. Each document is split into short knowledge strips of one to a few sentences, the evaluator scores each strip, irrelevant strips are dropped and the rest are joined in their original order. For the web path, a language model rewrites the question into a short keyword query, and the same refinement is applied to the pages that come back.
What problem it addresses
In naive RAG, whatever the vector index returns goes straight into the prompt. When those passages are on the right topic but lack the answer, the model tends to produce a fluent, wrong reply, a common source of hallucination. CRAG treats retrieval as something that can fail and gives the pipeline a way to notice and recover. The refinement step also removes irrelevant sentences, which shortens what goes into the context window and lowers the chance of the model fixing on a misleading passage, the problem described under context distraction.
Results and limits
The paper tested CRAG on four datasets (PopQA, Biography, PubHealth and ARC-Challenge) covering short and long answers, and reported gains over standard RAG and over Self-RAG. It also combined the two as Self-CRAG, feeding Self-RAG the corrected knowledge. The method is plug-and-play: the evaluator and its actions sit around an existing retriever and generator.
The limits follow from the design. Quality depends on the evaluator, which needs training or prompting for the domain and adds a model call per document or strip. The web fallback suits public, general knowledge; for private company data, a second internal source or a plain statement that nothing was found is often safer. Thresholds also need tuning against a golden dataset before the actions behave as intended, and evaluating retrieval without a labelled dataset covers how to start when no such set exists.
Corrective RAG compared with related methods
Agentic RAG lets an agent decide when and how to search, and CRAG-style grading can be one of its steps. Self-RAG trains the generator to emit reflection tokens that decide when to retrieve and critique its own output. Modular RAG is the broader idea of building pipelines from swappable steps, of which CRAG’s evaluator is one. A reranker orders candidates by relevance but has nothing to do when every candidate is poor, which is the case CRAG handles.
Corrective RAG and Exabase
Exabase does not include a CRAG evaluator: the grading logic and the fallback choice sit in your pipeline. It helps on both sides of that logic. Deep Search returns a relevance score per hit and per chunk, so a threshold on those scores can act as a first check before any extra model call. Because results are sub-document passages with page numbers or timestamps, they are already close to the knowledge strips CRAG builds, which leaves less to trim. The precision parameter (0 to 1) can be raised to return fewer, closer matches.
For the fallback, a second Deep Search call against another Base holding a wider corpus is one option, and a Worker with the built-in web-search tool can research a topic and save what it finds for later queries. Storage and ingestion run through Resources and Extract. The searching resources guide covers scores and filters, RAG accuracy covers why retrieval failures cause most wrong answers, and the RAG pipelines use case shows a full build.
FAQs
What does CRAG stand for?
Corrective Retrieval Augmented Generation. The name refers to correcting the retrieved knowledge before generation, by refining good documents and replacing poor ones with web results.
How is corrective RAG different from Self-RAG?
Corrective RAG grades retrieved documents with a separate, small evaluator and changes what goes into the prompt. Self-RAG trains the language model itself to decide when to retrieve and to critique passages and its own answer. The two can be combined, which the CRAG paper tested as Self-CRAG.
Do I need to fine-tune a model to use corrective RAG?
The paper fine-tuned T5-large as its evaluator. Many implementations prompt an LLM to grade documents instead, which needs no training but costs more per query. A score threshold from the retrieval system is the cheapest first check.
Does corrective RAG have to use web search?
Web search is the paper’s fallback for general knowledge. For internal documents, the fallback can be a different index, a broader query, or a reply that says the answer was not found.
How does corrective RAG reduce hallucinations?
By keeping irrelevant or wrong passages out of the prompt. When the model receives only strips that relate to the question, or a clear signal that nothing relevant was found, it has less reason to invent an answer. The wider practice is called grounding.
Can I build corrective RAG on Exabase?
Yes, with Exabase as the retrieval layer. Use Deep Search scores and precision for the relevance check, keep the grading and fallback rules in your code, and choose your own model for generation. Best RAG infrastructure compares other hosted options.
Related pages: Naive RAG, Modular RAG, Self-RAG, Agentic RAG, Retriever, Reranking, Grounding, RAG accuracy, RAG pipelines use case, Why reranking can’t fix a bad first pass, Self-correction.