RAG (retrieval-augmented generation)

RAG retrieves relevant documents at query time and puts them in the prompt so the model answers from your data.

A RAG pipeline embeds and indexes a corpus, retrieves the top matches for each question, and instructs the model to answer only from those passages with citations. It is the standard fix for stale knowledge and hallucination, and it is far cheaper to keep current than fine-tuning.

All AI terms