Key component overview
This chapter delves into the intricate components that make up a RAG system. Let’s start with an overview of the entire system.
In Chapter 1, we introduced the three main stages of the RAG system from a technical standpoint (see Figure 4.1):
- Indexing
- Retrieval
- Generation
Figure 4.1 – The three stages of a RAG system
We will continue to build off this concept, but we will also introduce the practical aspects of development that are required for building an application. These include prompting, defining your large language model (LLM), the UI, and an evaluation component. Later chapters will cover each of those areas even further. All of this will be done with code so that you can tie the conceptual framework we’ll discuss directly with the implementation. Let’s start with indexing.