Kindle Price: $40.79

Save $10.20 (20%)

These promotions will be applied to this item:

You have subscribed to ! We will pre-order your items within 24 hours of when they become available. When new books are released, we’ll charge your default payment method for the lowest price available during the pre-order period.
Update your device or payment method, cancel individual pre-orders or your subscription at
Your Memberships & Subscriptions
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

Follow the author

Something went wrong. Please try your request again later.

Generative AI with LangChain: Build large language model (LLM) apps with Python, ChatGPT, and other LLMs Kindle Edition

4.3 4.3 out of 5 stars 52 ratings

Get to grips with the LangChain framework from theory to deployment and develop production-ready applications.

Code examples regularly updated on GitHub to keep you abreast of the latest LangChain developments.

Purchase of the print or Kindle book includes a free PDF eBook.

Key Features

  • Learn how to leverage LLMs’ capabilities and work around their inherent weaknesses
  • Delve into the realm of LLMs with LangChain and go on an in-depth exploration of their fundamentals, ethical dimensions, and application challenges
  • Get better at using ChatGPT and GPT models, from heuristics and training to scalable deployment, empowering you to transform ideas into reality

Book Description

ChatGPT and the GPT models by OpenAI have brought about a revolution not only in how we write and research but also in how we can process information. This book discusses the functioning, capabilities, and limitations of LLMs underlying chat systems, including ChatGPT and Bard. It also demonstrates, in a series of practical examples, how to use the LangChain framework to build production-ready and responsive LLM applications for tasks ranging from customer support to software development assistance and data analysis – illustrating the expansive utility of LLMs in real-world applications.

Unlock the full potential of LLMs within your projects as you navigate through guidance on fine-tuning, prompt engineering, and best practices for deployment and monitoring in production environments. Whether you're building creative writing tools, developing sophisticated chatbots, or crafting cutting-edge software development aids, this book will be your roadmap to mastering the transformative power of generative AI with confidence and creativity.

What you will learn

  • Understand LLMs, their strengths and limitations
  • Grasp generative AI fundamentals and industry trends
  • Create LLM apps with LangChain like question-answering systems and chatbots
  • Understand transformer models and attention mechanisms
  • Automate data analysis and visualization using pandas and Python
  • Grasp prompt engineering to improve performance
  • Fine-tune LLMs and get to know the tools to unleash their power
  • Deploy LLMs as a service with LangChain and apply evaluation strategies
  • Privately interact with documents using open-source LLMs to prevent data leaks

Who this book is for

The book is for developers, researchers, and anyone interested in learning more about LLMs. Whether you are a beginner or an experienced developer, this book will serve as a valuable resource if you want to get the most out of LLMs and are looking to stay ahead of the curve in the LLMs and LangChain arena.

Basic knowledge of Python is a prerequisite, while some prior exposure to machine learning will help you follow along more easily.

Table of Contents

  1. What Is Generative AI?
  2. LangChain for LLM Apps
  3. Getting Started with LangChain
  4. Building Capable Assistants
  5. Building a Chatbot like ChatGPT
  6. Developing Software with Generative AI
  7. LLMs for Data Science
  8. Customizing LLMs and Their Output
  9. Generative AI in Production
  10. The Future of Generative Models
Popular Highlights in this book

From the Publisher

B21269_1
B21269-2

Why is now the ideal time to explore LangChain with this new book?

We’re witnessing massive innovation in the world of language models. These models wield immense power, though we are still learning how to harness it. This marks a pivotal juncture for the community to start coalescing around a common set of reusable tools that unlock the potential of LLM-powered applications to change the world. While crafting this book, I’ve thought hard about where the added value of generative AI is, how LLM apps can be used, and what kind of innovations could be defining the industry in the coming years, many of which have to do with the tools and integrations that LangChain enables.

B21269-3

What key LangChain developments does this book demystify?

To make LangChain approachable yet empowering, this book explores how LangChain abstracts LLM complexities while exposing knobs for advanced customization. Going beyond the fundamentals of LangChain and simplifying LLM app development through its reusable building blocks, this book also addresses more complex concepts such as agents and chains, which help enhance applications through feedback loops, conditioning techniques, and even fine-tuning. Finally, the book discusses deployment, metrics, and techniques for production use.

B21269 - 4

What sets this book apart from other LangChain resources?

While there are blog posts and other resources available, they are of mixed quality and perspective. These fragmented introductory resources cover LangChain fundamentals, but this book provides a unique advantage by equipping you with multifaceted mastery. It combines conceptual foundations, real-world implementations, and customization techniques for end-to-end proficiency. The blend of theory and hands-on examples bridges the gap between the basics and expert techniques. Core concepts are elucidated through intuitive explanations and applied case studies spanning diverse domains like information extraction, summarization, and chatbots. This multidimensional coverage of concepts, implementations, and customization delivers distinct value beyond what is offered by the fragmented introductory materials. With this book, you’ll gain advanced skills to deeply understand LangChain and mold it to your applications.

Generative AI with LangChain Building LLM Powered Applications - comparison chart Transformers
Generative AI with LangChain Building LLM Powered Applications Transformers for Natural Language Processing and Computer Vision - Third Edition
Customer Reviews
4.3 out of 5 stars
52
4.4 out of 5 stars
8
4.0 out of 5 stars
35
Price $63.99 $63.99 $69.99
Who Is This Book For? Developers, researchers, and anyone interested in staying ahead of the curve with LLMs and LangChain Software engineers, data scientists, and researchers who want hands-on guidance to build LLM apps Data scientists and NLP, CV, and ML engineers looking to advance their LLM and GenAI skills
Goals and Learning Outcomes Get guidance on the LangChain framework and learn to deploy LLM apps in production environments Gain foundational knowledge and learn how to use LLMs in an ethical and responsible way Learn how to use NLP, CV, and GenAI, focusing on transformers and their applications across domains
Tools Used LangChain, ChatGPT, Llama 2, StarCoder, Streamlit GPT 3.5, GPT 4, LangChain, Llama 2, Falcon LLM, StarCoder, Streamlit Hugging Face, ChatGPT, GPT-4V, DALL-E 2, DALL-E 3, Google Trax, Gemini, BERT, RoBERTa

Product description

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.

Product details

  • ASIN ‏ : ‎ B0CBBL55PQ
  • Publisher ‏ : ‎ Packt Publishing; 1st edition (Dec 22 2023)
  • Language ‏ : ‎ English
  • File size ‏ : ‎ 8980 KB
  • Text-to-Speech ‏ : ‎ Enabled
  • Screen Reader ‏ : ‎ Supported
  • Enhanced typesetting ‏ : ‎ Enabled
  • X-Ray ‏ : ‎ Not Enabled
  • Word Wise ‏ : ‎ Not Enabled
  • Print length ‏ : ‎ 548 pages
  • Customer Reviews:
    4.3 4.3 out of 5 stars 52 ratings

About the author

Follow authors to get new release updates, plus improved recommendations.
Ben Auffarth
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

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 of thousands of transactions per day, and trained neural networks on millions of text documents. He resides in West London with his family, where you might find him in a playground with his young son. He co-founded and is the former president of Data Science Speakers, London.

Customer reviews

4.3 out of 5 stars
52 global ratings

Top reviews from Canada

There are 0 reviews and 0 ratings from Canada

Top reviews from other countries

Heena Chouhan
5.0 out of 5 stars Must have book for LLM and Generative AI
Reviewed in the United States on March 24, 2024
Verified Purchase
"Generative AI with LangChain" offers a timely exploration of the evolving landscape of language models, particularly in the context of LangChain's transformative potential. Auffarth adeptly navigates the complexities of LLM-powered applications, providing a comprehensive guide for both beginners and seasoned developers alike.

The book demystifies key LangChain developments by abstracting LLM complexities while empowering readers with advanced customization options. From fundamental concepts to intricate techniques like agents and chains, Auffarth equips readers with the tools necessary to enhance applications and navigate production deployment effectively.

What sets this book apart is its multifaceted approach, bridging theory with hands-on examples across diverse domains like information extraction and chatbots. By combining conceptual foundations with real-world implementations, Auffarth ensures readers gain not only a deep understanding of LangChain but also the skills to tailor it to their specific applications.

"Generative AI with LangChain" stands out among existing resources by offering a comprehensive, well-rounded exploration of LangChain's capabilities. Auffarth's expertise shines through in his intuitive explanations and applied case studies, making this book an invaluable resource for anyone looking to harness the power of language models in their projects.
Customer image
Heena Chouhan
5.0 out of 5 stars Must have book for LLM and Generative AI
Reviewed in the United States on March 24, 2024
"Generative AI with LangChain" offers a timely exploration of the evolving landscape of language models, particularly in the context of LangChain's transformative potential. Auffarth adeptly navigates the complexities of LLM-powered applications, providing a comprehensive guide for both beginners and seasoned developers alike.

The book demystifies key LangChain developments by abstracting LLM complexities while empowering readers with advanced customization options. From fundamental concepts to intricate techniques like agents and chains, Auffarth equips readers with the tools necessary to enhance applications and navigate production deployment effectively.

What sets this book apart is its multifaceted approach, bridging theory with hands-on examples across diverse domains like information extraction and chatbots. By combining conceptual foundations with real-world implementations, Auffarth ensures readers gain not only a deep understanding of LangChain but also the skills to tailor it to their specific applications.

"Generative AI with LangChain" stands out among existing resources by offering a comprehensive, well-rounded exploration of LangChain's capabilities. Auffarth's expertise shines through in his intuitive explanations and applied case studies, making this book an invaluable resource for anyone looking to harness the power of language models in their projects.
Images in this review
Customer image
Customer image
2 people found this helpful
Report
Kowsalya
5.0 out of 5 stars [MUST READ] A Comprehensive Guide to Generative AI with Langchain
Reviewed in India on April 1, 2024
Verified Purchase
"Generative AI with Langchain" by Dr. Ben Auffarth is a convergence of artificial intelligence and Generative AI. Its a comprehensive guide for both beginners and experts in the data science field. Dr Ben Auffarth had meticulously crafted this book which serves as a valuable resource for those delving into the realms of Generative AI.
One of the most commendable aspects of this book is its content structure and its readability. Despite the complexity of the subject, the author explained the intricate concepts in a clear and concise manner, making it suitable for readers with varying levels of technical expertise. Irrespective of whether you are an expert AI researcher or a beginner to the field, you'll find valuable insights to deepen your understanding of Generative AI and Langchain. This book also talks about the recipe for building a chatbot like ChatGPT for enterprise, leveraging the capabilities of external knowledge sources/domain specific data via Retrieval Augmented Generation(RAG). This also emphasise on customizing the LLMs via Supervised Finetuning(SFT), Prompt Engineering(PE).
This book is a starter kit for those who intend to build LLM based applications by leveraging the Langchain as an orchestrator for their application. This book also outlines the limitations of the current LLM models and ways to mitigate them for our specific use cases. By showcasing how Langchain can be used to generate different modalities like text, images, videos and speech, the book inspires readers to push the boundaries of what's possible with AI-driven creativity. This book also uncovers the need for going beyond the stochastic parrots of LLM models by harnessing the Langchain framework.

In summary, Generative AI with Langchain" is a must-read for anyone interested in exploring the fascinating world of Generative AI. Ben Auffarth alongside their lucid writing style and focus on fostering creativity, renders this book an invaluable asset for researchers, practitioners, and enthusiasts alike. Whether you seek to enhance your comprehension of AI or ignite your creative spark, this book is sure to make a lasting impact. I highly recommended this book.
2 people found this helpful
Report
Amazon Kunde
2.0 out of 5 stars LLM with LangChain
Reviewed in Germany on February 25, 2024
Verified Purchase
A very promising title. However not that much systematics, instead lots of Python source code.
dr t
5.0 out of 5 stars A valuable resource
Reviewed in the United Kingdom on February 24, 2024
Verified Purchase
Today, Generative AI and Large Language Models (LLMs) are reshaping the world. LangChain is a framework for developing applications powered by language models. This book has, therefore, arrived at exactly the right time, is insightful, and delves into the critical role of LangChain in builing LLM-powered applications.

The book comprises of ten distinct chapters. The author starts by introducing generative models, explaining transformers, the theory behind them, and the evolution of AI. The author then moves into more complex, LangChain-orientatated, discussions exploring a range of topics including setting up LangChain, building chatbots, automation in data science, and the complexities of deploying real-world generative AI applications. There is a wealth of valuable content contained within, much of which comprises crucial information, particularly considering contemporary issues and challenges.

The author is adept at articulating intricate ideas in a clear manner. For example, the author offers a beginner-level explanation of getting started with LangChain, including the code for doing so. This approach of providing the code and describing it allows readers to gain hands-on experience and a deeper understanding of the concepts being discussed. If there is a minor gripe, it is that much of the code examples rely on OpenAI.

In summary, Generative AI with LangChain is an informative read. The author has managed provide a practical guide for one of the key tools of today. Whether you are a developer, or someone who is just interested in understanding LangChain, this book is a valuable resource.
One person found this helpful
Report
hawkinflight
5.0 out of 5 stars Great for getting started w/LLM apps
Reviewed in the United States on January 5, 2024
Verified Purchase
I have not used LangChain before, and I am looking at this book to learn how to create an LLM app. I am really looking forward to trying it out for all three types of apps covered in the book - assistants/chatbot, code generation, and data science. The book is clear and straight to the point, so I expect to be able to try these out fairly quickly. I have gotten through the "setting up the dependencies" section. I cloned the book's github repo, and I tried three methods for variety's sake to create a python environment: pip, conda, and Docker, all on Windows, and I believe I have them all set up. I hit some bumps, but I was able to follow the onscreen error messages and get past them. For pip, I needed to install MSFT Build Tools to get C++. For the conda case, I had to modify the yaml file for two of the packages - ncurses and readline, which have different names for Windows. In Chapter 2 there is a comparison of LangChain with other frameworks, from which you get a feel that choosing LangChain at this moment is the best choice. I am happy to have found this book, and I can't wait to proceed w/the next steps. It's a lot of fun to be able to interact w/LLMs.
3 people found this helpful
Report

Report an issue


Does this item contain inappropriate content?
Do you believe that this item violates a copyright?
Does this item contain quality or formatting issues?