By Vero SecurityBuilt and funded by Vero Security, the AI Security Engineering platform.Read the charter

Retrieval-augmented generation (RAG)

RAG retrieves relevant documents, usually through embedding similarity search, and places them in the prompt so the model can answer from current or private data. Access control has to be enforced at retrieval time, because the model will use whatever text it is handed.

Read in this order

  1. ArticleEmbeddings: What they are and why they matter (Simon Willison)Start here: a plain explanation of embeddings and similarity search.
  2. ArticleContextual retrieval (Anthropic)A practical technique for improving what a retrieval system finds.
  3. PaperRetrieval-Augmented Generation for Knowledge-Intensive NLP TasksThe paper that introduced RAG, for the original design.

Save your progress

We email you a sign-in link. No password.

By signing in you agree to the terms. The privacy policy explains how we use your details.

Join the AI security engineering community

Free. Roadmap updates, chapters near you, and first word when credentials open.

We’ll email you community updates. Unsubscribe anytime. By sending this you agree to the terms. The privacy policy explains how we use your details.