RAG with Python Cookbook
eBook - ePub

RAG with Python Cookbook

Learn principles of RAG with LLM and agentic AI, with 120+ recipes (English Edition)

  1. 415 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

RAG with Python Cookbook

Learn principles of RAG with LLM and agentic AI, with 120+ recipes (English Edition)

About this book

Description
Retrieval-augmented generation (RAG) has emerged as a critical technology in an era where organizations rely on accurate, context-aware AI systems. As LLMs expand across industries, RAG enables teams to build solutions that are more trustworthy, factual, and aligned with real-world knowledge, making it an essential skill for modern engineers, analysts, data scientists, and software developers.

This book provides a comprehensive, hands-on guide to master RAG with Python. It begins with the foundations of embeddings, vector databases, and retrieval pipelines, moving into prompt engineering, hybrid search strategies, and prompt engineering strategies, like chain-of-thought and MapReduce to enhance response quality. It then covers evaluation, optimization, and agentic workflows. Each chapter delivers clear explanations that help you preprocess data, build scalable pipelines, integrate LLMs, automate reasoning, and deploy end-to-end RAG systems tailored to real-world use cases.

By the end of this book, readers will be able to design, implement, and optimize robust RAG solutions with confidence. They will gain the skills to build retrieval-aware applications, enhance enterprise workflows, develop intelligent agents, and apply industry-proven techniques that directly strengthen their professional capabilities.

What you will learn
? Build reliable RAG pipelines using Python and modern frameworks.
? Apply effective document loading and splitting strategies.
? Generate high-quality embeddings for semantic retrieval tasks.
? Optimize vector store for scalable, fast and accurate information access.
? Engineer prompts tailored for retrieval-augmented workflows.
? Integrate LLMs efficiently into RAG systems.
? Implement agentic AI for dynamic, adaptive retrieval processes.

Who this book is for
This book is ideal for data scientists, AI engineers, software developers, solution architects, and technical product managers building LLM-powered applications. It guides professionals who want practical, production-ready techniques to design, optimize, troubleshoot, and deploy high-performance RAG systems in real-world environments.

Table of Contents
1. Foundation of Retrieval-augmented Generation
2. Document Loaders for RAG Pipelines
3. Document Splitting Techniques
4. Embedding Strategies for Vector Retrieval
5. Vector Stores for Semantic Retrieval
6. Efficient Retrieval from Vector Store
7. Response Generation with LLM in RAG Systems
8. Prompt Engineering for RAG Systems
9. Effective Search for RAG Systems
10. Implementing RAG with Chains
11. Agentic RAG with Dynamic Retrieval

Trusted by 375,005 students

Access to over 1.5 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Table of contents

  1. Cover
  2. Title Page
  3. Copyright Page
  4. Dedication Page
  5. About the Author
  6. About the Reviewers
  7. Acknowledgement
  8. Preface
  9. Table of Contents
  10. 1. Foundation of Retrieval-augmented Generation
  11. 2. Document Loaders for RAG Pipelines
  12. 3. Document Splitting Techniques
  13. 4. Embedding Strategies for Vector Retrieval
  14. 5. Vector Stores for Semantic Retrieval
  15. 6. Efficient Retrieval from Vector Store
  16. 7. Response Generation with LLM in RAG Systems
  17. 8. Prompt Engineering for RAG Systems
  18. 9. Effective Search for RAG Systems
  19. 10. Implementing RAG with Chains
  20. 11. Agentic RAG with Dynamic Retrieval
  21. Index

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • 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.5M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1.5 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access RAG with Python Cookbook by Deepak Dhyani in PDF and/or ePUB format, as well as other popular books in Computer Science & Artificial Intelligence (AI) & Semantics. We have over 1.5 million books available in our catalogue for you to explore.