Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
ChatGPT for Conversational AI and Chatbots

You're reading from   ChatGPT for Conversational AI and Chatbots Learn how to automate conversations with the latest large language model technologies

Arrow left icon
Product type Paperback
Published in Jul 2024
Publisher Packt
ISBN-13 9781805129530
Length 250 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Adrian Thompson Adrian Thompson
Author Profile Icon Adrian Thompson
Adrian Thompson
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Part 1: Foundations of Conversational AI FREE CHAPTER
2. Chapter 1: An Introduction to Chatbots, Conversational AI, and ChatGPT 3. Chapter 2: Using ChatGPT with Conversation Design 4. Part 2: Using ChatGPT, Prompt Engineering, and Exploring LangChain
5. Chapter 3: ChatGPT Mastery – Unlocking Its Full Potential 6. Chapter 4: Prompt Engineering with ChatGPT 7. Chapter 5: Getting Started with LangChain 8. Chapter 6: Advanced Debugging, Monitoring, and Retrieval with LangChain 9. Part 3: Building and Enhancing ChatGPT-Powered Applications
10. Chapter 7: Vector Stores as Knowledge Bases for Retrieval-augmented Generation 11. Chapter 8: Creating Your Own LangChain Chatbot Example 12. Chapter 9: The Future of Conversational AI with LLMs 13. Index 14. Other Books You May Enjoy

Exploring LangChain memory

As we work with LLMs, a key challenge emerges as they cannot inherently recall past interactions. So, in essence, they are stateless. A stateless operation won’t persist information from one request to the next, which is a problem if you want to create a chatbot. The way around this is to add the full conversation to the context. The ChatGPT client itself will be passing the full conversation into each prompt as it progresses.

What we want our ChatGPT applications to do is offer stateful interactions where information is remembered across requests and sessions. To achieve this, we need to use a memory mechanism. Different representations of memory will then be included in an LLM prompt. This section is dedicated to exploring the concept of memory in the context of LLMs. We will delve into different types of memory and the challenges you’ll face in using memory with LLMs before taking a deep dive into how to use LangChain to provide memory...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image