Skip to the content
AI and Cybersecurity Learning and Practice Center Test automation Open the Learning Center

Glossary

RAG (retrieval-augmented generation)

The model answers from documents fetched at question time instead of only from training: search, add the top passages to the context, generate. The fetched text is untrusted input, so a poisoned document can carry a prompt injection.

Open the glossary in the Learning Center