Glossary
Self-RAG
A RAG method that trains a language model to decide when to retrieve, rate retrieved passages and check its own answer against them, using special reflection tokens.
Self-RAG (Self-Reflective Retrieval-Augmented Generation) is a method that trains a language model to decide for itself when to retrieve, judge whether retrieved passages are relevant, and check whether its own answer is supported by them. It does this by generating special reflection tokens alongside ordinary text. The method was published in October 2023 by Akari Asai, Zeqiu Wu, Yizhong Wang, Avirup Sil and Hannaneh Hajishirzi.
How Self-RAG works
Standard retrieval augmented generation fetches a fixed number of passages for every query, whether or not the question needs them. Self-RAG moves that decision into the model. While generating, the model can emit a token asking for retrieval. The retriever then fetches passages, the model writes a candidate continuation for each one, and it labels each candidate with further tokens that rate the passage and the output. The best-rated continuation is kept.
Reflection token | Question it answers | Values |
|---|---|---|
Retrieve | Should the model fetch passages now? | Yes, no, or continue with earlier evidence |
IsRel | Is this passage relevant to the question? | Relevant or irrelevant |
IsSup | Is the generated text supported by the passage? | Fully, partially or not supported |
IsUse | How useful is the response overall? | A score from 1 to 5 |
Training happens in two stages. A critic model is first trained to insert reflection tokens into example outputs, and the generator is then trained on that annotated data, so at inference time it produces the tokens itself without a separate judge. Because the tokens carry probabilities, decoding can weight them, for example favouring well-supported text for fact-heavy tasks and allowing more freedom for open-ended ones.
Results
The paper trained 7B and 13B parameter models and reported that they outperformed ChatGPT and retrieval-augmented Llama 2 chat models on open-domain question answering, reasoning and fact verification, with better factuality and citation accuracy on long-form answers. It was later presented at ICLR 2024. Self-RAG is often discussed beside corrective RAG, whose authors tested combining the two.
Strengths and limits
Adaptive retrieval saves work on questions the model can answer from its own knowledge, and the support check gives a direct signal for grounding and citations. Building the critique into one model also avoids an extra grading call per passage.
The cost is training. Self-RAG needs a fine-tuned generator, which rules it out for teams that use a hosted frontier model through an API. Generating a candidate per passage also adds tokens and latency. Many teams take the idea without the training, prompting a model to decide whether to search and to check its answer against the sources, which is one form of agentic RAG. The checks still depend on retrieval: if the right passage is never found, reflection can only flag the gap, a point why reranking can’t fix a bad first pass makes about rerankers too.
Self-RAG compared with other RAG patterns
Naive RAG retrieves once for every query and never checks the result. Corrective RAG adds an external evaluator that grades retrieved documents and swaps in other sources. Self-RAG trains the generator to make those calls itself. Modular RAG is the umbrella for pipelines built from steps like these, and the RAG pipeline entry covers the stages they share. Each aims to reduce hallucination by tying answers to evidence.
Self-RAG and Exabase
Exabase does not train or host language models, so Self-RAG’s fine-tuned generator sits outside it. Exabase can serve as the retrieval step that a Self-RAG model, or a prompted model following the same idea, calls when it decides to search. Deep Search returns sub-document passages with page numbers or timestamps and a relevance score per chunk, which gives the support check precise text to judge and the answer exact places to cite. The precision parameter (0 to 1) controls how many loosely related passages come back, which matters when each passage costs a generation.
Content is stored as Resources and indexed on arrival, with Extract handling PDFs, audio, video and web pages. For facts about the user rather than documents, Memory offers its own search with recency weighting. The searching resources guide, the RAG pipelines use case and RAG accuracy cover the retrieval side in more depth.
FAQs
What does Self-RAG stand for?
Self-Reflective Retrieval-Augmented Generation. The name refers to the model reflecting on when to retrieve and on the quality of passages and of its own output.
What are reflection tokens?
Special tokens added to the model’s vocabulary that it generates alongside text. They signal whether to retrieve, whether a passage is relevant, whether the output is supported, and how useful the response is.
Is Self-RAG better than corrective RAG?
They solve related problems in different places. Self-RAG needs a fine-tuned model but no extra grader; corrective RAG works with any generator but adds an evaluator and a fallback source. The CRAG paper reported further gains from combining them.
Can I use Self-RAG with hosted models such as GPT or Claude?
The original method requires fine-tuning the generator on reflection-token data. With hosted models, teams approximate it through prompting and tool use, letting the model decide when to call search and asking it to check its answer against the retrieved text.
Does Self-RAG reduce hallucinations?
The paper reported better factuality and citation accuracy than the baselines it tested. It reduces unsupported claims when retrieval finds the right passages; it cannot supply evidence that retrieval missed.
Where does Exabase fit in a Self-RAG setup?
As the search the model calls. Deep Search supplies scored, located passages and handles indexing, while the model, its reflection logic and the final answer stay in your stack. Best RAG infrastructure compares other retrieval services.
Related pages: Corrective RAG, Agentic RAG, Naive RAG, Modular RAG, Grounding, Retriever, Hallucination, RAG accuracy, RAG pipelines use case, Best RAG infrastructure.