Skip to content

RAG & Retrieval

Grounding models in your data.

Retrieval-augmented generation (RAG) grounds a language model in external data by retrieving relevant documents at query time and adding them to the prompt, reducing hallucination and keeping answers current.

The original RAG paper combined a pretrained sequence-to-sequence model with a dense index of Wikipedia passages and a neural retriever. It compared conditioning on the same passages for a whole answer with selecting different passages per token (Lewis et al., Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks). That makes retrieval part of the system to evaluate. For a support assistant, test whether it finds the right policy before judging how well it writes the answer.

Bob van Luijt in episode 8 discusses the evolution of retrieval architecture. Sudhir Hasbe in episode 55 argues that data structure and relationships matter for hallucinations. What is RAG? introduces the pipeline, and how to evaluate a RAG system separates retrieval quality from answer quality. Vector database vs knowledge graph compares two ways to organize the evidence an application can retrieve.

19 episodes

Explainers on this topic

Terms on this topic

Tool comparisons on this topic

Essay on this topic

Guests on this topic

Jerry LiuSudhir HasbeRichmond AlakeMichel TricotFergal ReidMaxime LabonneMikiko ChandrasekharPhilipp KrennGreg StattonDenny LeeOlga BeregovayaMaryam AshooriManoj AgarwalYash ShethAtindriyo SanyalBob van LuijtMehmet Murat EzbiderliVinnie GiarrussoGrant LedfordChip HuyenVivienne ZhangSara HookerCraig WileyVikram ChatterjiBrian RaymondJoão Moura