From the course: Oracle Cloud Infrastructure Generative AI Professional Cert Prep
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Demo: Using memory - Oracle Cloud Infrastructure Tutorial
From the course: Oracle Cloud Infrastructure Generative AI Professional Cert Prep
Demo: Using memory
(dramatic music playing) - In this demonstration, we will see how to use langchain memory. So as usual, we begin with the import of the classes, some of the important classes that we'll be using here, are conversation buffer memory and conversation summary memory. And as usual, we create an LLM using OCI Gen AI Service. So we also create the chat prompt template over here. So we have a system message, which is giving an instruction to the model that we want it to be a chat bot who explains it's steps. And we're creating a variable so that we can input a question. Next thing is we create a memory using the conversation buffer memory class. So here we are passing in the memory key, which is chat_history. So the chain can use this particular key to put the contents into the memory or retrieve the contents from the memory. And we're also setting return messages as true because we want the memory to return its content as messages. Now, in addition to the conversation buffer memory, we are…
Contents
-
-
-
-
-
-
(Locked)
Module introduction54s
-
(Locked)
Chatbot introduction1m 16s
-
(Locked)
Demo: Chatbot7m 25s
-
(Locked)
Q&A chatbot architecture and basic components2m 31s
-
(Locked)
Models, prompts, and chains4m 15s
-
(Locked)
Demo: Set up development environment2m 44s
-
(Locked)
Demo: Use prompts, models, and chains10m 22s
-
(Locked)
Extending a chatbot by adding memory1m 52s
-
(Locked)
Demo: Using memory5m 47s
-
(Locked)
Demo: Using memory with Streamlit5m 59s
-
(Locked)
Extending a chatbot by adding RAG and a vector database2m 5s
-
(Locked)
Demo: RAG: Indexing using a vector database5m 24s
-
(Locked)
Demo: RAG: Retrieval and generation using a vector database5m 12s
-
(Locked)
Extending a chatbot by adding RAG plus memory45s
-
(Locked)
Demo: RAG plus memory plus tracing8m 43s
-
(Locked)
Demo: Model evaluation7m 19s
-
(Locked)
Chatbot technical architecture1m 41s
-
(Locked)
Deploy a chatbot to a VM2m 16s
-
(Locked)
Demo: Deploy a chatbot6m 19s
-
(Locked)
Deploy a chatbot to OCI Data Science1m 49s
-
(Locked)
-