Create a RAG Chatbot Using NVIDIA AI Workbench

NVIDIA Developer · Beginner ·🔍 RAG & Vector Search ·1y ago

Key Takeaways

Create a retrieval-augmented generation (RAG) chatbot using NVIDIA AI Workbench, a unified developer toolkit for creating, testing, and customizing pretrained AI models on NVIDIA RTX-powered AI workstations. The demo showcases local and self-hosted microservice inference modes using the hybrid RAG project on GitHub.

Full Transcript

welcome to Nvidia AI workbench demo for hybrid retrieval augmented generation project on GitHub this project allows you to run a rag application that can use different sources for inference from GPU on a local machine to a cloud endpoint or a self-hosted microservice this demo is done on a workstation powered by Nvidia RTX 6000 Ada gpus it shows how to do inference in two different modes local and self host microservice for this demo we assume that you have the AI workbench installed on a system with gpus and you have a GitHub account we start on GitHub with hybrid rack project this is a git repository with the code and environment configuration required to build and use the project we then clone it in AI workbench AI workbench pulls the repository to the local machine and builds the containerized environment which includes jupyter lab for development Environ and gradio app for using the rag application once the container builds the Open chat button turns green and you can click it to start the gradio app the chat app has three inference modes for rag local cloud and self-hosted microservice the workstation used in the demo has Nvidia gpus so I start with the local inference option I start the rack server and then select Lama 38b at 4bit Precision once the model downloads I can start the inference server which runs directly on the GPU on the workstation note that this video is significantly sped up for the purpose of the demo it takes about 3 minutes to complete the initial setup once the server is ready I get a message saying that service reachable and happy chatting I say hello to make sure model is up and running and I ask a question about Nvidia Blackwell super chip launch since Nvidia Blackwell details are not included in the models training data there is some hallucination this isn't necessarily a flaw it's expected for factual queries on topics that are not covered in model training data rag is a way of providing a model with appropriate context so that it can better answer this kind of query to show improvements rack and offer I add a PDF for nvidia's Blackwell architecture the rag application extracts the text and embeds it into the vector database where the data is embedded stored and ready for query when Vector database is disabled question comparing blackw and Hopper architectures yield inaccurate answers however enabling the vector database results in accurate responses additionally using the show context feature allows to see the direct text llm uses for generating responses providing a clear retrieval context to perform remote inference Begin by switching to a self-hosted microservice on the chat app ensure that you have an NGC account for accessing the Nim and generate the API key for authentication use the latest image from NGC catalog to take advantage of most recent updates and improvements after that log into Docker and run the Nim container in the chat app enter the required details for containerized models such as IP address and the model itself follow the same steps as local inference note that the vector database is agnostic of the inference mode and provides responses for all modes enabling Vector database results in more accurate responses thank you for watching our demo on setting up hybrid rag using Nvidia AI workbench on a Workstation

Original Description

In this video, you’ll learn how to create your own retrieval-augmented generation (RAG) chatbot using NVIDIA AI Workbench. With this unified, easy-to-use developer toolkit, you can create, test, and customize pretrained AI models on NVIDIA RTX-powered AI workstations. Start your AI projects locally on workstations and scale them effortlessly to any data center or cloud with just a few clicks. Start your AI projects locally on workstations and scale them effortlessly to any data center or cloud with just a few clicks. Learn more about NVIDIA AI Workbench: https://www.nvidia.com/en-us/deep-learning-ai/solutions/data-science/workbench/ Learn more about NVIDIA RTX-powered AI Workstations: https://www.nvidia.com/en-us/ai-data-science/workstations/ Join the NVIDIA Developer Program: https://nvda.ws/3OhiXfl Read and subscribe to the NVIDIA Technical Blog: https://nvda.ws/3XHae9F #RTXWorkstation #AIWorkstation #AIWorkbench #RAGchatbot
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from NVIDIA Developer · NVIDIA Developer · 0 of 60

← Previous Next →
1 Ray Tracing Essentials Part 2: Rasterization versus Ray Tracing
Ray Tracing Essentials Part 2: Rasterization versus Ray Tracing
NVIDIA Developer
2 Ray Tracing Essentials Part 3: Ray Tracing Hardware
Ray Tracing Essentials Part 3: Ray Tracing Hardware
NVIDIA Developer
3 Ray Tracing Essentials Part 4: The Ray Tracing Pipeline
Ray Tracing Essentials Part 4: The Ray Tracing Pipeline
NVIDIA Developer
4 NsightGraphics 2020 2 Release Spotlight
NsightGraphics 2020 2 Release Spotlight
NVIDIA Developer
5 Ray Tracing Essentials Part 5: Ray Tracing Effects
Ray Tracing Essentials Part 5: Ray Tracing Effects
NVIDIA Developer
6 Ray Tracing Essentials Part 6: The Rendering Equation
Ray Tracing Essentials Part 6: The Rendering Equation
NVIDIA Developer
7 Ray Tracing Essentials Part 7: Denoising for Ray Tracing
Ray Tracing Essentials Part 7: Denoising for Ray Tracing
NVIDIA Developer
8 Spatiotemporal Importance Resampling for Many-Light Ray Tracing (ReSTIR)
Spatiotemporal Importance Resampling for Many-Light Ray Tracing (ReSTIR)
NVIDIA Developer
9 Announcing Cloud-Native Support for Jetson Platform
Announcing Cloud-Native Support for Jetson Platform
NVIDIA Developer
10 JetsonTV: Build your next project with NVIDIA Jetson
JetsonTV: Build your next project with NVIDIA Jetson
NVIDIA Developer
11 Nsight Compute Feature Spotlight: Roofline Analysis, Asynchronous Copy, Sparse Data Compression
Nsight Compute Feature Spotlight: Roofline Analysis, Asynchronous Copy, Sparse Data Compression
NVIDIA Developer
12 Nsight Systems Feature Spotlight: OpenMP
Nsight Systems Feature Spotlight: OpenMP
NVIDIA Developer
13 Isaac Sim 2020: Deep Dive
Isaac Sim 2020: Deep Dive
NVIDIA Developer
14 NVIDIA Jetson: Enabling AI-Powered Autonomous Machines at Scale
NVIDIA Jetson: Enabling AI-Powered Autonomous Machines at Scale
NVIDIA Developer
15 NVIDIA Tools to Train, Build, and Deploy Intelligent Vision Applications at the Edge
NVIDIA Tools to Train, Build, and Deploy Intelligent Vision Applications at the Edge
NVIDIA Developer
16 Jetson Xavier NX Developer Kit: The Next Leap in Edge Computing
Jetson Xavier NX Developer Kit: The Next Leap in Edge Computing
NVIDIA Developer
17 Synthesizing High-Resolution Images with StyleGAN2
Synthesizing High-Resolution Images with StyleGAN2
NVIDIA Developer
18 NVIDIA Robotics: Isaac SDK and Sim 2020.1
NVIDIA Robotics: Isaac SDK and Sim 2020.1
NVIDIA Developer
19 Accelerating COVID-19 Research with GPUs
Accelerating COVID-19 Research with GPUs
NVIDIA Developer
20 Visualizing 150 Terabytes of Data
Visualizing 150 Terabytes of Data
NVIDIA Developer
21 Boosting Performance and Utilization with Multi-Instance GPU
Boosting Performance and Utilization with Multi-Instance GPU
NVIDIA Developer
22 Running Multiple Workloads on a Single A100 GPU
Running Multiple Workloads on a Single A100 GPU
NVIDIA Developer
23 NVIDIA Nsight Feature Spotlight: GPU Trace
NVIDIA Nsight Feature Spotlight: GPU Trace
NVIDIA Developer
24 Spark 3 Demo: Comparing Performance of GPUs vs. CPUs
Spark 3 Demo: Comparing Performance of GPUs vs. CPUs
NVIDIA Developer
25 NVIDIA Jetson Nano Wins Edge AI and Vision Alliance Award
NVIDIA Jetson Nano Wins Edge AI and Vision Alliance Award
NVIDIA Developer
26 NVIDIA IndeX on Google Cloud Platform Marketplace
NVIDIA IndeX on Google Cloud Platform Marketplace
NVIDIA Developer
27 DeepStream SDK: Best practices for performance optimization
DeepStream SDK: Best practices for performance optimization
NVIDIA Developer
28 Efficiently Deploying GPU Accelerated 5G CloudRAN for Edge AI Inferencing
Efficiently Deploying GPU Accelerated 5G CloudRAN for Edge AI Inferencing
NVIDIA Developer
29 NVIDIA PhysicsNeMo - Accelerating Scientific & Engineering Simulation Workflows with AI
NVIDIA PhysicsNeMo - Accelerating Scientific & Engineering Simulation Workflows with AI
NVIDIA Developer
30 NVIDIA Deep Learning Institute Instructor-Led Training Available Remotely
NVIDIA Deep Learning Institute Instructor-Led Training Available Remotely
NVIDIA Developer
31 Advancing AR Glasses
Advancing AR Glasses
NVIDIA Developer
32 Blender Cycles: RTX On
Blender Cycles: RTX On
NVIDIA Developer
33 Real-Time GPU-Accelerated Data Analytics of 250 million Flight Data Records of 737 Max grounding
Real-Time GPU-Accelerated Data Analytics of 250 million Flight Data Records of 737 Max grounding
NVIDIA Developer
34 Assessing Property Damage with AI
Assessing Property Damage with AI
NVIDIA Developer
35 RAPIDS: GPU-Accelerated Data Analytics & Machine Learning
RAPIDS: GPU-Accelerated Data Analytics & Machine Learning
NVIDIA Developer
36 DaVinci Resolve Turns RTX On
DaVinci Resolve Turns RTX On
NVIDIA Developer
37 RAPIDS with Plotly Dash : GPU-Accelerated Census 2010 Visualization
RAPIDS with Plotly Dash : GPU-Accelerated Census 2010 Visualization
NVIDIA Developer
38 NVIDIA IndeX for arivis5D Cloud Platform
NVIDIA IndeX for arivis5D Cloud Platform
NVIDIA Developer
39 NVIDIA Backchannel: Behind the Scenes of Marbles at Night RTX
NVIDIA Backchannel: Behind the Scenes of Marbles at Night RTX
NVIDIA Developer
40 NVIDIA Backchannel: Sneak Peek into Marbles RTX in Omniverse
NVIDIA Backchannel: Sneak Peek into Marbles RTX in Omniverse
NVIDIA Developer
41 How to Create "Paint" in Substance Painter
How to Create "Paint" in Substance Painter
NVIDIA Developer
42 Accelerate AI development for Computer Vision on the NVIDIA Jetson with alwaysAI
Accelerate AI development for Computer Vision on the NVIDIA Jetson with alwaysAI
NVIDIA Developer
43 Securing Next Generation Apps over VMware Cloud Foundation with Bluefield-2 DPU
Securing Next Generation Apps over VMware Cloud Foundation with Bluefield-2 DPU
NVIDIA Developer
44 Accelerated Data Centers with NVIDIA and VMware
Accelerated Data Centers with NVIDIA and VMware
NVIDIA Developer
45 GPU-Accelerated Motion Blur in Blender Cycles
GPU-Accelerated Motion Blur in Blender Cycles
NVIDIA Developer
46 NVIDIA Clara Guardian Virtual Patient Assistant
NVIDIA Clara Guardian Virtual Patient Assistant
NVIDIA Developer
47 Revolutionizing Supercomputing with NVIDIA UFM Cyber-AI
Revolutionizing Supercomputing with NVIDIA UFM Cyber-AI
NVIDIA Developer
48 Inventing Virtual Meetings of Tomorrow with NVIDIA AI Research
Inventing Virtual Meetings of Tomorrow with NVIDIA AI Research
NVIDIA Developer
49 Learning a Contact-Adaptive Controller for Robust, Efficient Legged Locomotion
Learning a Contact-Adaptive Controller for Robust, Efficient Legged Locomotion
NVIDIA Developer
50 Getting started with Jetson Nano 2GB Developer Kit
Getting started with Jetson Nano 2GB Developer Kit
NVIDIA Developer
51 NVIDIA Jetson Developer Community AI Projects
NVIDIA Jetson Developer Community AI Projects
NVIDIA Developer
52 Open-source projects on NVIDIA Jetson Nano 2GB Developer Kit
Open-source projects on NVIDIA Jetson Nano 2GB Developer Kit
NVIDIA Developer
53 Real-Time Ray Tracing with Project Lavina
Real-Time Ray Tracing with Project Lavina
NVIDIA Developer
54 Jetson AI Fundamentals - S1E2 - Hello Camera
Jetson AI Fundamentals - S1E2 - Hello Camera
NVIDIA Developer
55 Develop Optimized Conversational AI Models with NVIDIA NeMo on DGX A100
Develop Optimized Conversational AI Models with NVIDIA NeMo on DGX A100
NVIDIA Developer
56 Jetson AI Fundamentals - S1E4 - Image Regression Project
Jetson AI Fundamentals - S1E4 - Image Regression Project
NVIDIA Developer
57 Jetson AI Fundamentals - S2E1 - JetBot Intro and Hardware
Jetson AI Fundamentals - S2E1 - JetBot Intro and Hardware
NVIDIA Developer
58 Jetson AI Fundamentals - S2E2 - JetBot Software Setup
Jetson AI Fundamentals - S2E2 - JetBot Software Setup
NVIDIA Developer
59 Jetson AI Fundamentals - S1E1 - First Time Setup with JetPack
Jetson AI Fundamentals - S1E1 - First Time Setup with JetPack
NVIDIA Developer
60 Jetson AI Fundamentals - S1E3 - Image Classification Project
Jetson AI Fundamentals - S1E3 - Image Classification Project
NVIDIA Developer

Create a RAG chatbot using NVIDIA AI Workbench and learn how to implement local and self-hosted microservice inference modes. Improve query accuracy using vector databases and understand LLM training data limitations.

Key Takeaways
  1. Clone the hybrid RAG project from GitHub
  2. Build the containerized environment using AI Workbench
  3. Start the Gradio app and select the inference mode
  4. Download and start the Llama 38b model
  5. Add a PDF for context and enable the vector database
  6. Test the chatbot with factual queries
  7. Switch to self-hosted microservice and authenticate using NGC account
💡 Using vector databases can significantly improve the accuracy of RAG chatbot responses, especially for factual queries on topics not covered in the model's training data.

Related Reads

📰
Beyond Search: Building Knowledge Nexus — The Future of AI-Powered Enterprise Intelligence
Learn how to build an enterprise-grade RAG platform that turns static PDFs into an interactive Knowledge Graph, enabling AI-powered enterprise intelligence
Medium · Machine Learning
📰
From Documents to Intelligent Answers: Building a RAG Agent from Scratch & Lessons Learned
Learn to build a RAG agent from scratch and discover key lessons for creating intelligent answer systems
Dev.to · Sri Deevi
📰
Your RAG Eval Isn't Flaky. Your Retrieval Is Non-Deterministic.
Learn why your RAG evaluation may be returning different results despite using the same query, documents, and model, and how to address non-deterministic retrieval
Dev.to · Vasyl
📰
Reciprocal Rerank Fusion (RRF): The Simple, Powerful Way to Combine Keyword + Semantic Search in RAG
Learn how to combine keyword and semantic search in RAG using Reciprocal Rerank Fusion (RRF) for improved search results
Dev.to · Christopher S. Aondona
Up next
4. Indexing PDF using Vector + Semantic Search in Azure AI Search with Document Intelligence | Chunk
Dewiride Technologies
Watch →