What RAG means
RAG combines two components that normally work apart: a search engine and a language model. When someone asks a question, the system does not answer directly with what the model memorized during training. It first searches an external source (a database, a set of documents, or the open web) for relevant information, then uses those results to build the answer.
The difference from a model that answers only from its training data is central. A language model without retrieval knows only what it learned up to its training cutoff and cannot state where a given fact came from, because it consults no source at the moment it answers. A model with RAG, by contrast, pulls in current information at the moment of each question, can point to specific documents, and allows its knowledge base to be corrected or expanded without retraining.
That is why RAG is associated with systems that show links alongside their answers. That ability to cite sources comes directly from the retrieval step, not from a separate mechanism.