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: RAG plus memory plus tracing - Oracle Cloud Infrastructure Tutorial
From the course: Oracle Cloud Infrastructure Generative AI Professional Cert Prep
Demo: RAG plus memory plus tracing
(intro music playing) - In this demo, we'll use retrieval-augmented generation with memory. We'll also see how to trace LAngChain calls with LangSmith. So let begin with the import of the classes. Imported class here is ConversationalRetrievalChain, which allows us to use rag with memory. We'll use Chroma of Vector db. We'll also use OCIGenAI service and OCIGenAIEmbeddings. Using this block of code, we enable the tracing of LAngChain calls to LangSmith. You can learn more about LangSmith on this page. You'll need to create an account and create an API key. Next we create an LLM using OCIGenAI class. We create HTTP client, which will connect to Chromedb server. We create embeddings using OCIGenAI embeddings. We create chroma vector db using client and embeddings. We create a retriever out the vector db by using as a retriever model. We are passing in search type as similarity, and the search box as {"K":8}, which will fetch the top eight documents. Next we create a conversational…
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)
-