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

Creating our agent for complex interactions

Our agent is going to be powered by tools that provide the functionality to meet our requirements. The main concept is that the agent will be able to take our question and use an LLM call to reason and split this task down into smaller tasks, while deciding which tools are appropriate to use to satisfy our request and deliver an answer to our question. The reasoning processes the agent uses areillustrated in the following diagram:

Figure 8.1 –  The agent’s reasoning process

Figure 8.1 – The agent’s reasoning process

Begin by creating a dedicated folder that will contain all the code for our agent. This will help organize our project files and make the code base easier to navigate. I’m going to name this folder streamlit, as it’s where we’ll create our Streamlit app later on.

Copy over the Chroma database we’ve created to store the vectors in this folder: path to your project\streamlit\chapter8db\.

Next...

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