Bestseller
Cover of Generative AI with LangChain 2nd edition
4.5 (171 reviews)

Generative AI with LangChain

2nd Edition

Build production-ready LLM applications and advanced agents using Python and LangGraph. The go-to guide for developers building real-world generative AI systems.

Published May 2025 · Packt Publishing

LLM app developmentLangChain & LangGraphRAG pipelinesProduction agents
Buy on Amazon

About this book

This second edition tackles the challenge facing companies in AI today: moving from prototypes to production. Fully updated for the latest LangChain ecosystem, it captures how modern AI systems are developed, deployed, and scaled in enterprise environments, with a focus on multi-agent architectures, LangGraph workflows, and advanced retrieval-augmented generation (RAG) pipelines.

You'll explore design patterns for agentic systems, with practical multi-agent setups for complex tasks. It covers reasoning techniques such as Tree-of-Thoughts, structured generation, and agent handoffs, with error-handling examples throughout. Expanded chapters on testing, evaluation, and deployment show how to build secure, compliant AI systems with safeguards built in. RAG coverage grows with hybrid search, re-ranking, and fact-checking pipelines for more accurate output.

Whether you're extending existing workflows or architecting multi-agent systems from scratch, the book gives you the technical depth and practical instruction to ship LLM applications in production.

Highlights

  • Bridge the gap from prototype to production with LangGraph agent architectures
  • Apply production practices for testing, observability, and monitoring
  • Build specialized agents for software development and data analysis
  • Free PDF eBook included with every print or Kindle purchase

What you'll learn

  • Design and implement multi-agent systems using LangGraph
  • Build testing strategies that catch issues before deployment
  • Deploy observability and monitoring for production environments
  • Build agentic RAG systems with re-ranking
  • Architect scalable AI agents using LangGraph and MCP
  • Work with the latest models from Google Gemini, Anthropic, Mistral, DeepSeek, and OpenAI
  • Design secure, compliant AI systems aligned with responsible-AI practices

Who this book is for

For developers, researchers, and teams learning LangChain and LangGraph, with a focus on enterprise deployment patterns. The second edition expands beyond individual developers to support engineering teams and decision-makers working on LLM strategy at scale. A basic understanding of Python is required; familiarity with machine learning helps.

Inside the book

  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

What Readers Are Saying

Selected reader reviews for "Generative AI with LangChain: 2nd Edition"

"A structured and practical roadmap for building production-ready AI systems using modern LLM frameworks. Great stuff."

Shanthababu Pandian, Data & AI Architect

"The book is even better when you consider how daunting and unstructured LangChain's documentation can be. Recommended for developers looking to understand practical design patterns for AI applications."

Steven Clarke, verified purchase

"A useful title that leans towards deployable software, a bonus in a sea of material that usually stays within notebook development."

E. Leonard

"The best book for learning LangChain and LangGraph."

Verified purchase, Spain

Related reading

Product details

Author
Ben Auffarth, Leonid Kuligin
Publisher
Packt Publishing
Published
23 May 2025
Edition
2nd
Language
English
Print length
476 pages
ISBN-13
978-1837022014