Diagram
A four-step process flow showing how RAG grounds a model response: the user's query is converted to an embedding, compared via similarity search against documents in a knowledge base, the most relevant documents are retrieved, and the model generates a grounded response from the retrieved facts.
Grounding Responses with Retrieval-Augmented Generation
Retrieval-augmented generation (RAG) is the main technique for reducing hallucinations by grounding a response in real data instead of relying only on internal knowledge. In a RAG system, an embedding, which is a numerical representation of data such as text, images, or videos that captures relationships between inputs, is used to match a user's query with relevant knowledge. The flow works in a clear order:
Domain 1 of 3
36 practice questions
Practice this DomainLast updated