Search first, then answer
RAG searches a knowledge base for relevant facts, hands those facts to the model, and lets it answer from the new information. It answers from the actual docs instead of remembering, or inventing.
Less hallucination
Because the model reads real facts before answering, it makes far fewer made-up mistakes. It can still misread or misquote them, so a glance from a human is still worth the effort, but the starting point is now grounded in reality.