Preface
When the first edition of this book was published, retrieval-augmented generation (RAG) felt like a clever workaround. It was used as a way to patch the most obvious limitations of large language models (LLMs) by grounding them in external data. A lot has changed since then. RAG hasn't gone away, but the way we think about it has shifted considerably. It's no longer just a retrieval trick bolted onto a language model. In production, it has become part of a broader discipline called context engineering, where retrieval is one of several mechanisms for getting the right information in front of the right model at the right moment.
LLMs themselves have matured. Context windows have grown from thousands of tokens to millions. Multimodal capability ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access