Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the authors
OK
Generative AI with LangChain: Build production-ready LLM applications and advanced agents using Python, LangChain, and LangGraph
Purchase options and add-ons
Go beyond foundational LangChain documentation with detailed coverage of LangGraph interfaces, design patterns for building AI agents, and scalable architectures used in production—ideal for Python developers building GenAI applications
Key Features
- Bridge the gap between prototype and production with robust LangGraph agent architectures
- Apply enterprise-grade practices for testing, observability, and monitoring
- Build specialized agents for software development and data analysis
- Purchase of the print or Kindle book includes a free PDF eBook
Book Description
This second edition tackles the biggest challenge facing companies in AI today: moving from prototypes to production. Fully updated to reflect the latest developments in the LangChain ecosystem, it captures how modern AI systems are developed, deployed, and scaled in enterprise environments. This edition places a strong focus on multi-agent architectures, robust LangGraph workflows, and advanced retrieval-augmented generation (RAG) pipelines.
You'll explore design patterns for building agentic systems, with practical implementations of multi-agent setups for complex tasks. The book guides you through reasoning techniques such as Tree-of -Thoughts, structured generation, and agent handoffs—complete with error handling examples. Expanded chapters on testing, evaluation, and deployment address the demands of modern LLM applications, showing you how to design secure, compliant AI systems with built-in safeguards and responsible development principles. This edition also expands RAG coverage with guidance on hybrid search, re-ranking, and fact-checking pipelines to enhance output accuracy.
Whether you're extending existing workflows or architecting multi-agent systems from scratch, this book provides the technical depth and practical instruction needed to design LLM applications ready for success in production environments.
What you will learn
- Design and implement multi-agent systems using LangGraph
- Implement testing strategies that identify issues before deployment
- Deploy observability and monitoring solutions for production environments
- Build agentic RAG systems with re-ranking capabilities
- Architect scalable, production-ready AI agents using LangGraph and MCP
- Work with the latest LLMs and providers like Google Gemini, Anthropic, Mistral, DeepSeek, and OpenAI's o3-mini
- Design secure, compliant AI systems aligned with modern ethical practices
Who this book is for
This book is for developers, researchers, and anyone looking to learn more about LangChain and LangGraph. With a strong emphasis on enterprise deployment patterns, it’s especially valuable for teams implementing LLM solutions at scale. While the first edition focused on individual developers, this updated edition expands its reach to support engineering teams and decision-makers working on enterprise-scale LLM strategies. A basic understanding of Python is required, and familiarity with machine learning will help you get the most out of this book.
Table of Contents
- The Rise of Generative AI: From Language Models to Agents
- First Steps with LangChain
- Building Workflows with LangGraph
- Building Intelligent RAG Systems with LangChain
- Building Intelligent Agents
- Advanced Applications and Multi-Agent Systems
- Software Development and Data Analysis Agents
- Evaluation and Testing
- Observability and Production Deployment
- The Future of LLM Applications
- ISBN-101837022011
- ISBN-13978-1837022014
- Edition2nd ed.
- PublisherPackt Publishing
- Publication dateMay 23, 2025
- LanguageEnglish
- Dimensions7.5 x 1.09 x 9.25 inches
- Print length476 pages
Frequently bought together

Customers who viewed this item also viewed
- AI Engineering: Building Applications with Foundation ModelsPaperbackFREE Shipping by AmazonGet it as soon as Sunday, Sep 20
- Building AI Agents with LLMs, RAG, and Knowledge Graphs: A practical guide to autonomous and modern AI agentsPaperbackFREE Shipping by AmazonGet it as soon as Monday, Sep 21
- AI Agents and Applications: With LangChain, LangGraph, and MCPPaperbackFREE Shipping by AmazonGet it as soon as Monday, Sep 21
- Design Multi-Agent AI Systems Using MCP and A2A: Engineer your own Python-based agentic AI framework with tool use, memory, and multi-agent workflowsPaperbackFREE Shipping by AmazonGet it as soon as Monday, Sep 21
- The Agentic AI Bible: The Complete and Up-to-Date Guide to Design, Develop, and Scale Goal-Driven, LLM-Powered Agents that Think, Execute and EvolvePaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Monday, Sep 21
- 30 Agents Every AI Engineer Must Build: Build production-ready agent systems using proven architectures and patternsPaperbackFREE Shipping by AmazonGet it as soon as Tuesday, Sep 22
Customers also bought or read
- Building AI Agents with LLMs, RAG, and Knowledge Graphs: A practical guide to autonomous and modern AI agents
Paperback$41.99$41.99FREE delivery Mon, Sep 21 - 30 Agents Every AI Engineer Must Build: Build production-ready agent systems using proven architectures and patterns
Paperback$41.79$41.79FREE delivery Tue, Sep 22 - Generative AI with Python and PyTorch: Navigating the AI frontier with LLMs, Stable Diffusion, and next-gen AI applications
Paperback$32.99$32.99Delivery Mon, Sep 21 - Agentic Architectural Patterns for Building Multi-Agent Systems: Proven design patterns and practices for GenAI, agents, RAG, LLMOps, and enterprise-scale AI systems
Paperback$44.99$44.99FREE delivery Sun, Sep 20 - Agentic Coding with Claude Code: The everyday developer's guide to agentic coding with Claude Code
Paperback$36.33$36.33FREE delivery Mon, Sep 21 - Learning LangChain: Building AI and LLM Applications with LangChain and LangGraph
Paperback$55.01$55.01FREE delivery Sun, Sep 20 - Learn Model Context Protocol with Python: Build agentic systems in Python with the new standard for AI capabilities
Paperback$32.47$32.47Delivery Oct 7 - 14 - Design Multi-Agent AI Systems Using MCP and A2A: Engineer your own Python-based agentic AI framework with tool use, memory, and multi-agent workflows
Paperback$41.79$41.79FREE delivery Mon, Sep 21 - LLM Engineer's Handbook: Master the art of engineering large language models from concept to production
Paperback$39.99$39.99FREE delivery Mon, Sep 21 - Building Applications with AI Agents: Designing and Implementing Multiagent Systems
Paperback$56.44$56.44FREE delivery Sun, Sep 20 - Context Engineering for Multi-Agent Systems: Move beyond prompting to build a Context Engine, a transparent architecture of context and reasoning
Paperback$37.99$37.99FREE delivery Mon, Sep 21 - AI Engineering: Building Applications with Foundation Models#1 Best SellerEnterprise Applications
Paperback$52.40$52.40FREE delivery Sun, Sep 20 - Unlocking Data with Generative AI and RAG: Enhance generative AI systems by integrating internal data with large language models using RAG
Paperback$44.99$44.99FREE delivery Mon, Sep 21 - AI Agents in Action: Build, orchestrate, and deploy autonomous multi-agent systems
Paperback$59.99$59.99 - AI Agents in Practice: Design, implement, and scale autonomous AI systems for production
Paperback$33.74$33.74Delivery Mon, Sep 21 - Hands-On Large Language Models: Language Understanding and Generation
Paperback$37.68$37.68FREE delivery Mon, Sep 21 - Designing Multi-Agent Systems: Principles, Patterns, and Implementation for AI Agents
Paperback$46.39$46.39FREE delivery Mon, Sep 21 - LLM Design Patterns: A Practical Guide to Building Robust and Efficient AI Systems
Paperback$42.99$42.99FREE delivery Sun, Sep 20 - Knowledge Graphs and LLMs in Action: Build AI systems using connected data
Paperback$55.99$55.99FREE delivery Mon, Sep 21 - Mathematics of Machine Learning: Master linear algebra, calculus, and probability for machine learning
Paperback$44.30$44.30FREE delivery Mon, Sep 21 - Building LLMs for Production: Enhancing LLM Abilities and Reliability with Prompting, Fine-Tuning, and RAG
Paperback$43.38$43.38FREE delivery Mon, Sep 21 - Build a Large Language Model (From Scratch)#1 Best SellerComputer Neural Networks
Paperback$49.24$49.24FREE delivery Sun, Sep 20 - LLMs in Production: From language models to successful products
Paperback$48.13$48.13FREE delivery Sun, Sep 20 - Generative AI Design Patterns: Solutions to Common Challenges When Building GenAI Agents and Applications
Paperback$68.99$68.99FREE delivery Sun, Sep 20 - Graph Machine Learning: Learn about the latest advancements in graph data to build robust machine learning models
Paperback$38.54$38.54FREE delivery Mon, Sep 21 - Generative AI with Python: The Developer’s Guide to Pretrained LLMs, Vector Databases, Retrieval Augmented Generation, and Agentic Systems (Rheinwerk Computing)
Paperback$47.73$47.73FREE delivery Sun, Sep 20 - AI Agents and Applications: With LangChain, LangGraph, and MCP
Paperback$51.69$51.69FREE delivery Mon, Sep 21 - Python Machine Learning By Example: Unlock machine learning best practices with real-world use cases
Paperback$29.55$29.55Delivery Mon, Sep 21 - RAG-Driven Generative AI: Build custom retrieval augmented generation pipelines with LlamaIndex, Deep Lake, and Pinecone
Paperback$32.99$32.99Delivery Mon, Sep 21
From the brand
-
See more at our store
-
Packt is a leading publisher of technical learning content with the ability to publish books on emerging tech faster than any other.
Our mission is to increase the shared value of deep tech knowledge by helping tech pros put software to work.
We help the most interesting minds and ground-breaking creators on the planet distill and share the working knowledge of their peers.
From the Publisher
Editorial Reviews
About the Author
Ben Auffarth is a full-stack data scientist with more than 15 years of work experience. With a background and Ph.D. in computational and cognitive neuroscience, he has designed and conducted wet lab experiments on cell cultures, analyzed experiments with terabytes of data, run brain models on IBM supercomputers with up to 64k cores, built production systems processing hundreds and thousands of transactions per day, and trained language models on a large corpus of text documents. He co-founded and is the former president of Data Science Speakers, London.
Leonid Kuligin is a staff AI engineer at Google Cloud, working on generative AI and classical machine learning solutions (such as demand forecasting or optimization problems). Leonid is one of the key maintainers of Google Cloud integrations on LangChain, and a visiting lecturer at CDTM (TUM and LMU). Prior to Google, Leonid gained more than 20 years of experience in building B2C and B2B applications based on complex machine learning and data processing solutions such as search, maps, and investment management in German, Russian, and US technological, financial, and retail companies.
Product details
- Publisher : Packt Publishing
- Publication date : May 23, 2025
- Edition : 2nd ed.
- Language : English
- Print length : 476 pages
- ISBN-10 : 1837022011
- ISBN-13 : 978-1837022014
- Item Weight : 1.82 pounds
- Dimensions : 7.5 x 1.09 x 9.25 inches
- Best Sellers Rank: #155,246 in Books (See Top 100 in Books)
- Customer Reviews:
About the authors

Discover more of the author’s books, see similar authors, read book recommendations and more.

Ben Auffarth, PhD, is a bestselling author and AI implementation expert with over 15 years of experience bridging advanced technology with measurable business outcomes. As founder of Chelsea AI Ventures, he specializes in helping small and medium enterprises implement enterprise-grade AI solutions that deliver tangible ROI. His systems have prevented millions in fraud losses and process transactions at sub-300ms latency. With a background in computational neuroscience, Ben brings rare depth to practical AI applications—from supercomputing brain models to production systems that combine technical excellence with business strategy. His books are practical "cookbooks" that explain complex AI concepts in accessible, hands-on ways, while his consulting work focuses on delivering concrete, measurable outcomes for businesses. Based in London, Ben balances his technical expertise with family time and participation in the Data Science Speakers community.














