Appendix
MIG - NeMo Retriever (NV-Ingest) MIG custom Helm values file
Here is an example of custom Helm values files for Embedding and Extraction NIM
microservices nvingest-mig-values.yaml:
#NV-Ingest WORKERS and CPU resourcesenvVars:MAX_INGEST_PROCESS_WORKERS: 32NV_INGEST_MAX_UTIL: 32# Define endpoints for Embedding and Extraction NIM microservicesEMBEDDING_NIM_ENDPOINT: "http://llama-nemotron-embed-1b-v2:8000/v1"EMBEDDING_NIM_MODEL_NAME: "nvidia/llama-nemotron-embed-1b-v2"YOLOX_PAGE_IMAGE_FORMAT: JPEGYOLOX_GRPC_ENDPOINT: nemotron-page-elements-v3:8001YOLOX_HTTP_ENDPOINT: http://nemotron-page-elements-v3:8000/v1/inferYOLOX_INFER_PROTOCOL: grpcYOLOX_GRAPHIC_ELEMENTS_GRPC_ENDPOINT: nemotron-graphic-elements-v1:8001YOLOX_GRAPHIC_ELEMENTS_HTTP_ENDPOINT: http://nemotron-graphic-elements-v1:8000/v1/inferYOLOX_GRAPHIC_ELEMENTS_INFER_PROTOCOL: grpcYOLOX_TABLE_STRUCTURE_GRPC_ENDPOINT: nemotron-table-structure-v1:8001YOLOX_TABLE_STRUCTURE_HTTP_ENDPOINT: http://nemotron-table-structure-v1:8000/v1/inferYOLOX_TABLE_STRUCTURE_INFER_PROTOCOL: grpcOCR_GRPC_ENDPOINT: nemotron-ocr-v1:8001OCR_HTTP_ENDPOINT: http://nemotron-ocr-v1:8000/v1/inferOCR_INFER_PROTOCOL: grpcOCR_MODEL_NAME: pipelineMINIO_BUCKET: NV-Ingest # embeddings bucket for Vector DB bulk ingestionMINIO_ACCESS_KEY: minioadminMINIO_SECRET_KEY: minioadminMINIO_INTERNAL_ADDRESS: milvus-minio:9000MINIO_PUBLIC_ADDRESS: http://10.x.x.x:9000 #MINIO Load Balancer IPMILVUS_ENDPOINT: "http://milvus:19530" #Milvus endpointOTEL_EXPORTER_OTLP_ENDPOINT: "nvingest-opentelemtry-collector:4317"# Define image, tag and repo for NV-Ingest serverimage:pullPolicy: IfNotPresentrepository: nvcr.io/nvidia/nemo-microservices/NV-Ingesttag: 26.3.0imagePullSecrets:- name: ngc-api- name: ngc-secretreplicaCount: 1service:type: LoadBalancer #Enable LoadBalancer Service for NV-Ingest server# NV-Ingest CPU/Memory (RAM) resources for worker threadsresources:limits:memory: 48Gicpu: "48000m"requests:memory: 24Gicpu: "24000m" # 24 vCPUs allocated for workers# ephemeral disk size to store temporary datatmpDirSize: 64Gi # default 50Gi# Milvus (Distributed) in GPU-Index and CPU-Search (hybrid) is deployed independentlymilvusDeployed: false## enable OTEL collectionotelEnabled: true# deploy OTEL from this helm chartotelDeployed: true#Redis image,tag and resourcesredis:image:repository: redistag: "8.2.3"auth:enabled: falsereplica:replicaCount: 1persistence:enabled: truesize: "50Gi"storageClass: longhorn # enable fast block storage, storageClass longhornresources:requests:memory: "12Gi" # default 6Gi, increased for large batch sizeslimits:memory: "24Gi"master:persistence:enabled: truesize: "50Gi"storageClass: longhorn # enable fast block storage, storageClass longhornresources:requests:memory: "12Gi"limits:memory: "24Gi"configmap: |-protected-mode no# MIG-optimized resource configuration for NeMo Retriever (NV-Ingest)# This file overrides GPU resource requirements to use MIG profiles# Configure NIM Operator components to use MIGnimOperator:embedqa:resources:limits:nvidia.com/gpu: 0nvidia.com/mig-2g.48gb: 1#nvidia.com/mig-4g.71gb: 1 # enable H200 NVL MIG profilecpu: "2000m" # allocate 2 vCPUmemory: 8Girequests:nvidia.com/gpu: 0nvidia.com/mig-2g.48gb: 1#nvidia.com/mig-4g.71gb: 1 # enable H200 NVL MIG profilecpu: "1000m" # allocate 1 vCPUmemory: 8Giexpose:service:type: LoadBalancer #Enable LoadBalancer service for external accessport: 8000metricsPort: 8002metrics:enabled: trueserviceMonitor:additionalLabels:release: kube-prometheus-stackenv:- name: NIM_ENABLE_OTELvalue: "1"- name: OTEL_SERVICE_NAMEvalue: "nim-embed"- name: OTEL_TRACES_EXPORTERvalue: otlp- name: OTEL_EXPORTER_OTLP_ENDPOINTvalue: http://rag-opentelemetry-collector:4318- name: NIM_TRITON_PERFORMANCE_MODEvalue: "throughput"ocr:resources:limits:nvidia.com/gpu: 0nvidia.com/mig-2g.48gb: 1 # enable RTX PRO6K MIG profile#nvidia.com/mig-3g.71gb: 1 # enable H200 NVL MIG profilerequests:nvidia.com/gpu: 0nvidia.com/mig-2g.48gb: 1 # enable RTX PRO6K MIG profile#nvidia.com/mig-3g.71gb: 1 # enable H200 NVL MIG profilecpu: "3000m" # allocate 3 vCPUmemory: 4Giexpose:service:type: ClusterIPport: 8000grpcPort: 8001metrics:enabled: trueserviceMonitor:additionalLabels:release: kube-prometheus-stackenv:- name: NIM_ENABLE_OTELvalue: "1"- name: OTEL_SERVICE_NAMEvalue: "nemotron-ocr"- name: OTEL_TRACES_EXPORTERvalue: otlp- name: OTEL_EXPORTER_OTLP_ENDPOINTvalue: http://rag-opentelemetry-collector:4318# Triton OpenTelemetry Settings- name: TRITON_OTEL_URLvalue: http://rag-opentelemetry-collector:4318/v1/traces- name: OMP_NUM_THREADSvalue: "8"- name: NIM_HTTP_API_PORTvalue: "8000"- name: NIM_TRITON_LOG_VERBOSEvalue: "1"- name: NIM_TRITON_MAX_BATCH_SIZEvalue: "32"page-elements:resources:limits:nvidia.com/gpu: 0nvidia.com/mig-1g.24gb: 1 # enable RTX PRO6K MIG profile#nvidia.com/mig-2g.35gb: 1 # enable H200 NVL MIG profilerequests:nvidia.com/gpu: 0nvidia.com/mig-1g.24gb: 1 # enable RTX PRO6K MIG profile#nvidia.com/mig-2g.35gb: 1 # enable H200 NVL MIG profilecpu: "1000m" # allocate 1 vCPUmemory: 2Giexpose:service:type: ClusterIPport: 8000grpcPort: 8001metrics:enabled: trueserviceMonitor:additionalLabels:release: kube-prometheus-stackenv:- name: NIM_ENABLE_OTELvalue: "1"- name: OTEL_SERVICE_NAMEvalue: "nemotron-page-elements"- name: OTEL_TRACES_EXPORTERvalue: otlp- name: OTEL_EXPORTER_OTLP_ENDPOINTvalue: http://rag-opentelemetry-collector:4318# Triton OpenTelemetry Settings- name: TRITON_OTEL_URLvalue: http://rag-opentelemetry-collector:4318/v1/traces- name: OMP_NUM_THREADSvalue: "2"- name: NIM_HTTP_API_PORTvalue: "8000"- name: NIM_TRITON_LOG_VERBOSEvalue: "1"- name: NIM_TRITON_MAX_BATCH_SIZEvalue: "32"- name: NIM_TRITON_CPU_THREADS_PRE_PROCESSORvalue: "2"- name: NIM_TRITON_CPU_THREADS_POST_PROCESSORvalue: "1"table-structure:resources:limits:nvidia.com/gpu: 0nvidia.com/mig-1g.24gb: 1 # enable RTX PRO6K MIG profile#nvidia.com/mig-2g.35gb: 1 # enable H200 NVL MIG profilerequests:nvidia.com/gpu: 0nvidia.com/mig-1g.24gb: 1 # enable RTX PRO6K MIG profile#nvidia.com/mig-2g.35gb: 1 # enable H200 NVL MIG profilecpu: "1000m" # request 1 vCPUmemory: 3.5Giexpose:service:type: ClusterIPport: 8000grpcPort: 8001metrics:enabled: trueserviceMonitor:additionalLabels:release: kube-prometheus-stackenv:- name: NIM_ENABLE_OTELvalue: "1"- name: OTEL_SERVICE_NAMEvalue: "nemotron-table-structure"- name: OTEL_TRACES_EXPORTERvalue: otlp- name: OTEL_EXPORTER_OTLP_ENDPOINTvalue: http://rag-opentelemetry-collector:4318# Triton OpenTelemetry Settings- name: TRITON_OTEL_URLvalue: http://rag-opentelemetry-collector:4318/v1/traces- name: OMP_NUM_THREADSvalue: "1"- name: NIM_HTTP_API_PORTvalue: "8000"- name: NIM_TRITON_LOG_VERBOSEvalue: "1"- name: NIM_TRITON_MAX_BATCH_SIZEvalue: "32"- name: NIM_TRITON_RATE_LIMITvalue: "3"- name: NIM_TRITON_CUDA_MEMORY_POOL_MBvalue: "2048"graphic-elements:resources:limits:nvidia.com/gpu: 0nvidia.com/mig-1g.24gb: 1 # enable RTX PRO6K MIG profile#nvidia.com/mig-1g.18gb: 1 # enable H200 NVL MIG profilerequests:nvidia.com/gpu: 0nvidia.com/mig-1g.24gb: 1 # enable RTX PRO6K MIG profile#nvidia.com/mig-1g.18gb: 1 # enable H200 NVL MIG profilecpu: "500m" # request 0.5 vCPUmemory: 3Giexpose:service:type: ClusterIPport: 8000grpcPort: 8001metrics:enabled: trueserviceMonitor:additionalLabels:release: kube-prometheus-stackenv:- name: NIM_ENABLE_OTELvalue: "1"- name: OTEL_SERVICE_NAMEvalue: "nemotron-graphic-elements"- name: OTEL_TRACES_EXPORTERvalue: otlp- name: OTEL_EXPORTER_OTLP_ENDPOINTvalue: http://rag-opentelemetry-collector:4318# Triton OpenTelemetry Settings- name: TRITON_OTEL_URLvalue: http://rag-opentelemetry-collector:4318/v1/traces- name: OMP_NUM_THREADSvalue: "1"- name: NIM_HTTP_API_PORTvalue: "8000"- name: NIM_TRITON_LOG_VERBOSEvalue: "1"- name: NIM_TRITON_MAX_BATCH_SIZEvalue: "32"- name: NIM_TRITON_RATE_LIMITvalue: "3"- name: NIM_TRITON_CUDA_MEMORY_POOL_MBvalue: "2048"
Run:ai 1 - NeMo Retriever (NV-Ingest) custom Helm values file
Here is an example of custom Helm values files for deploying NV-Ingest and Redis but
disable deploying Embedding and Extraction NIM microservices with NIM service. Set the
NIM endpoints to match the NIM deployment manifest => nvingest-runai-values.yaml:
#NV-Ingest WORKERS and CPU resourcesenvVars:MAX_INGEST_PROCESS_WORKERS: 32NV_INGEST_MAX_UTIL: 32# Define endpoints for Embedding and Extraction NIM microservicesEMBEDDING_NIM_ENDPOINT: "http://nemotron-embed:8000/v1"EMBEDDING_NIM_MODEL_NAME: "nvidia/llama-nemotron-embed-1b-v2"YOLOX_PAGE_IMAGE_FORMAT: JPEGYOLOX_GRPC_ENDPOINT: nemotron-page:8001YOLOX_HTTP_ENDPOINT: http://nemotron-page:8000/v1/inferYOLOX_INFER_PROTOCOL: grpcYOLOX_GRAPHIC_ELEMENTS_GRPC_ENDPOINT: nemotron-graphic:8001YOLOX_GRAPHIC_ELEMENTS_HTTP_ENDPOINT: http://nemotron-graphic:8000/v1/inferYOLOX_GRAPHIC_ELEMENTS_INFER_PROTOCOL: grpcYOLOX_TABLE_STRUCTURE_GRPC_ENDPOINT: nemotron-table:8001YOLOX_TABLE_STRUCTURE_HTTP_ENDPOINT: http://nemotron-table:8000/v1/inferYOLOX_TABLE_STRUCTURE_INFER_PROTOCOL: grpcOCR_GRPC_ENDPOINT: nemotron-ocr:8001OCR_HTTP_ENDPOINT: http://nemotron-ocr:8000/v1/inferOCR_INFER_PROTOCOL: grpcOCR_MODEL_NAME: pipelineMINIO_BUCKET: NV-Ingest # embeddings bucket for Vector DB bulk ingestionMINIO_ACCESS_KEY: minioadminMINIO_SECRET_KEY: minioadminMINIO_INTERNAL_ADDRESS: milvus-minio:9000MINIO_PUBLIC_ADDRESS: http://10.x.x.x:9000 #MINIO Load Balancer IPMILVUS_ENDPOINT: "http://milvus:19530" #Milvus endpointOTEL_EXPORTER_OTLP_ENDPOINT: "nvingest-opentelemtry-collector:4317"# Define image, tag and repo for NV-Ingest serverimage:pullPolicy: IfNotPresentrepository: nvcr.io/nvidia/nemo-microservices/NV-Ingesttag: 26.3.0imagePullSecrets:- name: ngc-api- name: ngc-secretreplicaCount: 1service:type: LoadBalancer #Enable LoadBalancer Service for NV-Ingest server# NV-Ingest CPU/Memory (RAM) resources for worker threadsresources:limits:memory: 48Gicpu: "48000m"requests:memory: 24Gicpu: "24000m" # 24 vCPUs allocated for workers# ephemeral disk size to store temporary datatmpDirSize: 64Gi # default 50Gi# Milvus (Distributed) in GPU-Index and CPU-Search (hybrid) is deployed independentlymilvusDeployed: false## enable OTEL collectionotelEnabled: true# deploy OTEL from this helm chartotelDeployed: true#Redis image,tag and resourcesredis:image:repository: redistag: "8.2.3"auth:enabled: falsereplica:replicaCount: 1persistence:enabled: truesize: "50Gi"storageClass: longhorn # enable fast block storage, storageClass longhornresources:requests:memory: "12Gi" # default 6Gi, increased for large batch sizeslimits:memory: "24Gi"master:persistence:enabled: truesize: "50Gi"storageClass: longhorn # enable fast block storage, storageClass longhornresources:requests:memory: "12Gi"limits:memory: "24Gi"configmap: |-protected-mode no# NIM Operator resource configuration for NeMo Retriever (NV-Ingest)# This file overrides GPU resource requirements to use Run:ai# NIM Operator components require K8s scheduler, cannot use Run:ai scheduler, disable NIM microservicesnimOperator:embedqa:enabled: falseresources:limits:nvidia.com/gpu: 0.5requests:nvidia.com/gpu: 0.5cpu: "4000m" # allocate 4 vCPUmemory: 8Giocr:enabled: falseresources:limits:nvidia.com/gpu: 0.4requests:nvidia.com/gpu: 0.4cpu: "3000m" # allocate 3 vCPUmemory: 4Gipage-elements:enabled: falseresources:limits:nvidia.com/gpu: 0.3requests:nvidia.com/gpu: 0.3cpu: "1000m" # allocate 1 vCPUmemory: 2Gitable-structure:enabled: falseresources:limits:nvidia.com/gpu: 0.2requests:nvidia.com/gpu: 0.2cpu: "1000m" # request 1 vCPUmemory: 3.5Gigraphic-elements:enabled: falseresources:limits:nvidia.com/gpu: 0.1requests:nvidia.com/gpu: 0.1cpu: "500m" # request 0.5 vCPUmemory: 3Gi
Run:ai 2 - NeMo Retriever (NV-Ingest) NIM manifest deployment
Here is a sample custom Kubernetes manifest file for Embedding NIM:
nemotron-embed-1b-v2 and Extraction NIM: nemotron-ocr-v1 shown below =>
nvingest-runai-NIM-microservices-manifest.yaml.
Other extraction NIM microservices can be added using these examples.
apiVersion: apps/v1kind: Deploymentmetadata:name: nemotron-embednamespace: runai-raglabels:app: nemotron-embedapp.kubernetes.io/name: nemotron-embedspec:replicas: 1selector:matchLabels:app: nemotron-embedtemplate:metadata:labels:app: nemotron-embedapp.kubernetes.io/name: nemotron-embedpriorityClassName: very-highproject: ragannotations:runai-nodepools: rag-ingestgpu-fraction: "0.5"gpu-fraction-num-devices: "1"spec:schedulerName: runai-schedulerpriorityClassName: very-highimagePullSecrets:- name: ngc-secretcontainers:- name: nemotron-embedimage: nvcr.io/nim/nvidia/llama-nemotron-embed-1b-v2:1.13.0imagePullPolicy: IfNotPresentports:- containerPort: 8000name: apiprotocol: TCP- containerPort: 8001name: grpcprotocol: TCP- containerPort: 8002name: metricsprotocol: TCPenv:- name: NGC_API_KEYvalueFrom:secretKeyRef:name: ngc-apikey: NGC_API_KEY- name: NIM_SERVER_PORTvalue: "8000"- name: NIM_HTTP_API_PORTvalue: "8000"- name: NIM_JSONL_LOGGINGvalue: "1"- name: NIM_TRITON_LOG_VERBOSEvalue: "1"- name: OUTLINES_CACHE_DIRvalue: /tmp/outlines- name: OMP_NUM_THREADSvalue: "1"- name: NIM_TRITON_PERFORMANCE_MODEvalue: throughput- name: NIM_TRITON_METRICS_PORTvalue: "8002"- name: NIM_LOG_LEVELvalue: INFO- name: NIM_GRPC_API_PORTvalue: "8001"- name: NIM_TRITON_GRPC_PORTvalue: "8001"- name: NIM_ENABLE_OTELvalue: "true"- name: NIM_OTEL_SERVICE_NAMEvalue: embed- name: NIM_OTEL_TRACES_EXPORTERvalue: otlp- name: NIM_OTEL_METRICS_EXPORTERvalue: console- name: NIM_OTEL_EXPORTER_OTLP_ENDPOINTvalue: http://nvingest-opentelemetry-collector:4318- name: TRITON_OTEL_URLvalue: http://nvingest-opentelemetry-collector:4318/v1/traces- name: TRITON_OTEL_RATEvalue: "1"- name: RUNAI_JOB_NAMEvalue: nemotron-embed- name: RUNAI_PROJECTvalue: rag---apiVersion: v1kind: Servicemetadata:name: nemotron-embednamespace: runai-raglabels:app: nemotron-embedapp.kubernetes.io/name: nemotron-embedspec:type: LoadBalancer #ClusterIPselector:app: nemotron-embedports:- name: apiport: 8000- name: grpcport: 8001- name: metricsport: 8002---# Service Monitoring for nemotron-embedapiVersion: monitoring.coreos.com/v1kind: ServiceMonitormetadata:name: nemotron-embednamespace: runai-raglabels:app: nemotron-embedrelease: kube-prometheus-stackspec:selector:matchLabels:app: nemotron-embedendpoints:- port: apipath: /v1/metricsinterval: 30s- port: metricspath: /metricsinterval: 30snamespaceSelector:matchNames:- runai-rag---apiVersion: apps/v1kind: Deploymentmetadata:name: nemotron-ocrnamespace: runai-raglabels:app: nemotron-ocrapp.kubernetes.io/name: nemotron-ocrspec:replicas: 1selector:matchLabels:app: nemotron-ocrtemplate:metadata:labels:app: nemotron-ocrapp.kubernetes.io/name: nemotron-ocrpriorityClassName: very-highproject: ragannotations:runai-nodepools: rag-ingestgpu-fraction: "0.4"gpu-fraction-num-devices: "1"spec:schedulerName: runai-schedulerpriorityClassName: very-highimagePullSecrets:- name: ngc-secretcontainers:- name: nemotron-ocrimage: nvcr.io/nim/nvidia/nemoretriever-ocr-v1:1.3.0imagePullPolicy: IfNotPresentports:- containerPort: 8000name: api- containerPort: 8001name: grpcenv:- name: NGC_API_KEYvalueFrom:secretKeyRef:name: ngc-apikey: NGC_API_KEY- name: NIM_JSONL_LOGGINGvalue: "1"- name: NIM_LOG_LEVELvalue: INFO- name: NIM_SERVER_PORTvalue: "8000"- name: NIM_HTTP_API_PORTvalue: "8000"- name: NIM_GRPC_API_PORTvalue: "8001"- name: NIM_TRITON_GRPC_PORTvalue: "8001"- name: OUTLINES_CACHE_DIRvalue: /tmp/outlines- name: OMP_NUM_THREADSvalue: "8"- name: NIM_TRITON_MAX_BATCH_SIZEvalue: "32"- name: NIM_TRITON_LOG_VERBOSEvalue: "1"- name: RUNAI_JOB_NAMEvalue: nemotron-ocr- name: RUNAI_PROJECTvalue: rag- name: NIM_ENABLE_OTELvalue: "true"- name: NIM_OTEL_SERVICE_NAMEvalue: ocr- name: NIM_OTEL_TRACES_EXPORTERvalue: otlp- name: NIM_OTEL_METRICS_EXPORTERvalue: console- name: NIM_OTEL_EXPORTER_OTLP_ENDPOINTvalue: http://nvingest-opentelemetry-collector:4318- name: TRITON_OTEL_URLvalue: http://nvingest-opentelemetry-collector:4318/v1/traces- name: TRITON_OTEL_RATEvalue: "1"---apiVersion: v1kind: Servicemetadata:name: nemotron-ocrnamespace: runai-raglabels:app: nemotron-ocrapp.kubernetes.io/name: nemotron-ocrspec:type: ClusterIPselector:app: nemotron-ocrports:- name: apiport: 8000- name: grpcport: 8001---# Service Monitoring for nemotron-ocrapiVersion: monitoring.coreos.com/v1kind: ServiceMonitormetadata:name: nemotron-ocrnamespace: runai-raglabels:app: nemotron-ocrrelease: kube-prometheus-stackspec:selector:matchLabels:app: nemotron-ocrendpoints:- port: apipath: /v1/metricsinterval: 30snamespaceSelector:matchNames:- runai-rag
Milvus distributed Helm custom values file
Included below is an example of custom Helm values files for Milvus distributed deployment
milvus-distributed-values.yaml:
## Expand the name of the chartnameOverride: ""## Default fully qualified app namefullnameOverride: "milvus"## Enable Milvus Distributed modecluster:enabled: trueimage:all:repository: milvusdb/milvustag: v2.6.5-gpu #Enable GPU accelerated (cuVS) imagepullPolicy: IfNotPresent## Enable tracingextraConfigFiles:user.yaml: |+trace:exporter: otlpsampleFraction: 1otlp:endpoint: rag-opentelemetry-collector:4317secure: falseservice:type: LoadBalancer #Enable LoadBalancer IP for external accessport: 19530portName: milvusmetrics:enabled: trueserviceMonitor:# Set this to `true` to create ServiceMonitor for Prometheus operatorenabled: trueinterval: "30s"scrapeTimeout: "10s"additionalLabels:release: kube-prometheus-stack # prometheus stack release label# Streaming nodestreaming:enabled: truewoodpecker:embedded: truestorage:type: miniostreamingNode:replicas: 1# ATTU - Frontend Management Consoleattu:enabled: truename: attuingress:enabled: truehosts:- vdb.era285.nvidia.comingressClassName: nginx#===# Etcd#===etcd:enabled: truename: etcdreplicaCount: 3pdb:create: falseimage:repository: "milvusdb/etcd"tag: "3.5.23-r2"pullPolicy: IfNotPresentautoCompactionMode: revisionautoCompactionRetention: "1000"persistence:accessMode: ReadWriteOnceenabled: truesize: 10GistorageClass: longhorn # enable fast block storage#===# Minio#===## Configuration values for the minio dependencyminio:enabled: trueaccessKey: minioadminsecretKey: minioadminmode: distributedname: miniobucketName: "NV-Ingest"zones: 2 # enable for larger scale deployment in ERA cluster with 4+nodesimage:tag: "RELEASE.2025-09-07T16-13-09Z"pullPolicy: IfNotPresentresources:requests:cpu: 4memory: 8Gilimits:cpu: 8memory: 16Giservice:type: LoadBalancer # Enable LoadBalancer IP for external accessport: 9000persistence:enabled: truestorageClass: nfs-clientaccessMode: ReadWriteOncesize: 500Gi#====# Data Node, is consolidated with index node#====# Data node performs index build and ingestion# Allocate GPU MIG profile or Run:ai GPU fraction and CPU / memory resources# Scale up/out with more data and scale down when not ingesting datadataNode:enabled: truereplicas: 1 # scale out replicas with >10M vectorsresources:limits:cpu: "20"memory: 40Ginvidia.com/gpu: "0" # disable full GPU allocationnvidia.com/mig-1g.24gb: 1 # enable RTX PRO6K MIG profile#nvidia.com/mig-1g.18gb: 1 # enable H200 NVL MIG profile#nvidia.com/gpu: "0.25" # enable Run:ai GPU fractionrequests:# baseline 4vCPU / 8Gi for up to ~1M vectors,# scale up to 16vCPU / 32Gi for large enterprise data >10M vectorscpu: "16"memory: 32Ginvidia.com/gpu: "0" # disable full GPU allocationnvidia.com/mig-1g.24gb: 1 # enable RTX PRO6K MIG profile#nvidia.com/mig-1g.18gb: 1 # enable H200 NVL MIG profile#nvidia.com/gpu: "0.25" # enable Run:ai GPU fraction#====# Query Node#====# Query node performs search requests# Uses CPU and memory resources# Scale up with more data and scale out with more search requestsqueryNode:enabled: true# replicas to -1 to enable autoscaling with HPAreplicas: -1resources:limits:cpu: "20"memory: 50Girequests:# baseline 4vCPU / 10Gi for up to ~1M vectors,# scale up to 8vCPU / 40Gi for large enterprise data >10M vectorscpu: "16"memory: 40Gidisk:enabled: true # Enable index node build disk vector indexsize:enabled: false # Enable local storage size limithpa:enabled: trueminReplicas: 1maxReplicas: 8cpuUtilization: 80 # autoscale at 80% CPU utilizationmemoryUtilization: 80 # autoscale at 80% Memory utilization
NIM Cache for Retrieval NIM
NIM Cache examples for Retrieval NIM microservices: LLM NIM and Reranking NIM are
shown below => nimcache-retrieval.yaml:
# RAG pipeline NIM Cache for LLM NIMapiVersion: apps.nvidia.com/v1alpha1kind: NIMCachemetadata:name: nimcache-nemo49b-vllm-nvfp4-tp1namespace: ragspec:source:ngc:modelPuller: nvcr.io/nim/nvidia/llama-3.3-nemotron-super-49b-v1.5:1.15.5pullSecret: ngc-secretauthSecret: ngc-apimodel:engine: vllm #tensorrt_llmlora: falsegpus:- product: RTX6000_BLACKWELL_SV # H200_NVLprecision: nvfp4 # fp8qosProfile: throughput # latencytensorParallelism: "1" # "2"#profiles:#- 528fb89432d285acafa908147aa3d05a7e5018830312ca95bd9d2661fb38889fstorage:pvc:create: truestorageClass: "nfs-client"size: "80Gi"volumeAccessMode: ReadWriteManyresources: {}---# RAG pipeline NIM Cache for Reranking NIMapiVersion: apps.nvidia.com/v1alpha1kind: NIMCachemetadata:name: nimcache-nemotron-reranknamespace: ragspec:source:ngc:modelPuller: nvcr.io/nim/nvidia/llama-nemotron-rerank-1b-v2:1.11.0pullSecret: ngc-secretauthSecret: ngc-apimodel:profiles:- allstorage:pvc:create: truestorageClass: "nfs-client"size: "50Gi"volumeAccessMode: ReadWriteManyresources: {}
NIM Service for Retrieval NIM microservices
NIM Service examples for LLM NIM and Reranking NIM as part of the RAG Retrieval NIM
microservices => NIMService-retrieval.yaml:
apiVersion: apps.nvidia.com/v1alpha1kind: NIMServicemetadata:name: nim-llm-nemotron49bnamespace: ragspec:image:repository: nvcr.io/nim/nvidia/llama-3.3-nemotron-super-49b-v1.5tag: 1.15.5pullPolicy: IfNotPresentpullSecrets:- ngc-secretauthSecret: ngc-apistorage:nimCache:name: nimcache-nemo49b-vllm-nvfp4-tp1profile: 'e9cc0c5ea49283a493a0b18a05a97eb9b15a82a0d6acbb967e35609ddeb767fa'replicas: 1resources:limits:nvidia.com/gpu: 1requests:nvidia.com/gpu: 1expose:service:type: LoadBalancer #ClusterIPport: 8000metrics:enabled: trueserviceMonitor:additionalLabels:release: kube-prometheus-stackenv:- name: NIM_ENABLE_OTELvalue: "1"- name: OTEL_SERVICE_NAMEvalue: "nim-llm-nemotron49b"- name: OTEL_TRACES_EXPORTERvalue: otlp- name: OTEL_EXPORTER_OTLP_ENDPOINTvalue: http://rag-opentelemetry-collector:4318# For RTX PRO6k, reduce MAX CONTEXT to 16256 tokens# For H200 NVL, increase MAX CONTEXT to 32768 tokens- name: NIM_MAX_MODEL_LENvalue: "16256" # 32768 for H200 NVL---apiVersion: apps.nvidia.com/v1alpha1kind: NIMServicemetadata:name: nemotron-reranknamespace: ragspec:image:repository: nvcr.io/nim/nvidia/llama-nemotron-rerank-1b-v2tag: 1.11.0pullPolicy: IfNotPresentpullSecrets:- ngc-secretauthSecret: ngc-apistorage:nimCache:name: nimcache-nemotron-rerankerreplicas: 1resources:limits:nvidia.com/gpu: 1requests:nvidia.com/gpu: 1expose:service:type: ClusterIPport: 8000metricsPort: 8002metrics:enabled: trueserviceMonitor:additionalLabels:release: kube-prometheus-stackenv:- name: NIM_ENABLE_OTELvalue: "1"- name: OTEL_SERVICE_NAMEvalue: "nim-rerank"- name: OTEL_TRACES_EXPORTERvalue: otlp- name: OTEL_EXPORTER_OTLP_ENDPOINTvalue: http://rag-opentelemetry-collector:4318
RAG Blueprint Helm custom values
Included below is an example of custom Helm values files for RAG blueprint deployment
rag-blueprint-values.yaml:
# -- Global chart configurationnameOverride: ""fullnameOverride: "rag-server"# subsection: rag-server# RAG LangChain Orchestrator Service# -- Image pull secret for all images used by this chartimagePullSecret:name: "ngc-secret"create: false# -- Secret containing API keys for NVIDIA NGC model registryngcApiSecret:name: "ngc-api"create: false# -- RAG server container image and replicasimage:repository: nvcr.io/nvidia/blueprint/rag-servertag: "2.5.0"pullPolicy: IfNotPresent# -- RAG server service configurationservice:type: LoadBalancer # Enable LoadBalancer service for external accessport: 8081# -- RAG server worker and container resources for High Performance and Scaleserver:workers: 64resources:limits:cpu: "20"memory: "80Gi"requests:cpu: "16"memory: "64Gi"# -- RAG server - scale out replicas with load and LLM scalereplicaCount: 1# -- Kubernetes schedulingnodeSelector: {}affinity: {}tolerations: []# -- Environment variables for rag-serverenvVars:##===Vector DB specific configurations===# URL on which vectorstore is hostedAPP_VECTORSTORE_URL: "http://milvus:19530"# Milvus on Run:ai in runai-rag namespace needs FQDN DNS name#APP_VECTORSTORE_URL: "http://milvus.runai-rag.svc.clsuter.local:19530"# Type of vector db used to store embedding supported type "milvus" or "elasticsearch"APP_VECTORSTORE_NAME: "milvus"# cuVS enabled GPU accelerated Index (GPU_CAGRA)APP_VECTORSTORE_INDEXTYPE: "GPU_CAGRA"# Type of vector db search to be usedAPP_VECTORSTORE_SEARCHTYPE: "dense"# Type of ranker to use for vector store in case of Hybrid SearchAPP_VECTORSTORE_RANKER_TYPE: "rrf" # Can be "rrf" or "weighted"# Weight for dense vector search in case of "weighted" Hybrid SearchAPP_VECTORSTORE_DENSE_WEIGHT: "0.5"# Weight for sparse vector search in case of "weighted" Hybrid SearchAPP_VECTORSTORE_SPARSE_WEIGHT: "0.5"# Disable GPU search for milvus vector DB specific to rag-serverAPP_VECTORSTORE_ENABLEGPUSEARCH: "False"# For Milvus CPU search set the EF parameter for each 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 topKAPP_VECTORSTORE_EF: "20"# default vectorstore collection name to store embeddingsCOLLECTION_NAME: "multimodal_data"APP_RETRIEVER_SCORETHRESHOLD: "0.25"# Top K from vector DB, which goes as input to reranker model - not applicable if ENABLE_RERANKER is set to FalseVECTOR_DB_TOPK: "100"# Number of document chunks to insert in LLM promptAPP_RETRIEVER_TOPK: "10"# Ingestion envVars used in Ingestor-server if enabled##===MINIO config to store multimodal embeddings for VDB bulk upload===MINIO_ENDPOINT: "milvus-minio:9000"# Milvus MinIO on Run:ai in runai-rag namespace needs FQDN DNS name#MINIO_ENDPOINT: "milvus-minio.runai-rag.svc.cluster.local:9000"MINIO_ACCESSKEY: "minioadmin"MINIO_SECRETKEY: "minioadmin"##===Redis configurations for summary status tracking===REDIS_HOST: "nvingest-redis-master"# NV-Ingest Redis on Run:ai in runai-rag namespace needs FQDN DNS name#REDIS_HOST: "nvingest-redis-master.runai-rag.svc.cluster.local"REDIS_PORT: "6379"REDIS_DB: "0"# NIM endpoint configurations##===LLM Model specific configurations===APP_LLM_MODELNAME: "nvidia/llama-3.3-nemotron-super-49b-v1.5"# URL at which LLM model is hosted, NIM Service name used to deploy LLMAPP_LLM_SERVERURL: "nim-llm-nemotron49b:8000"# LLM model parametersLLM_MAX_TOKENS: "32768" # "16256"LLM_TEMPERATURE: "0"LLM_TOP_P: "1.0"##===Query Rewriter Model specific configurations===APP_QUERYREWRITER_MODELNAME: "nvidia/llama-3.3-nemotron-super-49b-v1.5"# URL on which query rewriter model is hosted.APP_QUERYREWRITER_SERVERURL: "nim-llm-nemotron49b:8000"##===Filter Expression Generator Model specific configurations===APP_FILTEREXPRESSIONGENERATOR_MODELNAME: "nvidia/llama-3.3-nemotron-super-49b-v1.5"APP_FILTEREXPRESSIONGENERATOR_SERVERURL: "nim-llm-nemotron49b:8000"# enable filter expression generator for natural language to filter expression conversionENABLE_FILTER_GENERATOR: "False"##===Embedding Model specific configurations===# URL on which embedding model is hosted. NV-Ingest Embedding NIM service nameAPP_EMBEDDINGS_SERVERURL: "llama-nemotron-embed-1b-v2:8000/v1"# Run:ai Embedding NIM deployment in runai-rag namespace needs FQDN DNS name#APP_EMBEDDINGS_SERVERURL: "nemotron-embed.runai-rag.svc.cluster.local:8000/v1"APP_EMBEDDINGS_MODELNAME: "nvidia/llama-nemotron-embed-1b-v2"APP_EMBEDDINGS_DIMENSIONS: "2048"##===Reranking Model specific configurations===# URL on which ranking model is hosted. NIM service name used to deployAPP_RANKING_SERVERURL: "nemotron-rerank:8000"APP_RANKING_MODELNAME: "nvidia/llama-nemotron-rerank-1b-v2"ENABLE_RERANKER: "True"# Default score threshold for filtering documents by reranker relevance (0.0 to 1.0)RERANKER_SCORE_THRESHOLD: "0.0"# === RAG Retrieval pipeline performance optimizations# Disable citations in the response for benchmarking, enable for RAG accuracy and evaluationENABLE_CITATIONS: "False"# Disable guardrails for performance benchmarking, adds additional latencyENABLE_GUARDRAILS: "False"# Log level for server, supported level NOTSET, DEBUG, INFO, WARN, ERROR, CRITICALLOGLEVEL: "INFO"# Disable multi-turn conversationENABLE_MULTITURN: "False"# Disable query rewriting for multiturn conversationENABLE_QUERYREWRITER: "False"# Disable conversation history with current query for retrieval (when query rewriter is disabled)MULTITURN_RETRIEVER_SIMPLE: "False"# number of last n chat messages to consider from the provided conversation history (0 = no history)CONVERSATION_HISTORY: "0"# === Enable Metrics and Tracing with Jaeger or Zipkin===APP_TRACING_ENABLED: "True"# HTTP endpointAPP_TRACING_OTLPHTTPENDPOINT: "http://rag-opentelemetry-collector:4318/v1/traces"# GRPC endpointAPP_TRACING_OTLPGRPCENDPOINT: "grpc://rag-opentelemetry-collector:4317"# === Disable Reflection ===ENABLE_REFLECTION: "false"# Enable source metadata in document content during generationENABLE_SOURCE_METADATA: "true"# Filter content within <think></think> tags in model responsesFILTER_THINK_TOKENS: "true"# For performance benchmarking, disable Reasoning with reasoning models like Nemotron Super-49BLLM_ENABLE_THINKING: "false"LLM_REASONING_BUDGET: "0"LLM_LOW_EFFORT: "false"# -- Ingestor Server# subsection: ingestor-server used for basic ingestion validation# Not used for ingestion performance benchmarking# Ingestor API Service - frontend API service to NV-Ingestingestor-server:enabled: trueappName: ingestor-serverreplicaCount: 1imagePullSecret:create: falsename: "ngc-secret"image:repository: nvcr.io/nvidia/blueprint/ingestor-servertag: "2.5.0"# -- Service config for ingestor-serverservice:type: NodePort #ClusterIP, use NodePort for initial ingestion validationport: 8082server:workers: 1resources:limits:memory: "25Gi"requests:memory: "25Gi"envVars:# === Vector Store Configurations ===APP_VECTORSTORE_URL: "http://milvus:19530"# Milvus on Run:ai in runai-rag namespace needs FQDN DNS name#APP_VECTORSTORE_URL: "http://milvus.runai-rag.svc.clsuter.local:19530"APP_VECTORSTORE_NAME: "milvus" # supported values: "milvus" or "elasticsearch"APP_VECTORSTORE_SEARCHTYPE: "dense"# Type of ranker to use for vector store in case of Hybrid SearchAPP_VECTORSTORE_RANKER_TYPE: "rrf" # Can be "rrf" or "weighted"# Weight for dense vector search in case of "weighted" Hybrid SearchAPP_VECTORSTORE_DENSE_WEIGHT: "0.5"# Weight for sparse vector search in case of "weighted" Hybrid SearchAPP_VECTORSTORE_SPARSE_WEIGHT: "0.5"APP_VECTORSTORE_ENABLEGPUINDEX: "True"APP_VECTORSTORE_ENABLEGPUSEARCH: "False"COLLECTION_NAME: "multimodal_data"# === MinIO Configurations ===##===MINIO config to store multimodal embeddings for VDB bulk upload===MINIO_ENDPOINT: "milvus-minio:9000"# Milvus MinIO on Run:ai in runai-rag namespace needs FQDN DNS name#MINIO_ENDPOINT: "milvus-minio.runai-rag.svc.cluster.local:9000"MINIO_ACCESSKEY: "minioadmin"MINIO_SECRETKEY: "minioadmin"# === Embeddings Configurations ===# NV-Ingest Embedding NIM service name in rag namespaceAPP_EMBEDDINGS_SERVERURL: "llama-nemotron-embed-1b-v2:8000/v1"# Run:ai Embedding NIM deployment in runai-rag namespace needs FQDN DNS name#APP_EMBEDDINGS_SERVERURL: "nemotron-embed.runai-rag.svc.cluster.local:8000/v1"APP_EMBEDDINGS_MODELNAME: "nvidia/llama-nemotron-embed-1b-v2"APP_EMBEDDINGS_DIMENSIONS: "2048"# === NV-Ingest Configurations ===# NV-Ingest service name in rag namespaceAPP_NVINGEST_MESSAGECLIENTHOSTNAME: "nvingest-NV-Ingest"# NV-Ingest on Run:ai in runai-rag namespace needs FQDN DNS name#APP_NVINGEST_MESSAGECLIENTHOSTNAME: "nvingest-NV-Ingest.runai-rag.svc.cluster.local"APP_NVINGEST_MESSAGECLIENTPORT: "7670"# === NV-Ingest extraction configurations ===APP_NVINGEST_PDFEXTRACTMETHOD: "None"APP_NVINGEST_EXTRACTTABLESMETHOD: "yolox"APP_NVINGEST_EXTRACTTEXT: "True"APP_NVINGEST_EXTRACTINFOGRAPHICS: "False"APP_NVINGEST_EXTRACTTABLES: "True"APP_NVINGEST_EXTRACTCHARTS: "True"APP_NVINGEST_EXTRACTIMAGES: "False"APP_NVINGEST_EXTRACTPAGEASIMAGE: "False"APP_NVINGEST_STRUCTURED_ELEMENTS_MODALITY: ""APP_NVINGEST_IMAGE_ELEMENTS_MODALITY: ""APP_NVINGEST_TEXTDEPTH: "page"# === NV-Ingest save to disk configurations ===APP_NVINGEST_SAVETODISK: "False"NVINGEST_MINIO_BUCKET: "NV-Ingest"# === NV-Ingest performance configurations ===APP_NVINGEST_ENABLE_PDF_SPLIT_PROCESSING: "False"APP_NVINGEST_PAGES_PER_CHUNK: "16"# === General ===# Summary Model ConfigurationsSUMMARY_LLM: "nvidia/llama-3.3-nemotron-super-49b-v1.5"SUMMARY_LLM_SERVERURL: "nim-llm-nemotron49b:8000"SUMMARY_LLM_MAX_CHUNK_LENGTH: "9000"SUMMARY_CHUNK_OVERLAP: "400"SUMMARY_LLM_TEMPERATURE: "0.0"SUMMARY_LLM_TOP_P: "1.0"SUMMARY_MAX_PARALLELIZATION: "20"# === General ===ENABLE_CITATIONS: "True" # Enable citations for RAG accuracy and evaluationLOGLEVEL: "INFO"# === NV-Ingest splitting configurations ===APP_NVINGEST_CHUNKSIZE: "256" # 512 default; Size of chunks for splittingAPP_NVINGEST_CHUNKOVERLAP: "50" # 150 default; Overlap size for chunksAPP_NVINGEST_ENABLEPDFSPLITTER: "True" # Enable PDF splitterAPP_NVINGEST_SEGMENTAUDIO: "False" # Enable audio segmentation for NV Ingest# === Redis configurations ===REDIS_HOST: "nvingest-redis-master"# NV-Ingest Redis on Run:ai in runai-rag namespace needs FQDN DNS name#REDIS_HOST: "nvingest-redis-master.runai-rag.svc.cluster.local"REDIS_PORT: "6379"REDIS_DB: "0"ENABLE_REDIS_BACKEND: "False"# === Bulk upload to MinIO ===ENABLE_MINIO_BULK_UPLOAD: "True"TEMP_DIR: "/tmp-data"INGESTOR_SERVER_DATA_DIR: "/data/"# === NV-Ingest Batch Mode Configurations ===NV_INGEST_FILES_PER_BATCH: "30" #16 defaultNV_INGEST_CONCURRENT_BATCHES: "10" #4 defaultENABLE_NV_INGEST_DYNAMIC_BATCHING: "True"# === Tracing ===APP_TRACING_ENABLED: "False"# HTTP endpointAPP_TRACING_OTLPHTTPENDPOINT: "http://rag-opentelemetry-collector:4318/v1/traces"# GRPC endpointAPP_TRACING_OTLPGRPCENDPOINT: "grpc://rag-opentelemetry-collector:4317"# -- Frontend# subsection: frontend# rag frontend - web console for initial validation and demo purposes onlyfrontend:enabled: trueappName: "rag-frontend"replicaCount: 1image:repository: nvcr.io/nvidia/blueprint/rag-frontendpullPolicy: IfNotPresenttag: "2.5.0"imagePullSecret:name: "ngc-secret"service:type: NodePortport: 3000# -- Observability# subsection: serviceMonitor# Enable metrics for the rag-server to be sent to PrometheusserviceMonitor:enabled: true# subsection: opentelemetry-collector# enable OpenTelemetry OTEL collectoropentelemetry-collector:enabled: truemode: deploymentimage:repository: docker.io/otel/opentelemetry-collector-contribtag: "0.140.0"command:name: otelcol-contribconfig:receivers:otlp:protocols:grpc:endpoint: '${env:MY_POD_IP}:4317'http:cors:allowed_origins:- "*"exporters:zipkin:endpoint: "http://rag-zipkin:9411/api/v2/spans"debug:verbosity: detailedprometheus:endpoint: ${env:MY_POD_IP}:8889extensions:health_check: {}zpages:endpoint: 0.0.0.0:55679processors:batch: {}tail_sampling:policies:- name: drop_noisy_traces_urltype: string_attributestring_attribute:key: http.targetvalues:- \/healthenabled_regex_matching: trueinvert_match: truetransform:trace_statements:- context: spanstatements:- set(status.code, 1) where attributes["http.path"] == "/health"- replace_match(attributes["http.route"], "/v1", attributes["http.target"]) where attributes["http.target"] != nil- replace_pattern(name, "/v1", attributes["http.route"]) where attributes["http.route"] != nil- set(name, Concat([name, attributes["http.url"]], " ")) where name == "POST"service:extensions: [zpages, health_check]pipelines:traces:receivers: [otlp]exporters: [debug, zipkin]processors: [tail_sampling, transform]metrics:exporters:- debug- prometheusprocessors:- memory_limiter- batchreceivers:- otlp- prometheuslogs:receivers: [otlp]exporters: [debug]processors: [batch]ports:metrics:enabled: truecontainerPort: 8889servicePort: 8889protocol: TCP# subsection: zipkin# Jaeger web UI is already deployed in the Enterprise RA clusterzipkin:enabled: false# subsection: kube-prometheus-stack# kube-prometheus and grafana are already deployed in the Enterprise RA clusterkube-prometheus-stack:enabled: false# -- NIM microservices (dependencies) configuration# Disable all NIM microservices, NIM microservices are deployed using independent# NIM service, NeMo Retriever (NV-Ingest) or Run:ai deployments# subsection: nim-llm# NIM LLMnimOperator:draResources:enabled: falsename: "rag-claim"type: "TimeSlicing"nim-llm:enabled: false# subsection: nvidia-nim-llama-32-nv-embedqa-1b-v2# NIM Text Embeddingnvidia-nim-llama-32-nv-embedqa-1b-v2:enabled: false# subsection: text-reranking-nim# NIM Text Rerankingnvidia-nim-llama-32-nv-rerankqa-1b-v2:enabled: false# subsection: nim-vlm# NIM Vision-Language (VLM)nim-vlm:enabled: false# -- NV-Ingest dependency configuration# subsection: NV-Ingest# NV-Ingest Service is deployed separatelyNV-Ingest:enabled: false