Skip to content

RAG in Simple Terms: Why the Model Forgets Facts

Cover: RAG in Simple Terms

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:

RAG Pipeline Diagram

  1. Documents are sliced into chunks.
  2. Each chunk is turned into an embedding.
  3. Similar fragments are searched based on the question.
  4. 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.