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.
Extending a chatbot by adding memory - Oracle Cloud Infrastructure Tutorial
From the course: Oracle Cloud Infrastructure Generative AI Professional Cert Prep
Extending a chatbot by adding memory
(logo chiming) - [Hemant] So what is memory in the context of Chatbot and LangChain? Ability to store information is memory. We'll use memory to store past interactions. For example, we'll store a list of prior questions asked and their responses in the memory. This is called Azure Chat History. Chains that support memory interacts with memory twice. When we ask a question, and before chain sends it to the LLM, chain retrieves the conversation, that is a series of chat messages from a memory using a key, and passes it to the LLM along with the question. This provides additional context to the LLM. And once chain receives a new answer to the latest query, chain writes back the query and answer to the memory. This way, the memory is kept up to date. LangChain offers a variety of memory types. It all depends on what is returned from the memory. For example, we may use a chain that returns a summary of the contents of the memory instead of actual contents of the memory. When multiple…
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)
-