
Mastering Retrieval-Augmented Generation
Building next-gen GenAI apps with LangChain, LlamaIndex, and LLMs (English Edition)
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Mastering Retrieval-Augmented Generation
Building next-gen GenAI apps with LangChain, LlamaIndex, and LLMs (English Edition)
About this book
Description
Large language models (LLMs) like GPT, BERT, and T5 are revolutionizing how we interact with technology — powering virtual assistants, content generation, and data analysis. As their influence grows, understanding their architecture, capabilities, and ethical considerations is more important than ever. This book breaks down the essentials of LLMs and explores retrieval-augmented generation (RAG), a powerful approach that combines retrieval systems with generative AI for smarter, faster, and more reliable results.It provides a step-by-step approach to building advanced intelligent systems that utilize an innovative technique known as the RAG thus making them factually correct, context-aware, and sustainable. You will start with foundational knowledge — understanding architectures, training processes, and ethical considerations — before diving into the mechanics of RAG, learning how retrievers and generators collaborate to improve performance. The book introduces essential frameworks like LangChain and LlamaIndex, walking you through practical implementations, troubleshooting, and optimization techniques. It explores advanced optimization techniques, and offers hands-on coding exercises to ensure practical understanding. Real-world case studies and industry applications help bridge the gap between theory and implementation.By the final chapter, you will have the skills to design, build, and optimize RAG-powered applications — integrating LLMs with retrieval systems, creating custom pipelines, and scaling for performance. Whether you are an experienced AI professional or an aspiring developer, this book equips you with the knowledge and tools to stay ahead in the ever-evolving world of AI.
What you will learn
? Understand the fundamentals of LLMs.
? Explore RAG and its key components.
? Build GenAI applications using LangChain and LlamaIndex frameworks.
? Optimize retrieval strategies for accurate and grounded AI responses.
? Deploy scalable, production-ready RAG pipelines with best practices.
? Troubleshoot and fine-tune RAG pipelines for optimal performance.
Who this book is for
This book is for AI practitioners, data scientists, students, and developers looking to implement RAG using LangChain and LlamaIndex. Readers having basic knowledge of Python, ML concepts, and NLP fundamentals would be able to leverage the knowledge gained to accelerate their careers.
Table of Contents
1. Introduction to Large Language Models
2. Introduction to Retrieval-augmented Generation
3. Getting Started with LangChain
4. Fundamentals of Retrieval-augmented Generation
5. Integrating RAG with LangChain
6. Comprehensive Guide to LangChain
7. Introduction to LlamaIndex
8. Building and Optimizing RAG Pipelines with LlamaIndex
9. Advanced Techniques with LlamaIndex
10. Deploying RAG Models in Production
11. Future Trends and Innovations in RAG
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Table of contents
- Cover Page
- Title Page
- Copyright Page
- Dedication
- About the Authors
- About the Reviewers
- Acknowledgements
- Preface
- Table of Contents
- 1. Introduction to Large Language Models
- 2. Introduction to Retrieval-augmented Generation
- 3. Getting Started with LangChain
- 4. Fundamentals of Retrieval-augmented Generation
- 5. Integrating RAG with LangChain
- 6. Comprehensive Guide to LangChain
- 7. Introduction to LlamaIndex
- 8. Building and Optimizing RAG Pipelines with LlamaIndex
- 9. Advanced Techniques with LlamaIndex
- 10. Deploying RAG Models in Production
- 11. Future Trends and Innovations in RAG
- Index
- Back Cover