-
Book Overview & Buying
-
Table Of Contents
RAG from First Principles
By :
Correction technology introduces self-reflection and self-scoring mechanisms for retrieved documents and generated answers in RAG systems, allowing it to be applied both in the post-retrieval processing phase and as part of the generation process. A typical implementation of this technique is Corrective Retrieval Augmented Generation (CRAG). The implementation process of CRAG is shown below.
Figure 7.13: A flowchart shows a search and knowledge correction process for a question-answer system
The core concept of the CRAG system lies in repeatedly evaluating and re-retrieving to ensure that the information on which the generated answers are based is highly relevant. The system consists of two main components: correction of knowledge after retrieval and correction during generation.
The retrieval assessor is responsible for the correction of post-retrieval knowledge. If at least one document’s relevance exceeds a set threshold, the system proceeds to...