Retrieval-Augmented Generation
An approach that retrieves relevant external information and gives it to a language model when generating an answer.
Read this term in ArabicRetrieval-augmented generation, or RAG, is an approach that retrieves relevant information from external sources and supplies it to a language model while it generates an answer. The information is used at response time rather than being added to the model's learned weights for each update.
The retrieval and generation are separate jobs
First, a retrieval system looks for material relevant to the question. Next, the selected material is included as context for the language model. The model uses that context to compose its response. The sources might be documents or another searchable collection; RAG does not necessarily involve a live search of the public web.
In a hypothetical example, a customer asks whether a service operates on Friday. The system retrieves the business's published opening-hours section and passes it to the model. The model can then explain the relevant schedule instead of relying only on general information learned earlier.
What RAG does not guarantee
It can fail if the relevant passage is missing, not retrieved, outdated, or interpreted incorrectly. AI grounding is the broader idea of tying an answer to supporting information; RAG is one way to do that. Neither eliminates AI hallucination.
Changing a source may require refreshing the searchable copy before an answer reflects it. A working retrieval process and an accurate source are both necessary. Describing this architecture does not establish that a particular product uses it or updates its sources automatically.