AI Basics Intermediate
RAG lets an AI look things up in trusted sources before it answers.
Normally an AI answers from what it already learned. RAG gives it a better trick: look things up first, then answer.
RAG stands for Retrieval-Augmented Generation. That is a big name for "search, then answer."
Here is how it works. You ask a question, the AI searches trusted notes or files, finds the useful facts, and then builds its answer using those facts.
This helps a lot. The AI can use fresher, up-to-date information, its answers are grounded in real sources, and it is more accurate.
It can still go wrong if the sources are bad, the files are outdated, or it grabs the wrong page. Good sources plus careful search give the best results.
So RAG makes an AI more trustworthy. It looks things up first, the way a careful researcher checks the library before answering.
RAG augments generation by retrieving relevant documents at query time and conditioning the model on them, improving freshness and grounding while reducing hallucination. Quality depends on the retriever and the corpus; stale, wrong, or poisoned sources degrade answers, so source curation and citation matter.
Want the full story? These go deeper: