Step 1 / 13Problem
The LLM does not know your documents
An LLM was trained on public text. It has never seen your handbook, tickets or contracts. When asked, it may invent a confident answer. This is a hallucination.
Pasting all documents into the prompt does not work either: the context window (how much text the model reads at once) is limited, and every token costs money and time.
Key idea
RAG = Retrieval-Augmented Generation. Find the few relevant passages first, then let the LLM answer using only those.
“The model doesn't know our private documents, so without retrieval it can hallucinate an answer.”
←→ step·R restart·Space pause