> This page is for Enterprise RAG Deployment Guide.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/reference-architectures/llms.txt.

# Introduction

To deploy Enterprise-grade RAG in a production environment, enterprises need a certified
hardware reference architecture and a validated software stack where the RAG workload can
be reliably deployed at scale for optimal performance. The RAG Blueprint integrates multiple
NVIDIA NIM microservices as well as open source and third party software microservices.
These RAG components need to be deployed separately and fine tuned to scale in large
clusters of up to 32 nodes. This Enterprise RAG guide provides deployment
recommendations for the RAG services in the ingestion and retrieval pipelines at Baseline
scale and at high performance scale.

Hence there is a need for end-to-end validation of the RAG blueprint on the [NVIDIA AI Factory RTX PRO with NVIDIA RA 2-8-5 hardware cluster](/reference-architectures/rtx-pro-ai-factory) with Enterprise RA Kubernetes
platform stack (including BCM, NVIDIA AI Enterprise operators, Kubernetes, storage,
networking, observability and metrics) for both functionality and optimal performance.

Enterprises will need to determine how to right size and scale the RAG deployment to meet
the growing needs of their users. They need to know what parameters to tune, KPI metrics to
track and which component (LLM, Reranker, Vector DB) component to scale up or scale out
when they hit a bottleneck. They need to size their RAG solution; determine how many
servers and GPUs are needed based on the:

* Usecase: Chat or Summarization or Generation; this is defined by context length; ISL
  and OSL combination
* Number of Concurrent Requests (CR) and
* Maximum latency: Latency can vary for each usecase

## Scope

This guide provides best practices on how to deploy, scale and size RAG for Enterprise
deployments on Enterprise RA 2-8-5-200 with GPUs: [RTX PRO 6000](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/supported-mig-profiles.html#rtx-pro-6000-blackwell-mig-profiles) and [H200 NVL](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/supported-mig-profiles.html#h200-mig-profiles) GPUs
on a vanilla Kubernetes cluster.

Deploying RAG for Enterprise based on [NVIDIA RAG Blueprint](https://catalog.ngc.nvidia.com/orgs/nvidia/teams/blueprint/helm-charts/nvidia-blueprint-rag); identify potential bottlenecks;
provide sufficient resources to scale to thousands of concurrent requests.

Ingesting Data into a Vector database (VDB): How to deploy, scale and fine tune [NeMo Retriever Extraction](https://docs.nvidia.com/nemo/retriever/latest/extraction/overview/) ([GitHub](https://github.com/NVIDIA/nv-ingest)) and the Vector DB ([Milvus](https://milvus.io/)) index; How to deploy Milvus vector
DB with [NVIDIA cuVS](https://rapids.ai/cuvs/) for GPU accelerated indexing (CAGRA) and [CPU for search](https://docs.nvidia.com/rag/2.5.0/milvus-configuration.html#gpu-indexing-with-cpu-search);
understand the implication of chunk size and Vector DB size; How to bulk ingest thousands of
documents; How to measure ingestion performance with large amounts of data.

Retrieving data with multiple Concurrent Requests (CR) - What parameters to tune for the
RAG server (Langchain server), Large Language Models (LLM) and other [NeMo Retriever NIM microservices](https://developer.nvidia.com/nemo-retriever) (embedding, reranking); How to define the number of chunks (TopK) to
retrieve from the Vector database (VDB); Whether to enable the Reranking [NIM](https://docs.nvidia.com/nim-operator/latest/service.html); When to
scale Reranker and Milvus search (query) nodes; How to benchmark retrieval performance
with key metrics for latency and throughput.

Scaling and Sizing workloads on Enterprise RA: What are the benchmarking tools,
methodologies and KPI (key performance indicators) metrics for scaling one or more RAG
components (LLM, NIM microservices, VDB) on the Enterprise RA 2-8-5-200 cluster; while
scaling from 4 to 16 servers and 32 to 128 GPUs; How to size workloads based on number of
Concurrent Requests (CR) along with latency constraints and throughput requirements.

The RAG deployment provides best practices for deploying Enterprise-grade RAG ingestion
and retrieval pipelines in production environments.

NVIDIA 2-8-5-200 GPU Node and NVIDIA SpectrumX Platforms Enterprise Reference Architecture (ERA)

## Enterprise RAG Overview

For Enterprise RAG, this guide leverages [NVIDIA RAG Blueprint](https://catalog.ngc.nvidia.com/orgs/nvidia/teams/blueprint/helm-charts/nvidia-blueprint-rag) which provides an
end-to-end RAG solution that is fully customizable and easy to deploy for AI developers using
docker compose and for enterprise AI inference in Kubernetes clusters. It is available from
[NVIDIA NGC Catalog](https://catalog.ngc.nvidia.com/orgs/nvidia/teams/blueprint/helm-charts/nvidia-blueprint-rag) as a Helm chart that deploys multiple microservices (RAG server,
[Nemotron Text NIM microservices](https://developer.nvidia.com/nemo-retriever), [Nemotron Extraction: NIM microservices and NV-Ingest](https://github.com/NVIDIA/nv-ingest),
[Milvus Vector Database](https://milvus.io/), AI Agents, LLM, Observability tools for monitoring and tracing;
[Prometheus](https://prometheus.io/), [Open Telemetry](https://opentelemetry.io/) and [Zipkin](https://zipkin.io/)) in a Kubernetes cluster.

See table below for RAG workload baseline requirements:

| RAG service                                                                                                                                                                                          | RAG service summary                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Minimum Compute GPU/CPU/RAM                                                                                                              |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| Enterprise RAG                                                                                                                                                                                       | Summary of all RAG ingestion and retrieval services: rag-server, [NIM LLM](https://docs.nvidia.com/nim/large-language-models/1.15.0/), Embedding, Reranking, [NeMo Retriever Extraction](https://docs.nvidia.com/nemo/retriever/26.3.0/extraction/overview/) NIM microservices, NV-Ingest, [Milvus](https://milvus.io/docs/install_cluster-helm.md) Vector DB                                                                                                                                                                                                                                                                                                                                                                                                 | Baseline Total: 4 X GPUs, 40 vCPU, 200 GiB                                                                                               |
| RAG Blueprint                                                                                                                                                                                        | [RAG Blueprint](https://docs.nvidia.com/rag/2.5.0/index.html) ([github](https://github.com/NVIDIA/NeMo-Retriever) [v2.5.0](https://github.com/NVIDIA-AI-Blueprints/rag/releases/tag/v2.5.0) / [v2.4.0](https://github.com/NVIDIA-AI-Blueprints/rag/tree/v2.4.0)), 1 rag-server                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | 8 vCPU, 32GiB                                                                                                                            |
| NIM LLM                                                                                                                                                                                              | NIM LLM (Large Language Model), 1 NIM LLM [llama-3.3-nemotron-super-49b-v1.5](https://catalog.ngc.nvidia.com/orgs/nim/teams/nvidia/containers/llama-3.3-nemotron-super-49b-v1.5)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | RAG Retrieval only: 1 GPU, 1 vCPU, 64 GiB                                                                                                |
| Nemotron Embedding [NIM](https://docs.nvidia.com/nim-operator/latest/service.html)                                                                                                                   | [Text Embedding NIM](https://docs.nvidia.com/nim/nemo-retriever/text-embedding/latest/overview.html), 1 Embedding [NIM](https://docs.nvidia.com/nim-operator/latest/service.html) (2048 dims X FP32), [llama-nemotron-embed-1b-v2](https://catalog.ngc.nvidia.com/orgs/nim/teams/nvidia/containers/llama-nemotron-embed-1b-v2?version=1)                                                                                                                                                                                                                                                                                                                                                                                                                      | [Run:ai](https://run-ai-docs.nvidia.com/self-hosted/getting-started/overview) / MIG: 0.5 GPU, 2 vCPU, 8 GiB                              |
| Nemotron Reranking NIM                                                                                                                                                                               | [Text Reranking NIM](https://docs.nvidia.com/nim/nemo-retriever/text-reranking/latest/overview.html), 1 Reranking NIM, [llama-nemotron-rerank-1b-v2](https://catalog.ngc.nvidia.com/orgs/nim/teams/nvidia/containers/llama-nemotron-rerank-1b-v2?version=1.1)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | RAG Retrieval only: 1 GPU, 2 vCPU, 8 GiB                                                                                                 |
| [NeMo Retriever Extraction](https://docs.nvidia.com/nemo/retriever/26.3.0/extraction/overview/) [(NV-Ingest)](https://github.com/NVIDIA/NeMo-Retriever/blob/26.3.0/helm/README.md) NIM microservices | [NeMo Retriever Extraction](https://docs.nvidia.com/nemo/retriever/26.3.0/extraction/overview/), [v26.3.0](https://docs.nvidia.com/nemo/retriever/26.3.0/extraction/overview/) / [v26.1.2](https://docs.nvidia.com/nemo/retriever/26.1.2/) ([github](https://github.com/NVIDIA/NeMo-Retriever)), 1 NV-Ingest microservice, 1 Redis DB and 4 extraction NIM microservices for multimodal data extraction: [nemotron-ocr-v1](https://build.nvidia.com/nvidia/nemotron-ocr-v1), [nemotron-page-elements-v3](https://build.nvidia.com/nvidia/nemotron-page-elements-v3), [nemotron-table-structure-v1](https://build.nvidia.com/nvidia/nemotron-table-structure-v1), [nemotron-graphic-elements-v1](https://build.nvidia.com/nvidia/nemotron-graphic-elements-v1) | RAG ingestion only: [Run:ai](https://run-ai-docs.nvidia.com/self-hosted/getting-started/overview): 1 GPU, MIG: 1.25 GPU, 16 vCPU, 44 GiB |
| Vector DB Milvus or Elastic                                                                                                                                                                          | [Milvus](https://milvus.io/docs/install_cluster-helm.md) - GPU for index and CPU for search, Data: 1M embeddings (2048 dims X FP32), 1 Data/Index node (0.25 GPU, 4 vCPU, 8 GiB), 1 Query node (4 vCPU, 10 GiB), Object store: Minio (500 GB disk storage), ETCD (fast block storage 50GB), Pulsarv3 (message bus)                                                                                                                                                                                                                                                                                                                                                                                                                                            | Run:ai / MIG: 0.25 GPU, 16 vCPU, 32 GiB                                                                                                  |

Table 1. Scope of Workloads and Resources

## Intended Audience

This guide is to support NVIDIA partners architecting Enterprise RAG solutions on Kubernetes
production clusters and provide sizing recommendations and scaling best practices for 16-32
node cluster level deployments. The guide can be used for both, new and existing Enterprise
RAG deployments to determine capacity and scale needed based on the usecase. This guide
is targeted to the following Personas as they architect their Enterprise RAG solutions.

**Enterprise Architects:** Enterprise Architects tasked in designing and defining servers, GPU's
and Networking gear to determine what Infrastructure resources will be needed to support
specific workloads around LLM's based on NIM microservices.

**MLOps Engineer:** MLOps Engineers can use this to define Infrastructure requirements as they
talk to Infrastructure/Cloud teams to carve out resources to run Inference Services on LLMs
based on NIM microservices.

**Platform Engineer:** Platform Engineer can use this guide to determine how to design their
Container Environment around Kubernetes and also what kind of resources will be needed by
the cluster to support various LLM workloads based on NIM microservices.