2.8 Summary and Reflections
What Is Mandatory and What Is Optional
A minimal RAG system consists of a set of mandatory components: a document loader, a text splitter, an embedding model, a vector store, and a generative model. These elements can be replaced — you can choose other models, other databases, other text-splitting strategies — but removing any one of them without losing functionality is impossible. Practice shows that attempts to "cut corners" and simplify the architecture by dropping one of the components almost always lead to a noticeable drop in quality.
This is easy to see in concrete examples. Keyword search instead of semantic embedding search may look sufficient for simple queries, but it quickly starts to fail when the user rephrases or clarifies the question. Similarly, passing whole documents without splitting them into chunks seems a simpler implementation, but in reality it reduces accuracy: relevance gets blurred, and the model receives less precise context.
In the next chapter we move from individual components to a systems view and examine how to package LLM systems into reproducible pipelines and embed them into development processes. We will discuss tools such as Kubeflow Pipelines, artifact versioning, testing of generative mechanisms, and other practices that turn an experimental system into a full-fledged engineering solution.