Deploy the RAG Ingestion Pipeline
For multimodal enterprise data with tables, charts and images deploy the NeMo Retriever (NV-Ingest) NIM microservices with Multi-Instance GPU (MIG) using supported GPU profiles or Run:ai (timeslicing) GPU Fractions on Kubernetes. The Nemo Retriever (NV-Ingest) data extraction workloads are more CPU intensive and NIM microservices require only a slice or fraction of GPU at time.
The RAG ingestion pipeline requires a minimum of 3 nodes in order to deploy NeMo Retriever (NV-Ingest) (with Embedding and Extraction NIM microservices) and Milvus (Distributed) vector DB installed separately. Milvus (Distributed) requires a minimum of 3X etcd nodes with fast local NVME disks. The RAG ingestion pipeline requires nodes with sufficient compute, both GPU and CPU/Memory (RAM):
- Minimum 2 GPUs; Total: 4-8 GPUs for ingestion scaling and benchmarking
- Per node CPU / Memory (RAM): 64 cores (vCPUs)/ 256GB RAM.
For an Enterprise RA 2-8-5-200 cluster of RTX PRO 6000 or H200 NVL with 16 nodes, 128 GPUs, carve out 3 worker nodes with a maximum of 4-8 GPUs for RAG ingestion scaling and benchmarking. RAG ingestion workloads are more CPU/Memory bound than GPU bound. On these 3 nodes, carve out a subset of 4-8 GPUs and configure MIG profiles or Run:ai GPU fractions. Deploy NeMo Retriever Embedding NIM, Extraction NIM and Milvus Vector DB indexing services are deployed on MIG instances or Run:ai GPU fractions with Bin packing.

Deploy the NeMo Retriever (NV-Ingest) with Helm with Embedding and Extraction NIM microservices using either MIG profiles or Run:ai GPU fractions as defined below. Deploy Milvus (Distributed) with data node using MIG profile or Run:ai GPU fraction defined below:
Then use NV-Ingest client to perform RAG ingestion benchmarking and/or accuracy evaluation with multimodal enterprise dataset e.g. digital corpora (bo767 dataset). Increase document concurrency and scale out NIM microservices on additional MIG instances or Run:ai GPU fractions to increase the document ingestion rate.
Configure MIG
The Enterprise RA 2-8-5-200 cluster of RTX PRO 6000 or H200 NVL consists of 1 to 8 scalable units (SUs) of 4 nodes with 32 GPUs each. For a single SU (4 nodes) enable MIG on a single node: 3 nodes full GPUs and 1 node MIG.
To enable MIG on a single node with multiple RTX PRO 6000 in a Kubernetes cluster, use or create a custom MIG configuration by following steps below (similar to RAG blueprint MIG deployment guide):
Step 1: Set GPU Operator MIG strategy
When installing or upgrading the GPU Operator set the MIG strategy to mixed to support a
subset of GPUs with MIG enabled on the node.
single: (default) same MIG config is enabled on all GPUs on the node.mixed: different MIG config is enabled on GPUs on the node.
Update or patch an existing GPU operator’s ClusterPolicy MIG strategy to mixed:
Step 2a: Create custom MIG configMap and apply
To enable mixed MIG config on only 4 X RTX PRO 6000 in a Kubernetes cluster, create a custom MIG configuration by following steps below (similar to RAG blueprint MIG deployment guide).
Create a custom MIG configuration configMap for RTX PRO 6000 => mig-config-rtx6k.yaml as shown below:
Apply the configMap mig-config-rtx6k.yaml in the GPU operator namespace.
Then patch the clusterPolicy so that the MIG manager uses the new configMap
rtx6k-mig-config:
Step 2b: Use a predefined mixed MIG configMap profile
MIG Manager uses the default-mig-parted-config config map in the GPU Operator
namespace to identify supported MIG profiles.
Choose an existing mixed MIG profile e.g. [all-balanced](https://docs.nvidia.com/datacenter/cloud-native/gpu-operator/latest/gpu-operator-mig.html#example-mixed-mig-strategy) that can be applied to all 8 X RTX
PRO 6000 on the node:
Step 3a: Label the node with the custom MIG config label
Cordon and drain the node before updating the MIG config label, to ensure the GPUs are not in use when apply the MIG config:
Label the node with the MIG config label nvidia.com/mig-rtx6k-4x1g24-2x1g24:
Verify that the MIG config was applied to the node:
Step 3b: Label the node with the predefined MIG config label
Label the node with the MIG config label nvidia.com/all-balanced:
Verify that the MIG config was applied to the node:
Verify MIG configuration with nvidia-smi:
Step 4: Remove MIG config on the node
By default, nodes are labeled with nvidia.com/mig.config:all-disabled.
To disable MIG on the node update the label:
Configure Run:ai
To deploy Run:ai along with Kubernetes on the Enterprise RA using the guide below or follow Run:ai installation on self hosted cluster using Helm:
NVIDIA Software Reference Stack and automation for Enterprise RA - Run:ai on Vanilla Kubernetes: NVOnline: 1142319
Once Run:ai is deployed on the Enterprise RA 285-200 Kubernetes cluster, configure Run:ai for RAG deployment using the following steps.
Step 1: Connect to the Run:ai user interface (UI)
Connect to the run:ai user interface by opening the browser to the Run:ai DNS resolvable Fully Qualified Domain Name (FQDN) used when installing the control plane and login using the cluster admin credentials defined at installation.
For example: [https://runai.era285.nvidia.com/](https://runai.era285.nvidia.com/)
Step 2: Label Run:ai worker nodes
Label Run:ai worker nodes to be used for RAG ingestion workloads with a custom label e.g.
runai=rag-ingest:
To remove a node from Run:ai worker pool, unset the label on the node:
Step 3: Create a NodePool
By default all nodes in the Run:ai cluster are allocated to the default nodepool and available for AI workload deployment.
Create a new NodePool “rag-ingest” using the API or UI. Set the NodePool Label to the
Label Key and Value, runai=rag-ingest, defined in the previous step to label the 3
worker nodes that will be used to deploy the ingestion workloads.
For the rag-ingest nodepool use the placement strategy as Bin Packing instead of Spread to ensure the GPUs are efficiently packed and workloads are not spread across multiple GPUs resulting in additional spare capacity.
More nodes can be added to the nodepool by setting the node label runai=rag-ingest.
In the UI navigate to Resources>Nodepools and click +NEW NODEPOOL as shown below:

Step 4: Create a Project
Create new project ‘rag’ which creates a new namespace runai-rag.
And assign the rag-ingest nodepool with a Quota of 2-8 GPUs. For benchmarking purposes,
disabled Over Quota to avoid NIM microservices getting additional Fairshare (Over Quota)
capacity if available.

Step 5: Create Credentials or user secrets
For the Run:ai Project ‘rag’ (namespace ‘runai-rag’) create docker registry secret ‘ngc-secret’ for NGC catalog authentication and the NGC API secret for pulling container images from NGC catalog using the Run:ai UI or API.
Create a docker registry secret ngc-secret for Authentication to NGC catalog.
Create the nvcr.io docker registry secret (can be done via run:ai UI):
- URL=nvcr.io
- username=‘$oauthtoken’
- password=$NGC_API_KEY (Get key here)

Create generic secret ngc-api to pull images from specific Orgs
With KEY-VALUE pairs for NGC_API_KEY and NVIDIA_API_KEY
As shown below using NVIDIA Org key:

MIG: NeMo Retriever (NV-Ingest) with MIG Profiles
Deploy NeMo Retriever Helm chart with custom MIG values files using MIG profiles for RTX PRO 6000 or H200 NVL configured on a subset of nodes in the cluster in the previous section. Nemo Retriever (NV-Ingest) Helm chart deploys all NIM microservices using NIM Service and NIM Cache. Use a custom MIG Helm values file with MIG profiles for each NIM as shown below.
Later deploy the Milvus Helm chart with data node on MIG profiles as shown below:
Deploy NeMo Retriever (NV-Ingest) pipeline with RTX PRO 6000 MIG profiles as shown below and scale out NV-Ingest server and NIM microservices when increasing NV-Ingest client document ingestion concurrency = 32, 64, 96,128:

Deploy NeMo Retriever (NV-Ingest) pipeline with H200 NVL MIG profiles as shown below and scale out NV-Ingest server and NIM microservices when increasing NV-Ingest client document ingestion concurrency = 32, 64, 96,128:

Step 1: Create a custom MIG values file
To deploy with MIG create a custom MIG values file for RTX PRO 6000 (or H200 NVL) to
deploy Embedding NIM and Extraction NIM microservices with MIG profiles and CPU/Memory
allocation as shown below => nvingest-mig-values.yaml:
The NIM Service by default creates a Kubernetes ClusterIP service for every NIM deployment
that enables only internal (within cluster) access to the NIM instance or pod. This works fine
for the extraction of NIM microservices, since they are only invoked by the NV-Ingest server.
For Embedding NIM, expose the service as service.type: LoadBalancer; this assigns an
external IP to the service. The Enterprise RA Kubernetes cluster uses MetalLB to provide a
LoadBalancer service IP for the NIM Services.
For the NIM service enable metrics to create a serviceMonitor for each NIM service and
send metrics to Prometheus. For the serviceMonitor set the appropriate release label
to match the Prometheus deployment: release: kube-prometheus-stack.
Enable tracing by setting Open Telemetry (OTEL) endpoint to the Jaeger collector
(http://rag-opentelemetry-collector:4318) deployed in the cluster.
For Nemotron Embedding, expose the metricsPort: 8002 in addition to the API port 8000.
For extraction NIM microservices expose the grpcPort: 8001.
For extractions NIM microservices, ensure that the OMP_NUM_THREADS and
NIM_TRITON_MAX_BATCH_SIZE: 32 are configured as defined in the Helm values file for each
NIM.
For NV-Ingest, set the environment variables (envVars) for defining the number of workers
and CPU/Memory resources allocated: MAX_INGEST_PROCESS_WORKERS: 32,
NV_INGEST_MAX_UTIL: 32. Define endpoints for Milvus(Distributed) and MinIO installed
independently. Verify endpoints for extraction & embedding NIM microservices. Enable
LoadBalancer service so NV-Ingest service IP can be externally accessed. Specify the MinIO
bucket name (NV-Ingest) used for holding embeddings for bulk ingestion. Increase the
ephemeral disk size to 64GiB (tmpDirSize: 64Gi) to store temporary data to avoid pod
eviction if exceeded during scale benchmarking with high concurrency.
For Redis (master and replica statefulSet) verify endpoint and port used, as well as allocate
sufficient memory (12GiB) for handling large document batch sizes >100 to avoid Kubernetes
OOM-kill. Enable sufficient persistence storage for faster access use fast block storage like
longhorn.io storageClass: longhorn.
Enable OpenTelemetry collector for Jaeger and/or Zipkin.
See example nvingest-rtx-mig-values.yaml in Appendix: MIG - NeMo Retriever
(NV-Ingest) with MIG custom Helm values file.
Step 2: Deploy Nemo Retriever (NV-Ingest) with Helm
Deploy NeMo Retriever (NV-Ingest) with Helm using custom MIG values file
nvingest-mig-values.yaml:
To uninstall Nemo Retriever (NV-Ingest) using Helm:
Step 3: Verify NIM microservices deployed on MIG
Verify NIM microservices are deployed and running using kubectl get pods.
Verify NIM microservices with MIG profiles on RTX PRO 6000 using nvidia-smi:
Step 4: Scale NIM microservices and NV-Ingest on MIG
To scale out NV-Ingest microservice or NIM deployment pods use kubectl scale and specify
number of replica pods. When scaling out Extraction and Embedding NIM microservices, roll out all NV-Ingest pods.
Limitation: NV-Ingest gRPC reset
Currently, NV-Ingest uses gRPC long lived TCP connections to connect the NIM services. When scaling out new NIM microservices, NV-Ingest uses old existing gRPC connections to services and new NIM microservices are not used at all or only used by newly scaled-out NV-Ingest replicas/pods.
To reset the gRPC connections, restart all pods in the NV-Ingest deployment when scaling out NIM microservices. This issue will be addressed in a future release of Nemo Retriever (NV-Ingest).
Run:ai: NeMo Retriever (NV-Ingest) with GPU Fractions
Deploy NeMo Retriever Helm chart with custom Run:ai values files in the Project rag in
runai-rag namespace using the rag-ingest nodePool nodes configured in the
previous section. Configure GPU fractions for each NIM as shown below.
Later deploy the Milvus Helm chart with data node in the Project rag in runai-rag
namespace with 0.25 GPU fraction as shown below:

Run:ai v2.24 supports deploying Helm charts with resource requests or limits for GPU Fractions in Run:ai enabled namespaces.
For example, the Milvus Helm chart with data node request for 0.25 GPU can be deployed
directly in the run:ai Project ‘rag’, namespace runai-rag created in the previous section.
The Milvus dataNode deployment will be scheduled on one of the Run:ai nodes in
rag-ingest nodePool using the runai-scheduler (timeslicing):
Deploy NeMo Retriever (NV-Ingest) in the runai-rag namespace defined in the previous
section.
Limitation: Run:ai with NIM Operator
NeMo Retriever (NV-ingest) Helm chart deploys NIM microservices using NIM Operator with
NIM Service and NIM Cache, which does not enable Run:ai deployment annotations required for
Run:ai scheduler. Run:ai support for Helm charts with NIM service is planned for a future
release. In the interim, manually deploy NIM microservices using Kubernetes manifest
(kubectl apply).
For Run:ai v2.25, deploy NeMo Retriever (NV-Ingest) in the runai-rag namespace with NIM
microservices deployment disabled (skip NIM service for NIM microservices). Then use
kubectl apply to deploy a custom Run:ai NIM deployment manifest file. In the pod
template add:
- labels for the project:
ragand - annotations for
runai-nodepools: rag-ingestandgpu-fraction: "0.5" - set
runai-scheduler(schedulerName: runai-scheduler) in thepod template.spec
Step 1: Create a custom Run:ai values file and deploy
To deploy with Run:ai create a NeMo Retriever (NV-Ingest) custom Helm values file to deploy
NV-Ingest and Redis but disable deploying Embedding NIM and Extraction NIM microservices
with NIM service => nvingest-runai-values.yaml.
Set the NIM endpoints to match the service names defined in the NIM manifest file.
See example nvingest-runai-values.yaml in Appendix: Run:ai 1 - NeMo Retriever
(NV-Ingest) with custom Helm values file.
Deploy NV-Ingest and Redis with nvingest-runai-values.yaml:
To uninstall NV-Ingest using Helm:
Step 2: Manually deploy NIM microservices using manifest file
To deploy NIM microservices create a custom Kubernetes manifest file for Embedding NIM
and Extraction NIM microservices => nvingest-runai-NIM-microservices-manifest.yaml.
For NIM deployment additional entities need to be created manually:
- Service using ClusterIP or LoadBalancer (external access)
- ServiceMonitor to send metrics to Prometheus/Grafana
- Enable OTEL tracing for Jaeger collector endpoint
- Enable autoscaling using the Horizontal Pod Autoscaler (HPA) when needed
See example nvingest-runai-NIM-microservices-manifest.yaml in Appendix:
Run:ai - NeMo Retriever (NV-Ingest) NIM manifest file.
To deploy NIM manifest file:
To delete/uninstall the NIM microservices and other entities in the NIM manifest file:
Step 3: Verify NIM microservices deployed on Run:ai
Run:ai UI Workload Dashboard shows all NIM microservices running.

Verify Run:ai scheduling with Bin Packing for NIM microservices using nvidia-smi:
Step 4: Scale NIM microservices and NV-Ingest on Run:ai
To scale out NV-Ingest or NIM deployment pods use kubectl scale and specify number of
replica pods:
When scaling out Extraction and Embedding NIM microservices, roll out all NV-Ingest pods:
Currently, NV-Ingest uses gRPC long lived TCP connections to connect the NIM services. When scaling out new NIM microservices, NV-Ingest uses old existing gRPC connections to services and new NIM microservices are not used at all or only used by newly scaled-out NV-Ingest pods which will use the new scaled out NIM pods. To reset the gRPC connections, restart all pods in the NV-Ingest deployment. (This issue will be addressed in a future release of NV-Ingest):
nvidia-smi output showing scaled deployment:
Install NV-Ingest client
For performance benchmarking the RAG ingestion pipeline use the NV-Ingest client directly from the NeMo Retriever extraction library. Install the NeMo Retriever extraction (NV-Ingest) application for enterprise data ingestion including: NV-Ingest server, Redis message broker, extraction NIM, Embedding NIM and Milvus Vector DB in the Kubernetes cluster using instructions provided in the Enterprise RAG deployment guide. The Embedding NIM, Extraction NIM microservices and Milvus data nodes can be deployed using either MIG profiles or Run:ai GPU fractions to enable efficient use of GPU resources.
For RAG ingestion benchmarking use the NV-Ingest client API to communicate with NV-Ingest server to upload enterprise documents for data extraction and ingestion into the vector DB. NV-Ingest client uses Ingestor python API to manage vector DB collections, create document request jobs to the NV-Ingest server (and Redis) and finally upload embeddings to vector DB.
NV-Ingest client can be installed from the NeMo Retriever extraction library; on the benchmarking server (outside the Kubernetes cluster) that will be used for sending dataset documents to the NV-Ingest server.
Setup the python environment and install the NV-Ingest client library on benchmarking server:
The benchmarking server needs sufficient CPU and Memory capacity to run high document concurrency using client workers= 96,192,128:
- Benchmarking server specs: CPU: 128 vCPU/cores, RAM Memory: 256GiB
Dataset - Download Enterprise dataset
To get started with the RAG data ingestion, download a multimodal enterprise dataset e.g digital_corpora bo767. The document source must be accessible from the benchmarking server.
More options of datasets for ingestion benchmarking and accuracy evaluation:
- Text-only: Wikipedia dataset (parquet files) => 5.9 M documents, 38M vector embeddings (chunk size 256/50, 2048dim X FP32)
- PDF text-only: Shakespeare Complete Works dataset => 44 documents, 9K embeddings
- PDF Multimodal dataset with text, table, charts, images: digital corpora (download bo767 ids) => 767 PDFs; 77K embeddings (pages: 54730, tables: 23323, total_charts: 7835, elements: 85,888)
Follow instructions in the ingestion notebook to download bo767 document ids and prepare for benchmarking ingestion.
Deploy Vector database (Milvus)
RAG blueprint deploys Milvus as the Vector DB in standalone mode with GPU acceleration for indexing and search. This is a single standalone node with single GPU that services both ingest and search requests. This may be fine for developer demos and small amounts of data (<50K vectors) but will not scale for enterprise usecases; where large amounts of data needs to be ingested and where hundreds of active users query the Enterprise RAG service simultaneously.
For Enterprise RAG, deploy Milvus Vector Database in Distributed mode, where ingest and search services can be scaled independently; and then add the endpoints to the RAG blueprint helm chart. Enable Milvus in hybrid GPU-CPU mode with GPU for index (cuVS) and CPU for search.
This guide focuses on deploying Milvus (Distributed) with Helm using GPU CAGRA (cuVS) for index and convert to CPU (HNSW) at load time for Search. Scale the Data (index) and Query (search) nodes based on ingestion and retrieval load. The nodes can scale independently based on Enterprise data ingestion rate and RAG Retrieval request rate (Vector DB queries per second). Data nodes are responsible for data index building and ingest, while the Query nodes are responsible for search and retrieval in response to user queries. Milvus’ high level architecture diagram is shown below.
During data ingestion, Index nodes are responsible for building the indexes before the data can be ingested and written to storage (MinIO object store or disk). Data nodes preprocess data and get it ready for Index nodes to build the indexing.

Deploy Milvus (Distributed) with GPU index and CPU search using MIG or Run:ai
- data node:
mig-1g.24gb
- data node:
mig-1g.18gb
Run:ai GPU fraction: 0.25 GPU
For baseline enterprise data of 1M vectors, allocate sufficient CPU/Memory for data and query nodes:
- Data node: Run:ai 0.25 GPU or MIG RTX PRO6K
mig-1g.24gb, 8 vCPU, 8 GiB RAM - Query node: 8vCPU, 10GiB RAM
- scale out query nodes to support more data, 10GiB RAM per 1M vectors (2048 di. X FP32)
For large enterprise with higher data scale of 10-20M vectors, scale up the data nodes and query nodes and added redundancy:
- 1-2 X Data node: 0.25 GPU (
mig-1g.24gb), [16 vCPU, 32 GiB RAM] - 3-5 X Query node: [16 vCPU / 40GiB RAM]
- Enable HPA to scale out query nodes to support more data, ~40GiB per 4M tokens (2048 di. X FP32)
Step 1: Create Helm custom values file
Create a custom Milvus Helm values file milvus-distributed-values.yaml with GPU
accelerated image v2.6.5-gpu.
Enable service as LoadBalancer to enable external access for Milvus and MinIO.
For MINIO define the credentials and bucket name ‘NV-Ingest’ for storing vector
embeddings for bulk upload to Milvus vector DB.
For Milvus ETCD update the storageClass for ETCD to use fast Block storage using CSI
longhorn.io and use default StorageClass nfs-client for all other components.
Enable metrics and tracing for the Milvus by setting Open Telemetry (OTEL) endpoint to the
Jaeger OTEL collector (http://rag-opentelemetry-collector:4318) deployed in the cluster.
Enable Milvus frontend ATTU deployment using NGINX ingress with FQDN and DNS
resolution e.g http://vdb.era285.nvidia.com. Use the web console to quickly check
Milvus status, number of nodes, collections and what is loaded.
Deploy Milvus (distributed) for large enterprise data of up to ~10-20M vectors. Configure resources for Milvus Data Node, responsible for GPU accelerated index building (GPU_CAGRA cuVS) and data ingestion, using Run:ai GPU fractions or MIG profiles for RTX PRO 6000 or H200 NVL, as shown below:
Configure sufficient resources for Milvus Query Node, responsible for Search and RAG retrieval, using CPU only (no GPU) to support Search for large enterprise data of up to ~20M vectors (2048 dim. X FP32). Enable HPA for autoscaling the Query node (CPU only), use 80% CPU and Memory utilization metrics to trigger autoscaling:
See Appendix MIG - Milvus distributed Helm custom values file => milvus-distributed-values.yaml.
Step 2: Deploy Milvus Distributed with Helm
Deploy Milvus distributed using custom Helm values file milvus-distributed-values.yaml.
Add the Milvus Helm repo and use Helm install to deploy:
Uninstall Milvus and remove all components. PVCs are not removed and need to be removed manually. Milvus can be uninstalled and ingested data is not lost. These can be reloaded from PVCs into Milvus when it is reinstalled.
Step 3: Verify Milvus Distributed deployment
Verify Milvus services and data, query and streaming nodes are up and running:
Step 4: View Vector DB status in dashboard or frontend console
Once Milvus is deployed successfully, run the NeMo Retriever (NV-Ingest) pipeline => use the NV-Ingest client to ingest test.pdf data and verify data ingestion in the Milvus web console.

Step 5: Scaling the Data/Index node
With enterprise document scale (>100K docs, >10M vectors) using high concurrency (Concurrent Requests CR > 500), scale Milvus Data Node manually to provide redundancy and parallel data upload and indexing.
Perform the following command increasing the number of replicas to the desired state. As the pods increase, they will consume a GPU from the underlying cluster nodes.
Deploy RAG Retrieval pipeline
The RAG Langchain server along with LLM NIM and Reranking NIM are deployed as part of the RAG Retrieval pipeline. The Reranking NIM needs to be scaled out with high concurrent requests (CR) or high query rates - requests per second (RPS) to the Retrieval pipeline. Reranking NIM typically requires full GPU allocation and needs to be scaled along with the LLM NIM with a ratio of Reranker:LLM as 1:8 or 1:4 (Summarization) to provide linear scaling efficiency.
Use NIM Cache and Service to deploy LLM NIM and Reranking NIM independently from the RAG blueprint and add the endpoints to the RAG blueprint.
This provides flexibility to upgrade NIM and RAG blueprint (RAG server Langchain server) independently. It provides ability to use multiple LLM models with the RAG pipeline and dynamically update the RAG server with new endpoints if needed.
Step 1: Create NIM Cache for Retrieval NIM microservices
Create NIM Cache for Retrieval NIM microservices including LLM, Reranking. NIM Cache stores the model in cache (default NFS storage) and enables faster scaling and autoscaling. A single cache can serve multiple pods of NIM Model. NIM cache enables scaling NIM microservices quickly since the models are already locally cached in a PVC in the cluster. It reduces the time for NIM microservices to be ready and available for service by 50-75% based on NIM model size.
Deploy the following YAML with kubectl, use the same Storage class name as created in the
Kubernetes Cluster. Configure NIM Cache config file for all NIM microservices
nimcache-retrieval.yaml.
Create NIM Cache for RAG Retrieval NIM microservices: LLM and reranking NIM microservices using full GPUs:
llama-3.3-nemotron-super-49b-v1.5:1.15.5llama-nemotron-rerank-1b-v2:1.11.0
For LLM NIM, NIM Cache needs to specify the model gpus.product name or profile to
match the GPU deployed in the cluster, along with engine, precision, tensor parallelism:
- RTX PRO 6000:
"RTX6000_BLACKWELL_SV", vLLM, NVFP4, TP1 - H200 NVL:
"H200_NVL", vLLM, FP8, TP1
NIM Cache for LLM NIM with model parameters for RTX PRO 6000 and H200 NVL:
LLM NIM on RTX PRO 6000:
LLM NIM on H200 NVL:
Allocate sufficient storage (20GB - 120GB) to cache the model parameters.
See Appendix NIM Cache for Retrieval NIM microservices for examples of NIM Cache for
LLM and Embedding NIM microservices => nimcache-retrieval.yaml.
Apply the nimcache-retrieval.yaml in the rag namespace:
This will take ~15 - 25 minutes to complete based on the size of the model, check the status when the caching service is ready by checking the pods status:
Once the NIM Cache is ready, the model is now available to deploy using a NIM Service.
Example below of NIM Cache config for NIM LLM when cache is ready and available for use with NIM Service, it shows the downloaded profile name with vLLM engine, NVFP4, TP1:
To delete the NIM Cache use kubectl delete nimcache. It deletes NIMCache CRD but
does not remove the PVCs attached:
Step 2: Deploy NIM Service for NIM microservices
NIM service will deploy a NIM pod, service, metrics monitoring and autoscaling (using HPA horizontal pod autoscaler) leveraging the NIM Cache downloaded in step above. NIM service is the actual inference service against which users can query the model.
Configure NIM Service NIMService-retrieval.yaml for all the NIM
microservices and provide the NIM Cache name to pull from when deploying the NIM Service.
Create the NIM Service for all NIM microservices to be deployed with RAG including LLM, embedding and reranking NIM microservices and Extraction NIM microservices and set resource requirements as full GPU or MIG as shown below:
llama-3.3-nemotron-super-49b-v1.5:1.15.5(full GPU)llama-nemotron-rerank-1b-v2:1.11.0(full GPU)
The NIM Service by default creates a Kubernetes ClusterIP service for every NIM deployment that enables only internal (within cluster) access to the NIM instance or pod; this is all that is needed for the extraction of NIM microservices, since they are only invoked by NV-Ingest server.
To provide external access to a NIM service:
- create an Ingress service with an external URL and DNS record
(
http://chat.era285.nvidia.com/v1/chat/collections) and use NGINX Ingress provider to route to the NIM service - expose the service using the MetalLB Load Balancer and use the LoadBalancer IP
For LLM NIM and Embedding NIM, expose the service as service.type: LoadBalancer;
this assigns an external IP to the service. The Enterprise RA Kubernetes cluster uses
MetalLB to provide a LoadBalancer service IP for the NIM Services.
For the NIM service enable metrics to create a serviceMonitor for each NIM service and
send metrics to Prometheus. For the serviceMonitor set the appropriate release label
to match the Prometheus deployment: release: kube-prometheus-stack.
To enable auto-scaling using the Horizontal Pod Autoscaler (HPA) for RAG services configure
scale.hpa and define the metric to use for autoscaling:
- LLM KV-cache utilization:
gpu_cache_usage_perc - Embedding and Reranking GPU utilization:
gpu_utilization
Enable tracing for the NIM service by setting Open Telemetry (OTEL) endpoint to the Jaeger
collector (http://rag-opentelemetry-collector:4318) deployed in the cluster.
For Nemotron Embedding, Reranking NIM microservices, expose the metricsPort: 8002 in
addition to the API port 8000. For extraction NIM microservices expose the grpcPort: 8001.
For extractions NIM microservices, set the OMP_NUM_THREADS and
NIM_TRITON_MAX_BATCH_SIZE: 32 as defined in the Helm values file for each NIM.
For LLM NIM, the NIM Service needs to limit context length: NIM_MAX_MODEL_LENGTH: 16384;
to fit model on a single RTX PRO 6000 GPU and specify the profile name (if multiple are
downloaded) to deploy which can be taken from the NIM Cache.
See Appendix NIM Service for Retrieval NIM microservices for examples of NIM service for
LLM and Embedding NIM microservices => NIMService-retrieval.yaml.
Apply the NIMService-retrieval.yaml file to rag namespace:
It will take ~3-12 minutes for LLM NIM and Reranking NIM to be READY for service. Time taken depends on the size of the model, check the status of the NIM service:
To delete the NIM service use kubectl delete NIMService. It deletes the
NIM deployment, pods and all services:
Step 3: Expose NIM Service with a Load Balancer
The NIM service can be exposed for external access by using the Ingress provider installed when building the Kubernetes Cluster or via MetalLB Load Balancer, here is an example of how to expose the service using the MetalLB Load Balancer.
If a NIM Service pod has been deployed using the default ClusterIP service, expose the service using a LoadBalancer service. Since the cluster is configured with MetalLB, Kubernetes will use this to create a service IP for the NIM Service:
Verify Kubernetes service in the rag namespace:
Step 4: Scaling the NIM Service
The NIM service deployment pods backing the NIM Service can be scaled manually or automatically using Horizontal Pod Autoscaler (HPA) to autoscale RAG services using NIM metrics.
To scale pods manually, run the following command increasing the number of replicas to the desired state. As the pods increase, they will consume a GPU from the underlying cluster nodes.
Deploy RAG Blueprint

The RAG ingestion pipeline including NeMo Retriever (NV-Ingest), Extraction NIM microservices and Embedding NIM are deployed using either MIG profiles or Run:ai GPU fractions. The Milvus Vector DB has been deployed with GPU-Index (MIG or Run:ai) and CPU-Search. The RAG Retrieval NIM microservices; LLM NIM and Reranking NIM have been deployed in the cluster using NIMCache/NIM Service.
Step 1: Create the RAG Blueprint custom Helm values file
All that’s left to deploy is the RAG blueprint with Helm charts using a custom value files
rag-values.yaml in the rag namespace.
This will deploy the RAG server (rag-server), which is the Langchain server that acts as
the data orchestrator for managing the sequence of all the requests and responses between
user and RAG services.
For the RAG retrieval pipeline, the RAG-server will need to have sufficient resources: CPU/Memory and worker threads, to support enterprise level user traffic with thousands of concurrent requests (CR) running simultaneous RAG queries and high request rates of several hundred requests per second (RPS).
Scale out the RAG server (rag-server) replicas with high load; high concurrency and high
request rates. It is typically recommended to scale out rag-server microservice along with
LLM, using rag-server:LLM ratio of 1:2 or 1:4 to handle high request rates.
Enable Ingress/GatewayAPI or Load Balancer service for rag-server, to enable access from outside the cluster.
In the RAG blueprint, disable all NIM microservices and Milvus deployments since these have been independently deployed already to provide better flexibility and customization to use MIG or Run:ai.
Define the endpoints for core services being called by the pipeline; including LLM NIM, Embedding NIM, Reranking NIM, Milvus Vector DB service and MinIO object store.
For NIM microservices and services deployed in a different namespace use FQDN DNS service name to define the endpoint:
For Run:ai deployment, the Embedding NIM, Milvus vector DB, MinIO object store and
NV-Ingest services are deployed in a different namespace runai-rag from the rag-server
(rag namespace) then when defining the endpoints, the DNS FQDN name including the
namespace must be provided:
For Milvus vector DB enable GPU-Index and CPU-Search hybrid mode. In this mode, Milvus
collections are created with GPU_CAGRA for indexing then at collection load time converted
(adapt_for_cpu) to CPU search (HNSW like). This requires the RAG server to set the EF
parameter for the Vector DB search query. EF Parameter controls query time/accuracy
trade-off. Higher EF leads to more accurate but slower search. EF needs to be >= Vector DB
topK (VDB_TOPK) search value:
Enable prometheus metrics and OpenTelemetry OTEL collector for collecting tracing data to send to Jaeger and/or zipkin.
For benchmarking purposes this guide uses the NeMo Retriever (NV-Ingest) to deploy the RAG ingestion pipeline. Hence disable deploying the ingestion pipeline from the RAG blueprint, disable NV-Ingest deployment in the RAG blueprint Helm chart.
Enable ingestor-server and frontend for basic validation and demo purposes not used for ingestion or retrieval benchmarking.
See Appendix RAG blueprint Helm custom values file for example RAG blueprint values file
=> rag-blueprint-values.yaml.
Step 2: Tuning for Performance and Scale
Performance benchmarking for Retrieval focuses on fine tuning and scaling the core elements (i.e. LLM NIM, Embedding NIM, Reranking NIM and Milvus Vector DB) in the RAG pipeline that are most responsible for delivering context-aware grounded responses. Non-core elements and parameters need to be disabled or turned off.
Disable citations for performance and scaling - Enabling citations adds additional overhead on the RAG server (and Ingestor Server) to include data on document chunks that were provided to the LLM and this increases the output response generated. Citations are required for Accuracy benchmarking to measure relevance and groundedness of the response from LLM but can be disabled for performance and scale validation. Enabling citations can adversely affect AI-perf performance benchmarking since the responses get very large and split into multiple files that cannot be parsed by the tool.
Disable Query Re-writer - Query-rewriter can improve accuracy to ensure that the user query is well defined, formatted correctly and has no extraneous characters but it adds overhead of an additional call to the LLM which almost double the latency given that LLM account for ~90% of the overall e2e request latency.
Turn-off multi-turn conversations - enabling multi-turn conversation adds more context overhead with context from the previous turn included in the next query, with up to 5 turns of data being included. This requires validation with the genAI-perf tool using user session mode and can include conversation from the last 2-5 turns. This can increase the User Query (prompt) ISL by up to 5 times and will be looked into for future Enterprise RAG benchmarking usecases. For this guide, the focus is single turn request-response for performance benchmarking.
Disable LLM Thinking and Reasoning - For LLM performance benchmarking, it is recommended to disable thinking and reasoning and filter out thinking tokens to avoid overhead from additional output tokens. LLM Llama-3.3-Nemotron-Super-49B is capable of more complex chain of thought reasoning but for performance benchmarking, disable thinking and use one-shot response to validate accuracy. Reasoning improves accuracy for complex queries but it will also generate additional thinking tokens and provide multiple solution options; increasing the output throughput but also increasing the e2e request latency for each user and this will limit the number of Concurrent Requests that can be supported.
Disable Reflection and Evaluator agent - Evaluator agent or Reflection agent is only used with Accuracy benchmarking to validate that the response from the LLM is accurate, grounded and relevant to the context provided.
Disable Guardrails - NeMo Retriever guardrails serve an important task to ensure content safety, topic control, PII detection, RAG enforcement (avoid hallucinations), and jailbreak prevention and enforce any policies. Guardrails are a must have for Enterprise-grade RAG applications. However for performance benchmarking NeMo Guardrails add overhead of an additional NIM call.
Disable citations, guardrails and query rewriting dynamically when sending HTTP POST API
requests to the RAG server API: /v1/chat/completions as option in the JSON payload:
Reranker ON/OFF - It is recommended to disable the Reranking NIM for improved performance when querying from a single collection. If querying from multiple collections or data sources; enable the Reranking NIM to filter out data chunks and send the LLM only the most relevant chunks.
Enable/disable Reranking dynamically when sending HTTP POST API requests to the RAG
server API: /v1/chat/completions as option in the JSON payload: "enable_reranker": false.
Step 3: Deploy RAG blueprint Distributed with Helm
Deploy RAG Blueprint using custom Helm values file rag-blueprint-values.yaml.
Add the NVIDIA blueprint Helm repo and use Helm install to deploy:
Uninstall RAG blueprint and remove all components:
Step 4: Verify RAG Blueprint deployment
Verify Milvus services and data, query and streaming nodes are up and running:
Install AI-Perf benchmarking tool
To benchmark the RAG Retrieval service install NVIDIA AIPerf benchmarking tool.
AIPerf creates multiple concurrent user requests using synthetic or user defined input prompts and these are sent to the RAG server service endpoint. AIPerf will process the responses received to calculate the metrics defined above for each user request.
For generating the user prompts it is important to use the right tokenizer to match the LLM model otherwise the metrics reported by AIPerf may be incorrect e.g. input ISL sent and OSL received may not match the configured ISL/OSL.
For LLM model nvidia/llama-3.3-nemotron-super-49b-v1, use the matching
tokenizer nvidia/Llama-3_3-Nemotron-Super-49B-v1 from Hugging Face.
AIPerf client can be installed by downloading the Triton server from NGC and deployed in a docker container. Triton Inference Server has the AI Perf tool in it.
Install the AIPerf client in Python venv (3.10+) on Ubuntu 24.04 server using pip. Install AI perf on Ubuntu 24.04 node in python venv and run from outside cluster:
The benchmarking server needs sufficient CPU and Memory capacity to run high concurrency, thousands of concurrent users:
- Benchmarking server specs: CPU: 128 vCPU/cores, RAM Memory: 256GiB
Run AI-Perf Benchmarking tool
Run a sample script below with synthetic data. Add prompt.jsonl with valid questions to append to synthetic data.
See sample GenAI-perf command below and basic script: