Shop New Home Essentials Now
To see product details, add this item to your cart. You can always remove it later.
Shipper / Seller
Amazon.com
Amazon.com
Shipper / Seller
Amazon.com
Returns
30-day refund / replacement
30-day refund / replacement
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Read full return policy
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
Gift options
Available at checkout
Available at checkout This item is a gift. Change
At checkout, you can add a custom message, a gift receipt for easy returns and have the item gift-wrapped
Added to

Sorry, there was a problem.

There was an error retrieving your Wish Lists. Please try again.

Sorry, there was a problem.

List unavailable.
Kindle app logo image

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.

QR code to download the Kindle App

  • Generative AI with LangChain: Build production-ready LLM applications and advanced agents using Python, LangChain, and LangGraph
  • An Overview of Generative AI with LangChainPackt Publishing
  • VIDEO

Follow the authors

Get new release updates & improved recommendations
Something went wrong. Please try your request again later.

Generative AI with LangChain: Build production-ready LLM applications and advanced agents using Python, LangChain, and LangGraph

4.5 out of 5 stars (61)

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

  1. The Rise of Generative AI: From Language Models to Agents
  2. First Steps with LangChain
  3. Building Workflows with LangGraph
  4. Building Intelligent RAG Systems with LangChain
  5. Building Intelligent Agents
  6. Advanced Applications and Multi-Agent Systems
  7. Software Development and Data Analysis Agents
  8. Evaluation and Testing
  9. Observability and Production Deployment
  10. The Future of LLM Applications

Frequently bought together

This item: Generative AI with LangChain: Build production-ready LLM applications and advanced agents using Python, LangChain, and LangGraph
$44.99
Get it as soon as Thursday, Jun 11
In Stock
Ships from and sold by Amazon.com.
+
$44.99
Get it as soon as Thursday, Jun 11
In Stock
Ships from and sold by Amazon.com.
+
$57.00
Get it as soon as Thursday, Jun 11
In Stock
Ships from and sold by Amazon.com.
Total price: $00
To see our price, add these items to your cart.
Details
Added to Cart
Choose items to buy together.

Customers also bought or read

Loading...

From the brand


From the Publisher

B32363_Module 4
Generative AI with Langchain, Second Edition
From the authors - Ben Auffarth and Leonid Kuligin
Generative AI with Langchain - First Edition versus Second Edition

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: #95,803 in Books (See Top 100 in Books)
  • Customer Reviews:
    4.5 out of 5 stars (61)

About the authors

Follow authors to get new release updates, plus improved recommendations.

Customer reviews

4.5 out of 5 stars
61 global ratings
Felt a bit deceived!
2 out of 5 stars
Felt a bit deceived!
Says “In color” but it has no color! The structure of the book is not very clear. It feels it is trying to cover all topics but there is no flow in the book or examples.
Thank you for your feedback
Sorry, there was an error
Sorry we couldn't load the review

Top reviews from the United States

  • 5 out of 5 stars
    An excellent book.
    Reviewed in the United States on April 4, 2026
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    This book provides a systematic introduction to how to develop agents, covering various aspects of the field. It is truly outstanding.

    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Amazing
    Reviewed in the United States on January 17, 2026
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    This is a great read. I enjoyed everything about this book - the content, the writing. There are a few typos, but apart from this, it is great for anyone working with LangChain.

    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 4 out of 5 stars
    A good introduction to agenticAI
    Reviewed in the United States on October 15, 2025
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Worth reading with the Github code on the screen

    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Modern LLM Practical Guide
    Reviewed in the United States on July 15, 2025
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Generative AI with LangChain is a comprehensive, technically rich, and highly practical guide for developers and architects building LLM applications. it elaborates LangGraph—a powerful orchestration framework built on top of LangChain—and teaches how to use it to build structured, multi-agent workflows capable of reasoning, coordination, and error recovery. One of its greatest strengths lies in demystifying the journey from prototype to production by introducing scalable design patterns that incorporate advanced techniques like retrieval-augmented generation (RAG), hybrid search, re-ranking, and fact-checking. Readers are guided through intelligent agent construction using LangGraph’s node and edge abstractions, bringing determinism and modularity to systems that are otherwise probabilistic and fragile. A major focus of the book is showing how to architect robust workflows that go beyond one-shot queries or simple chatbots. It includes examples of specialized agents for tasks such as data analysis and software development—use cases that are increasingly being adopted across industries. Moreover, the book doesn’t shy away from difficult topics like observability, monitoring, and testing in dynamic LLM environments. Concepts such as latency tracing, model output evaluation, and prompt governance are treated as essential, not optional. For teams concerned with responsible AI practices, there’s also guidance on embedding security, compliance, and ethical development into the system design from the outset. While it assumes basic Python skills, it remains friendly to intermediate readers, and the advanced topics will be particularly valuable for experienced teams working on critical production systems. Overall, this second edition serves as a field guide for anyone serious about building intelligent, scalable, and trustworthy generative AI applications. It is an essential resource for moving from lab experiments to reliable deployments, offering practical blueprints for architecting AI agents that can reason, interact, and perform in real-world enterprise environments. Whether you're working solo or as part of a cross-functional platform team, The inclusion of multi-agent coordination patterns—where multiple agents can specialize, delegate, and hand off tasks—offers a glimpse into what the future of enterprise AI may look like. this book will give you the patterns, tools, and confidence to deliver LLM-powered solutions that are not only smart, but stable and secure.

    4 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Great Resource for those working for Lang Chain
    Reviewed in the United States on August 26, 2025
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I'm working on building some AI products for work. This has been a great resource to learn how to properly leverage LangChain and LangGraph when building AI products using GenAI.

    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Practical, Updated Guide for Agent Development with LangChain
    Reviewed in the United States on July 17, 2025
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I read the first edition and liked the foundational overview, but the second edition really shines when it comes to building with agents. It goes beyond concepts and dives into actual agent development, how to integrate tools, enable multi-step reasoning, and build workflows that do more than just respond to prompts. The real-world examples, especially around question answering and task automation, helped connect the dots for me. If you’re serious about using LangChain to build functional, dynamic LLM apps, this edition is a must-read.

    3 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Just getting started with this book... and already building things!
    Reviewed in the United States on June 11, 2025
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I’ve just started reading this book and diving into the hands-on labs, but I’m really impressed! As I’m not a Python expert or a professional AI engineer, I find this book easy to follow. The explanations are clear and practical, and the labs make it easy to start building things right away. All needed is explained in a way that makes sense without being overwhelming (at least that's my view). As I'm progressing through this book, I'm learning not just what the tools do, but how and when to use them in real-world examples. Highly recommended this well-written resource to anyone curious about building stuff with LangChain.

    3 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 2 out of 5 stars
    Felt a bit deceived!
    Reviewed in the United States on June 26, 2025
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Says “In color” but it has no color! The structure of the book is not very clear. It feels it is trying to cover all topics but there is no flow in the book or examples.

    Felt a bit deceived!
    Felt a bit deceived!
    2 out of 5 stars
    Felt a bit deceived!
    Reviewed in the United States on June 26, 2025

    Says “In color” but it has no color! The structure of the book is not very clear. It feels it is trying to cover all topics but there is no flow in the book or examples.

    6 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.

Top reviews from other countries

  • 5 out of 5 stars
    Great book, I recommend it
    Reviewed in Spain on December 5, 2025
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    The best book for learning langchain and langgraph

    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Practical Read
    Reviewed in Canada on June 12, 2025
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Only a fraction of the way through this book but it has been very helpful for understanding how to use this very powerful framework to accomplish things.

    Langgraph has been especially mind blowing after writing scrappy python code to organize everything.

    The book is even better when you consider how daunting and unstructured langchain’s documentation can be. Would recommend for developers looking to understand practical design patterns for AI applications.

    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    What You Need
    Reviewed in the United Kingdom on July 28, 2025
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Very understandable and easy to follow.

    What You Need
    5 out of 5 stars
    What You Need
    Reviewed in the United Kingdom on July 28, 2025

    Very understandable and easy to follow.

    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    I recommend it
    Reviewed in Germany on February 7, 2026
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I have read some books about agentic Ai. This one belongs to the group I recommend. It is focused on Lang chain, but also contains plenty of base knowledge to start with.

    Where it could improve is to show more knowledge about agentic Ai patterns.

    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Pretty good for beginners and intermediate
    Reviewed in Germany on January 9, 2026
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    It’s really nice book I like it and I like the fact that you get an online version of it unfortunately the examples are not that advanced so it’s good for intermediate or beginners but if you’re looking for like building a huge product this is not gonna help you it just explains the basics and the Intermediate techniques like it opens the doors for you but it doesn’t provide advanced techniques for complex use cases this is my honest review. Please note that I didn’t complete the book. I wrote this review only after reading the first three chapters, so you have to judge that for yourself

    Sending feedback...
    Thanks, we'll investigate in the next few days.