What RAG is
The AI answers with an open book instead of only from memory. Before it replies, the system searches trusted documents and hands it the most useful pages. The AI reads those pages, writes its answer from them, and can show where each fact came from. So you update its knowledge by changing the documents — no retraining needed.
Technical layer
RAG reduces unsupported answers and lets knowledge change without retraining. It does not guarantee truth: retrieval can miss evidence and the generator can ignore it.
A strong system asks the model to answer only from context, return citations, and admit insufficient evidence.
When would you not use RAG?
When knowledge is already stable and contained in the model, when the task is deterministic and better handled by SQL/code, or when strict latency makes retrieval too expensive. Fine-tuning changes behavior/style; RAG supplies changing knowledge.