Leanpub Header

Skip to main content

RAG Masterclass Bundle

Build AI systems that actually work in the real world. This bundle takes you from the fundamentals of context engineering to production-ready RAG, embeddings and neural reranking, with practical examples and engineering patterns you can apply to your own projects. Whether you are building your first AI search system or improving an existing one, these books give you the tools to understand what is happening under the hood and build with confidence.

Bought separately

$87.00

Minimum price

$45.00

$59.00

You pay

Author earns

$

Also available for 2 book credits with a Reader Membership

These books have a total suggested price of $87.00. Get them now for only $45.00!
About

About

About the Bundle

Building useful AI systems takes more than knowing how to call an LLM. You need to understand how models use context, how to connect them to reliable sources of information and how to make retrieval fast and accurate.

This bundle brings together three practical books that cover those core areas from the ground up.

Context Engineering focuses on the bigger picture of designing AI systems around context. It covers how LLMs process information, how to structure and manage context and how to move from simple prototypes to reliable production systems.

Retrieval-Augmented Generation takes a deeper look at how to give LLMs access to external and private knowledge. You will learn how RAG systems work, how to choose the right retrieval architecture and how to build and deploy them using tools such as LangChain, LlamaIndex, ChromaDB and Pinecone.

Embeddings and Reranking in Retrieval-Augmented Generation goes further into the search layer. It explains how embeddings capture meaning, how different retrieval methods work and how reranking can improve the quality of the context passed to an LLM.

Together, the books give you a practical path from understanding LLM context to building complete retrieval systems and improving the quality of the results they produce. The focus throughout is on real engineering decisions, working code and patterns you can actually use in your own projects.

Books

About the Books

Context Engineering

Context Engineering

Designing Intelligent Systems with Large Language Models

This book teaches you how to design, build, and operate production systems powered by large language models by treating context as a first-class architectural concern. You will learn the theory behind how LLMs use context, the patterns that work in real systems, the trade-offs between competing approaches, and the engineering practices that separate fragile prototypes from reliable products. The material is organized to take you from foundational concepts through advanced production techniques, with complete code examples and detailed explanations of every major pattern in modern AI system design.

Retrieval-Augmented Generation

Retrieval-Augmented Generation

A Comprehensive Guide to Building Intelligent Search-Powered AI Systems

Large language models are powerful but fundamentally limited -- they hallucinate facts, carry stale knowledge, and cannot access your organization's private data. Retrieval-Augmented Generation (RAG) solves these problems by connecting LLMs to external knowledge sources at inference time. This book takes you from the foundational concepts of RAG through advanced production implementation, covering architecture design, embedding strategies, vector databases, retrieval techniques, evaluation frameworks, security considerations, and real-world deployment patterns. Every chapter includes practical Python code examples using LangChain, LlamaIndex, ChromaDB, Pinecone, and other popular tools, so you can build, deploy, and scale RAG systems with confidence.

Embeddings and Reranking in Retrieval-Augmented Generation

Embeddings and Reranking in Retrieval-Augmented Generation

Building Production-Grade Search Systems with Dense Retrieval and Neural Reranking

This book teaches you how to design, implement, and operate retrieval-augmented generation systems that work reliably in production. You will learn how embedding models represent semantic meaning as vectors, how different retrieval strategies exploit those representations, how reranking models refine candidate sets into high-quality context, and how to assemble these components into systems that are accurate, fast, and maintainable. The material assumes working knowledge of Python and basic machine learning concepts, and provides end-to-end code examples using real libraries, real models, and real architectural patterns.

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub