RAG in Simple Terms: Why the Model Forgets Facts
LLM does not store facts as a database. Therefore, it can confidently err when asked about fresh documents. The solution is RAG.
What RAG Does
RAG adds a cheat sheet to the model from your documents:
- Documents are sliced into chunks.
- Each chunk is turned into an embedding.
- Similar fragments are searched based on the question.
- The model answers based on the found fragments.
When It Is Needed
- answers to internal documents;
- up-to-date data;
- source control.
For a detailed breakdown, see the RAG and Knowledge section.

