LiveSPX7,620-1.28%NDX29,127-1.41%US10Y4.961%+3.23%BTC76,816-1.24%ETH2,468-2.07%GOLD4,320-1.02%NVDA210.96-8.42%MSFT505.41+1.14%GOOGL349.39+3.23%
Advertisement
AI glossary

RAG (retrieval-augmented generation)

Fetching real documents and putting them in the prompt.

Retrieval-augmented generation searches a document store for passages relevant to the question and pastes them into the model's context before it answers.

It is the standard fix for stale or missing knowledge: the model does not need to have memorised your policies, it just needs to read them at request time.

It also makes citation possible — the answer can point at the retrieved passage — which is why it underpins most enterprise deployments.

Related terms