System Configuration
This section provides a step by step instruction on how the blueprints are deployed once the Cluster Software Reference stack has been deployed and configured.
Assumptions
- The environment has egress to the internet enabled
Pre-requisites for installing RAG and AI-Q
- A Kubernetes Cluster with a supported version installed with NVIDIA GPU Operator and NVIDIA Network Operator installed, which should already be in place if the NVIDIA Software Enterprise RA is followed.
- Active Subscription to NVAIE and Access to the NGC Enterprise Catalog. Please generate and download your nvcr.io access token in NGC.
- Account in Tavily and an Access token to Tavily API, this will be needed for AI-Q to run internet search agent
- Install Helm in the Kubernetes Cluster and download the helm CLI. This should have been installed if the Software Enterprise RA is followed.
- Access to Kubernetes Clusters config file and
kubectlCLI installed, this file is in the Enterprise RA cluster BCMe head node under /<user>/.kube/config - A default Storage Class is defined to create Persistent Volume Claims by Kubernetes, this can be an NFS or Block-based storage class, the storage class name is default.
- Ability to create two namespaces in the Kubernetes cluster. rag, aiq
Deploy and Configure RAG Blueprint
NVIDIA RAG Blueprint can be deployed in multiple ways, for the purpose of this document and respect to the Enterprise Software Reference Architecture we are using Helm as the deployment method. For detailed information on Helm and how to deploy RAG using Helm, refer to the NVIDIA Github Repository here. For Helm-specific deployment steps, refer to the deploy-helm documentation. From the system that has access to the Kubernetes API and has Helm deployed, run the following on the command prompt
Export the NGC API KEY
Create a directory for RAG, CD to it and fetch the RAG repo
Add the appropriate Helm Repos to the cluster
Change the directory
create a namespace for RAG
Update the default values from RAG Helm chart to work with RTX PRO 6000 BSE GPUs, copy and paste the default values file to a new file name in the rag/deploy/helm folder called values-2gpu-rtxpro6000.yaml. The detailed YAML file for this config is provided in Appendix A, RAG Config, below are key things to update in the file
Ensure under the NIM section, the model is updated with Nemotron 49B v1.5 with the right NIM profile for RTX PRO with fp8 precision
Also, if needed you can provide a specific node in the cluster to deploy rest of the RAG components
Install RAG using Helm
Update Helm Dependencies
At this point RAG has been deployed and configured, the pods for RAG nim-llm-0 will be deployed, these pods will take a few minutes to go into “running” state along with other components and also the RAG server and nim-llm will have services created in Kubernetes with cluster IP. We need to make sure that the RAG server and the NIM LLM have IP addresses that can be reached by the benchmarking RAG tool. For this exercise we used External Loadbalancing IPs for both these services, you can do the same
Edit the NIM-LLM service, RAG server to use Load Balancing IP
At this point the setup should have the RAG pipeline deployed with all its components in Milvus in a standalone fashion.
Deploy and Configure AI-Q Blueprint
We are deploying the NVIDIA AI-Q blueprint from Github Repo here.
Clone the Git Repo into a folder called aiq
Set environment variables, on the system from which you are installing AI-Q
Create a namespace:
Add the AI-Q helm chart
We need to change the default Helm Values file for our system, copy the values.yaml file in the folder under deploy/helm/aiq-aira to a file called values-rtx-pro-6k.yaml in the deploy/helm folder. We will be editing the file to make some key changes.
Update the nim-llm section to point to the version of the latest version of NIM with the correct profile for RTX PRO 6000 BSE GPUs
Detailed config YAML for AI-Q is provided in Appendix B of this document
Deploy the AI-Q Helm Chart
Once AI-Q has been deployed, make sure all the pods are up and running.
We then need to make the frontend and the NIM-llm pod available with an IP so we can reach it from outside the cluster. We also need to expose the Phoenix pod to trace the benchmarking tests as well as the instruct-llm in AI-Q
By now we should have AI-Q deployed and all the services loadbalanced. We are now going to ingest two datasets within the system using NeMo Retriever extraction.
Ingesting Enterprise Data for Research
RAG and AI-Q blueprint have been configured and deployed, we now need to ingest Enterprise files, data that can be used by AI-Q to conduct deep research. This will be done using NeMo Retriever extraction, an open source library that is part of the RAG pipeline. Individual files can be added to RAG in a single Collection, or multiple collections can be created as well. The AI research assistant demo web application requires two default collections. One collection supports a biomedical research prompt and contains reports on Cystic Fibrosis. The second supports a financial research prompt and contains public financial documents from Alphabet, Meta, and Amazon. To load these default collections, apply the standalone Kubernetes job:
Set the RAG_INGEST_URL environment variable based on your RAG deployment. First we need to port forward the rag ingestor service
On the same node where RAG_INGEST_URL was set above, create a Python environment with the correct dependencies:
Copy the Enterprise zip files intended for user research into the current directory for upload. These files will be ingested into the RAG system, enabling AI-Q users to conduct in-depth research.
This folder already has the default Financial and Bio Medical Collection needed for the benchmarking of this folder
Run the ingest:
By now the RAG and AI-Q have been installed and the data needed for deep research is already embedded and ingested into Milvus.