forked from NVIDIA-AI-Blueprints/rag
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalues.yaml
More file actions
1216 lines (1119 loc) · 36.1 KB
/
values.yaml
File metadata and controls
1216 lines (1119 loc) · 36.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# -- Global chart configuration
nameOverride: ""
fullnameOverride: "rag-server"
# subsection: rag-server
# RAG Orchestrator Service
# -- Kubernetes scheduling
nodeSelector: {}
affinity: {}
tolerations: []
# -- Common service account for rag-server
serviceAccount:
create: true
name: ""
automount: true
annotations: {}
# -- Replicas for rag-server
replicaCount: 1
# -- Namespace for documentation/reference; not actively used in templates
namespace: "nv-nvidia-blueprint-rag"
# -- Image pull secret for all images used by this chart
imagePullSecret:
name: "ngc-secret"
registry: "nvcr.io"
username: "$oauthtoken"
password: ""
create: true
# -- Secret containing API keys for NVIDIA NGC model registry
ngcApiSecret:
name: "ngc-api"
password: ""
create: true
# -- Secret containing service-specific API keys for RAG services
apiKeysSecret:
# -- Enable automatic secret creation from values below
create: true
# -- Name of the secret to create or reference
name: "rag-api-keys"
# -- Reference to existing secret (if set, chart won't create secret, will reference this instead)
existingSecret: ""
# -- Service-specific API keys (optional, empty means use NVIDIA_API_KEY fallback)
# Note: Non-empty values act as enable flags - only non-empty keys are injected as env vars
llmApiKey: ""
embeddingsApiKey: ""
rankingApiKey: ""
queryRewriterApiKey: ""
filterExpressionGeneratorApiKey: ""
vlmApiKey: ""
summaryLlmApiKey: ""
reflectionLlmApiKey: ""
# -- RAG server container image
image:
repository: nvcr.io/nvidia/blueprint/rag-server
tag: "2.4.0"
pullPolicy: Always
# -- RAG server service configuration
service:
type: ClusterIP
port: 8081
# -- RAG server container resources
resources:
limits:
memory: "64Gi"
requests:
memory: "8Gi"
# -- Probes for rag-server (optional)
livenessProbe:
httpGet:
path: /health
port: 8081
initialDelaySeconds: 10
periodSeconds: 15
timeoutSeconds: 5
failureThreshold: 3
readinessProbe:
httpGet:
path: /health
port: 8081
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
# -- RAG server runtime configuration
server:
workers: 8
# -- Enable/disable creation of prompt ConfigMap
promptConfig:
enabled: true
# -- Environment variables for rag-server
envVars:
EXAMPLE_PATH: "./nvidia_rag/rag_server"
PROMPT_CONFIG_FILE: "/prompt.yaml"
PROMETHEUS_MULTIPROC_DIR: "/tmp-data/prom_data"
##===Authentication===
## Service-specific API keys are now managed via apiKeysSecret section above.
## See apiKeysSecret configuration for details on setting service-specific keys.
##===MINIO specific configurations used to store multimodal base64 content===
MINIO_ENDPOINT: "rag-minio:9000"
MINIO_ACCESSKEY: "minioadmin"
MINIO_SECRETKEY: "minioadmin"
##===Redis configurations for summary status tracking===
REDIS_HOST: "rag-redis-master"
REDIS_PORT: "6379"
REDIS_DB: "0"
##===Vector DB specific configurations===
# URL on which vectorstore is hosted
APP_VECTORSTORE_URL: "http://milvus:19530" # Use "http://rag-eck-elasticsearch-es-http:9200" for elasticsearch
# Type of vectordb used to store embedding supported type "milvus" or "elasticsearch"
APP_VECTORSTORE_NAME: "milvus"
# Index type (e.g., GPU_CAGRA)
APP_VECTORSTORE_INDEXTYPE: "GPU_CAGRA"
# Type of vectordb search to be used
APP_VECTORSTORE_SEARCHTYPE: "dense"
# Type of ranker to use for vector store in case of Hybrid Search
APP_VECTORSTORE_RANKER_TYPE: "rrf" # Can be "rrf" or "weighted"
# Weight for dense vector search in case of "weighted" Hybrid Search
APP_VECTORSTORE_DENSE_WEIGHT: "0.5"
# Weight for sparse vector search in case of "weighted" Hybrid Search
APP_VECTORSTORE_SPARSE_WEIGHT: "0.5"
# Boolean to control GPU search for milvus vectorstore specific to rag-server
APP_VECTORSTORE_ENABLEGPUSEARCH: "True"
# ef: Parameter controlling query time/accuracy trade-off. Higher ef leads to more accurate but slower search.
APP_VECTORSTORE_EF: "100"
# Username for vector store authentication
APP_VECTORSTORE_USERNAME: ""
# Password for vector store authentication
APP_VECTORSTORE_PASSWORD: ""
# Elasticsearch API key auth (optional). Prefer these over username/password when set.
# Provide either base64 APP_VECTORSTORE_APIKEY or split ID/SECRET.
APP_VECTORSTORE_APIKEY_ID: ""
APP_VECTORSTORE_APIKEY_SECRET: ""
APP_VECTORSTORE_APIKEY: ""
# vectorstore collection name to store embeddings
COLLECTION_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 False
VECTOR_DB_TOPK: "100"
# Number of document chunks to insert in LLM prompt
APP_RETRIEVER_TOPK: "10"
##===LLM Model specific configurations===
APP_LLM_MODELNAME: "nvidia/llama-3.3-nemotron-super-49b-v1.5"
# URL on which LLM model is hosted. If "", Nvidia hosted API is used
APP_LLM_SERVERURL: "nim-llm:8000"
# LLM model parameters
LLM_MAX_TOKENS: "32768"
LLM_TEMPERATURE: "0"
LLM_TOP_P: "1.0"
# Enable/disable thinking/reasoning for nemotron-3-nano models (30b variant)
# Set to "true" to enable reasoning mode with reasoning_budget
# Set to "false" to disable reasoning and get direct answers
ENABLE_NEMOTRON_3_NANO_THINKING: "true"
##===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. If "", Nvidia hosted API is used
APP_QUERYREWRITER_SERVERURL: "nim-llm:8000"
##===Filter Expression Generator Model specific configurations===
APP_FILTEREXPRESSIONGENERATOR_MODELNAME: "nvidia/llama-3.3-nemotron-super-49b-v1.5"
# URL on which filter expression generator model is hosted. If "", Nvidia hosted API is used
APP_FILTEREXPRESSIONGENERATOR_SERVERURL: "nim-llm:8000"
# enable filter expression generator for natural language to filter expression conversion
ENABLE_FILTER_GENERATOR: "False"
##===Embedding Model specific configurations===
# URL on which embedding model is hosted. If "", Nvidia hosted API is used
APP_EMBEDDINGS_SERVERURL: "nemoretriever-embedding-ms:8000/v1"
APP_EMBEDDINGS_MODELNAME: "nvidia/llama-3.2-nv-embedqa-1b-v2"
APP_EMBEDDINGS_DIMENSIONS: "2048"
##===Reranking Model specific configurations===
# URL on which ranking model is hosted. If "", Nvidia hosted API is used
APP_RANKING_SERVERURL: "nemoretriever-ranking-ms:8000"
APP_RANKING_MODELNAME: "nvidia/llama-3.2-nv-rerankqa-1b-v2"
ENABLE_RERANKER: "True"
# Default confidence threshold for filtering documents by reranker relevance scores (0.0 to 1.0)
RERANKER_CONFIDENCE_THRESHOLD: "0.0"
##===VLM Model specific configurations===
ENABLE_VLM_INFERENCE: "false"
# When true, allow falling back to LLM flow if no images are present in query/messages/context.
# When false, always route generation through VLM when ENABLE_VLM_INFERENCE is true.
VLM_TO_LLM_FALLBACK: "true"
# Max images sent to VLM per request (query + context)
APP_VLM_MAX_TOTAL_IMAGES: "5"
# VLM generation parameters
APP_VLM_MAX_TOKENS: "8192"
APP_VLM_TEMPERATURE: "0.1"
APP_VLM_TOP_P: "1.0"
# VLM server URL
APP_VLM_SERVERURL: "http://nim-vlm:8000/v1"
# VLM model name
APP_VLM_MODELNAME: "nvidia/nemotron-nano-12b-v2-vl"
# === Text Splitter ===
APP_TEXTSPLITTER_CHUNKSIZE: "2000"
APP_TEXTSPLITTER_CHUNKOVERLAP: "200"
# === General ===
# Choose whether to enable citations in the response
ENABLE_CITATIONS: "True"
# Choose whether to enable/disable guardrails
ENABLE_GUARDRAILS: "False"
# Log level for server, supported level NOTSET, DEBUG, INFO, WARN, ERROR, CRITICAL
LOGLEVEL: "INFO"
# enable multi-turn conversation in the rag chain - this controls conversation history usage
# while doing query rewriting and in LLM prompt
ENABLE_MULTITURN: "True"
# enable query rewriting for multiturn conversation in the rag chain.
# This will improve accuracy of the retrieiver pipeline but increase latency due to an additional LLM call
ENABLE_QUERYREWRITER: "False"
# enable concatenating 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"
# === Tracing ===
APP_TRACING_ENABLED: "False"
# HTTP endpoint
APP_TRACING_OTLPHTTPENDPOINT: "http://rag-opentelemetry-collector:4318/v1/traces"
# GRPC endpoint
APP_TRACING_OTLPGRPCENDPOINT: "grpc://rag-opentelemetry-collector:4317"
# === Reflection ===
# enable reflection (context relevance and response groundedness checking) in the rag chain
ENABLE_REFLECTION: "false"
# Maximum number of context relevance loop iterations
MAX_REFLECTION_LOOP: "3"
# Minimum relevance score threshold (0-2)
CONTEXT_RELEVANCE_THRESHOLD: "1"
# Minimum groundedness score threshold (0-2)
RESPONSE_GROUNDEDNESS_THRESHOLD: "1"
# reflection llm
REFLECTION_LLM: "nvidia/llama-3.3-nemotron-super-49b-v1.5"
# reflection llm server url. If "", Nvidia hosted API is used
REFLECTION_LLM_SERVERURL: "nim-llm:8000"
# Choose whether to enable source metadata in document content during generation
ENABLE_SOURCE_METADATA: "true"
# Whether to filter content within <think></think> tags in model responses
FILTER_THINK_TOKENS: "true"
NEMO_GUARDRAILS_URL: "nemo-guardrails:7331"
# enable iterative query decomposition
ENABLE_QUERY_DECOMPOSITION: "false"
# maximum recursion depth for iterative query decomposition
MAX_RECURSION_DEPTH: "3"
# -- Ingestor Server
# subsection: ingestor-server
# Ingestor API Service
ingestor-server:
enabled: true
appName: ingestor-server
# -- Pod scheduling
nodeSelector: {}
affinity: {}
tolerations: []
replicaCount: 1
imagePullSecret:
create: false
name: "ngc-secret"
registry: "nvcr.io"
username: "$oauthtoken"
password: ""
image:
repository: nvcr.io/nvidia/blueprint/ingestor-server
tag: "2.4.0"
pullPolicy: Always
# -- Service config for ingestor-server
service:
type: ClusterIP
port: 8082
server:
workers: 1
# -- Probes for ingestor-server (optional)
livenessProbe: {}
readinessProbe: {}
resources:
limits:
memory: "25Gi"
requests:
memory: "25Gi"
envVars:
# Path to example directory relative to repo root
EXAMPLE_PATH: "src/nvidia_rag/ingestor_server"
# Absolute path to custom prompt.yaml file
PROMPT_CONFIG_FILE: "/prompt.yaml"
# === Vector Store Configurations ===
APP_VECTORSTORE_URL: "http://milvus:19530" # Use "http://rag-eck-elasticsearch-es-http:9200" for elasticsearch
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 Search
APP_VECTORSTORE_RANKER_TYPE: "rrf" # Can be "rrf" or "weighted"
# Weight for dense vector search in case of "weighted" Hybrid Search
APP_VECTORSTORE_DENSE_WEIGHT: "0.5"
# Weight for sparse vector search in case of "weighted" Hybrid Search
APP_VECTORSTORE_SPARSE_WEIGHT: "0.5"
APP_VECTORSTORE_ENABLEGPUINDEX: "True"
APP_VECTORSTORE_ENABLEGPUSEARCH: "True"
# Username for vector store authentication
APP_VECTORSTORE_USERNAME: ""
# Password for vector store authentication
APP_VECTORSTORE_PASSWORD: ""
# Elasticsearch API key auth (optional). Prefer these over username/password when set.
# Provide either base64 APP_VECTORSTORE_APIKEY or split ID/SECRET.
APP_VECTORSTORE_APIKEY_ID: ""
APP_VECTORSTORE_APIKEY_SECRET: ""
APP_VECTORSTORE_APIKEY: ""
COLLECTION_NAME: "multimodal_data"
# === MinIO Configurations ===
MINIO_ENDPOINT: "rag-minio:9000"
MINIO_ACCESSKEY: "minioadmin"
MINIO_SECRETKEY: "minioadmin"
# === Authentication ===
## Service-specific API keys are managed via apiKeysSecret section (see top-level config).
## APP_EMBEDDINGS_APIKEY and SUMMARY_LLM_APIKEY are loaded from secrets automatically.
# === Embeddings Configurations ===
APP_EMBEDDINGS_SERVERURL: "nemoretriever-embedding-ms:8000/v1"
APP_EMBEDDINGS_MODELNAME: "nvidia/llama-3.2-nv-embedqa-1b-v2"
APP_EMBEDDINGS_DIMENSIONS: "2048"
# === NV-Ingest Configurations ===
APP_NVINGEST_MESSAGECLIENTHOSTNAME: "rag-nv-ingest"
APP_NVINGEST_MESSAGECLIENTPORT: "7670"
# === NV-Ingest extraction configurations ===
APP_NVINGEST_PDFEXTRACTMETHOD: "None" # Method used for text extraction from "None", "pdfium", "nemotron_parse"
APP_NVINGEST_EXTRACTTEXT: "True" # Enable text extraction
APP_NVINGEST_EXTRACTINFOGRAPHICS: "False" # Enable infographic extraction
APP_NVINGEST_EXTRACTTABLES: "True" # Enable table extraction
APP_NVINGEST_EXTRACTCHARTS: "True" # Enable chart extraction
APP_NVINGEST_EXTRACTIMAGES: "False" # Enable image extraction
APP_NVINGEST_EXTRACTPAGEASIMAGE: "False" # Extracts each page as image if enabled
APP_NVINGEST_STRUCTURED_ELEMENTS_MODALITY: "" # "image", "text_image"
APP_NVINGEST_IMAGE_ELEMENTS_MODALITY: "" # "image"
APP_NVINGEST_TEXTDEPTH: "page" # Extract text by "page" or "document"
# === NV-Ingest caption configurations ===
APP_NVINGEST_CAPTIONMODELNAME: "nvidia/nemotron-nano-12b-v2-vl" # Model name for captioning
APP_NVINGEST_CAPTIONENDPOINTURL: "" # Endpoint URL for captioning model
# === NV-Ingest save to disk configurations ===
APP_NVINGEST_SAVETODISK: "False"
NVINGEST_MINIO_BUCKET: "nv-ingest" # If this value is modified, ensure the corresponding Milvus bucketName is also updated
# === NV-Ingest performance configurations ===
APP_NVINGEST_ENABLE_PDF_SPLIT_PROCESSING: "False"
APP_NVINGEST_PAGES_PER_CHUNK: "16"
# === General ===
# Summary Model Configurations
SUMMARY_LLM: "nvidia/llama-3.3-nemotron-super-49b-v1.5"
SUMMARY_LLM_SERVERURL: "nim-llm: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"
LOGLEVEL: "INFO"
# === NV-Ingest splitting configurations ===
APP_NVINGEST_CHUNKSIZE: "512" # Size of chunks for splitting
APP_NVINGEST_CHUNKOVERLAP: "150" # Overlap size for chunks
APP_NVINGEST_ENABLEPDFSPLITTER: "True" # Enable PDF splitter
APP_NVINGEST_SEGMENTAUDIO: "False" # Enable audio segmentation for NV Ingest
# === Redis configurations ===
REDIS_HOST: "rag-redis-master"
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: "16"
NV_INGEST_CONCURRENT_BATCHES: "4"
ENABLE_NV_INGEST_DYNAMIC_BATCHING: "True"
# === Tracing ===
APP_TRACING_ENABLED: "False"
# HTTP endpoint
APP_TRACING_OTLPHTTPENDPOINT: "http://otel-collector:4318/v1/traces"
# GRPC endpoint
APP_TRACING_OTLPGRPCENDPOINT: "grpc://otel-collector:4317"
# -- Persistent storage for ingestor-server data directory
# If enabled, mounts a PVC at the path used by INGESTOR_SERVER_DATA_DIR
persistence:
enabled: true
# If set, use an existing PVC by name; when empty and enabled, a PVC is created
existingClaim: ""
# StorageClass to use for the PVC; keep empty to use the cluster default
storageClass: ""
# Access modes for the PVC
accessModes:
- ReadWriteOnce
# Requested size for the PVC
size: 50Gi
# Mount path inside the container; defaults to envVars.INGESTOR_SERVER_DATA_DIR if empty
mountPath: "/data/"
# Optional subPath within the PVC
subPath: ""
# -- Frontend
# subsection: frontend
# rag frontend Frontend
frontend:
enabled: true
appName: "rag-frontend"
replicaCount: 1
image:
repository: nvcr.io/nvidia/blueprint/rag-frontend
pullPolicy: IfNotPresent
tag: "2.4.0"
imagePullSecret:
name: "ngc-secret"
registry: "nvcr.io"
username: "$oauthtoken"
password: ""
service:
type: NodePort
port: 3000
# -- Probes for frontend (optional)
livenessProbe: {}
readinessProbe: {}
envVars:
# Runtime environment variables for Vite frontend
# Note: Model names are now managed by frontend settings store
- name: VITE_API_CHAT_URL
value: "http://rag-server:8081/v1"
- name: VITE_API_VDB_URL
value: "http://ingestor-server:8082/v1"
- name: VITE_MILVUS_URL
value: "http://milvus:19530"
# -- Elasticsearch dependency toggle
eck-elasticsearch:
enabled: false
http:
tls:
selfSignedCertificate:
disabled: true
nodeSets:
- name: default
count: 1
config:
node.store.allow_mmap: false
xpack.security.enabled: false
xpack.security.http.ssl.enabled: false
xpack.security.transport.ssl.enabled: false
podTemplate:
spec:
containers:
- name: elasticsearch
# Override readiness probe to not require authentication
readinessProbe:
exec:
command:
- bash
- -c
- |
curl -s http://localhost:9200/_cluster/health | grep -q '"status":"green"\|"status":"yellow"'
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
# -- Observability
# subsection: serviceMonitor
serviceMonitor:
enabled: false
# subsection: opentelemetry-collector
opentelemetry-collector:
enabled: false
mode: deployment
image:
repository: docker.io/otel/opentelemetry-collector-contrib
tag: "0.140.0"
command:
name: otelcol-contrib
config:
receivers:
otlp:
protocols:
grpc:
endpoint: '${env:MY_POD_IP}:4317'
http:
cors:
allowed_origins:
- "*"
exporters:
# NOTE: Prior to v0.86.0 use `logging` instead of `debug`.
zipkin:
endpoint: "http://rag-zipkin:9411/api/v2/spans"
debug:
verbosity: detailed
prometheus:
endpoint: ${env:MY_POD_IP}:8889
extensions:
health_check: {}
zpages:
endpoint: 0.0.0.0:55679
processors:
batch: {}
tail_sampling:
# filter out health checks
# https://github.com/open-telemetry/opentelemetry-collector/issues/2310#issuecomment-1268157484
policies:
- name: drop_noisy_traces_url
type: string_attribute
string_attribute:
key: http.target
values:
- \/health
enabled_regex_matching: true
invert_match: true
transform:
trace_statements:
- context: span
statements:
- set(status.code, 1) where attributes["http.path"] == "/health"
# after the http target has been anonymized, replace other aspects of the span
- replace_match(attributes["http.route"], "/v1", attributes["http.target"]) where attributes["http.target"] != nil
# replace the title of the span with the route to be more descriptive
- replace_pattern(name, "/v1", attributes["http.route"]) where attributes["http.route"] != nil
# set the route to equal the URL if it's nondescriptive (for the embedding case)
- 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
- prometheus
processors:
- memory_limiter
- batch
receivers:
- otlp
- prometheus
logs:
receivers: [otlp]
exporters: [debug]
processors: [batch]
ports:
metrics:
enabled: true
containerPort: 8889
servicePort: 8889
protocol: TCP
# subsection: zipkin
zipkin:
enabled: false
image:
repository: docker.io/openzipkin/zipkin
tag: 3.5.0
# subsection: kube-prometheus-stack
kube-prometheus-stack:
enabled: false
prometheus-node-exporter:
service:
port: 9100
targetPort: 9100
hostNetwork: false
prometheus:
serviceMonitor:
interval: "1s"
prometheusSpec:
scrapeInterval: "1s"
evaluationInterval: "1s"
additionalScrapeConfigs:
- job_name: rag-app
scrape_interval: 5s
metrics_path: /metrics
static_configs:
- targets:
# If the app is in another namespace, use rag-server.<namespace>.svc:8081
- rag-server:8081
grafana:
adminUser: admin
adminPassword: "admin"
prometheusOperator:
crds:
enabled: false
# -- NIMs (dependencies) configuration
# subsection: nim-llm
# NIM LLM
nimOperator:
draResources:
enabled: false
name: "rag-claim"
type: "TimeSlicing"
nim-llm:
enabled: true
replicas: 1
service:
name: "nim-llm"
image:
repository: nvcr.io/nim/nvidia/llama-3.3-nemotron-super-49b-v1.5
pullPolicy: IfNotPresent
tag: "1.14.0"
resources:
limits:
nvidia.com/gpu: 1
requests:
nvidia.com/gpu: 1
nodeSelector: {}
tolerations: []
model:
engine: tensorrt_llm
# -- Uncomment this section to enable FP8 precision and throughput profile for the NIM LLM, change the GPU product according to the GPU you are using
# precision: "fp8"
# qosProfile: "throughput"
# tensorParallelism: "1"
# gpus:
# - product: "rtx6000_blackwell_sv"
storage:
pvc:
create: true
size: "120Gi"
volumeAccessMode: ReadWriteOnce
storageClass: ""
sharedMemorySizeLimit: "16Gi"
# draResources:
# - claimCreationSpec:
# devices:
# - name: nimllm-gpu
# count: 1
# deviceClassName: gpu.nvidia.com
# driverName: gpu.nvidia.com
# attributeSelectors:
# - key: driverVersion
# op: GreaterThanOrEqual
# value:
# versionValue: "550.127.8"
# capacitySelectors:
# - key: memory
# op: GreaterThanOrEqual
# value: 40Gi
env:
- name: NIM_HTTP_API_PORT
value: "8000"
- name: NIM_TRITON_LOG_VERBOSE
value: "1"
- name: NIM_SERVED_MODEL_NAME
value: "nvidia/llama-3.3-nemotron-super-49b-v1.5"
# - name: CUDA_VISIBLE_DEVICES
# value: "0"
expose:
service:
name: http
type: ClusterIP
port: 8000
grpcPort: 8001
# subsection: nvidia-nim-llama-32-nv-embedqa-1b-v2
# NIM Text Embedding
nvidia-nim-llama-32-nv-embedqa-1b-v2:
enabled: true
replicas: 1
service:
name: "nemoretriever-embedding-ms"
image:
repository: nvcr.io/nim/nvidia/llama-3.2-nv-embedqa-1b-v2
tag: "1.10.1"
pullPolicy: IfNotPresent
resources:
limits:
nvidia.com/gpu: 1
requests:
nvidia.com/gpu: 1
storage:
pvc:
create: true
size: "50Gi"
volumeAccessMode: ReadWriteOnce
storageClass: ""
nodeSelector: {}
tolerations: []
# draResources:
# - resourceClaimName: rag-claim
env:
- name: NIM_HTTP_API_PORT
value: "8000"
- name: NIM_TRITON_LOG_VERBOSE
value: "1"
- name: OMP_NUM_THREADS
value: "1"
- name: NIM_TRITON_PERFORMANCE_MODE
value: "throughput"
expose:
service:
name: http
type: ClusterIP
port: 8000
grpcPort: 8001
# subsection: nvidia-nim-llama-32-nemoretriever-1b-vlm-embed-v1
# NIM VLM Embedding
nvidia-nim-llama-32-nemoretriever-1b-vlm-embed-v1:
enabled: false
service:
name: "nemoretriever-vlm-embedding-ms"
image:
repository: nvcr.io/nvidia/nemo-microservices/llama-3.2-nemoretriever-1b-vlm-embed-v1
tag: "1.7.0"
pullPolicy: IfNotPresent
replicas: 1
resources:
limits:
nvidia.com/gpu: 1
requests:
nvidia.com/gpu: 1
nodeSelector: {}
tolerations: []
# draResources:
# - resourceClaimName: rag-claim
storage:
pvc:
create: true
size: "50Gi"
volumeAccessMode: ReadWriteOnce
storageClass: ""
env:
- name: NIM_HTTP_API_PORT
value: "8000"
- name: NIM_TRITON_LOG_VERBOSE
value: "1"
expose:
service:
name: http
type: ClusterIP
port: 8000
grpcPort: 8001
# subsection: text-reranking-nim
# NIM Text Reranking
nvidia-nim-llama-32-nv-rerankqa-1b-v2:
enabled: true
replicas: 1
service:
name: "nemoretriever-ranking-ms"
image:
repository: nvcr.io/nim/nvidia/llama-3.2-nv-rerankqa-1b-v2
tag: "1.8.0"
pullPolicy: IfNotPresent
resources:
limits:
nvidia.com/gpu: 1
requests:
nvidia.com/gpu: 1
nodeSelector: {}
tolerations: []
# draResources:
# - resourceClaimName: rag-claim
storage:
pvc:
create: true
size: "50Gi"
volumeAccessMode: ReadWriteOnce
storageClass: ""
env: []
expose:
service:
name: http
type: ClusterIP
port: 8000
grpcPort: 8001
# subsection: nim-vlm
# NIM Vision-Language (VLM)
nim-vlm:
enabled: false
replicas: 1
service:
name: "nim-vlm"
image:
repository: nvcr.io/nim/nvidia/nemotron-nano-12b-v2-vl
tag: "1.5.0"
pullPolicy: IfNotPresent
resources:
limits:
nvidia.com/gpu: 1
requests:
nvidia.com/gpu: 1
nodeSelector: {}
tolerations: []
# draResources:
# - resourceClaimName: rag-claim
storage:
pvc:
create: true
size: "50Gi"
volumeAccessMode: ReadWriteOnce
storageClass: ""
env: []
expose:
service:
name: http
type: ClusterIP
port: 8000
grpcPort: 8001
# -- NV-Ingest dependency configuration
# subsection: nv-ingest
# NV-Ingest Service
nv-ingest:
enabled: true
imagePullSecrets:
- name: "ngc-secret"
ngcApiSecret:
create: false
ngcImagePullSecret:
create: false
image:
repository: "nvcr.io/nvidia/nemo-microservices/nv-ingest"
tag: "26.1.1"
resources:
limits:
nvidia.com/gpu: 0
envVars:
ARROW_DEFAULT_MEMORY_POOL: "system"
OMP_NUM_THREADS: "1"
INGEST_LOG_LEVEL: WARNING
INGEST_RAY_LOG_LEVEL: "PRODUCTION"
INGEST_DYNAMIC_MEMORY_THRESHOLD: "0.80"
INGEST_DISABLE_DYNAMIC_SCALING: "True"
NV_INGEST_MAX_UTIL: 48
INGEST_EDGE_BUFFER_SIZE: 64
MRC_IGNORE_NUMA_CHECK: 1
READY_CHECK_ALL_COMPONENTS: "False"
REDIS_MORPHEUS_TASK_QUEUE: morpheus_task_queue
REDIS_INGEST_TASK_QUEUE: "ingest_task_queue"
NV_INGEST_DEFAULT_TIMEOUT_MS: "1234"
MAX_INGEST_PROCESS_WORKERS: 16
VLM_CAPTION_PROMPT: "Caption the content of this image"
# Ray internals configuration
RAY_num_grpc_threads: "1"
RAY_num_server_call_thread: "1"
RAY_worker_num_grpc_internal_threads: "1"
EMBEDDING_NIM_ENDPOINT: "http://nemoretriever-embedding-ms:8000/v1"
EMBEDDING_NIM_MODEL_NAME: "nvidia/llama-3.2-nv-embedqa-1b-v2"
MESSAGE_CLIENT_HOST: "rag-redis-master"
MESSAGE_CLIENT_PORT: 6379
MESSAGE_CLIENT_TYPE: "redis"
MINIO_INTERNAL_ADDRESS: "rag-minio:9000"
MINIO_PUBLIC_ADDRESS: "http://localhost:9000"
MINIO_BUCKET: "nv-ingest"
MINIO_ACCESS_KEY: "minioadmin"
MINIO_SECRET_KEY: "minioadmin"
MILVUS_ENDPOINT: "http://milvus:19530"
OTEL_EXPORTER_OTLP_ENDPOINT: "otel-collector:4317"
MODEL_PREDOWNLOAD_PATH: "/workspace/models/"
INSTALL_AUDIO_EXTRACTION_DEPS: "true"
COMPONENTS_TO_READY_CHECK: "ALL"
# OCR routing (defaults to NeMo Retriever OCR service)
OCR_GRPC_ENDPOINT: nemoretriever-ocr-v1:8001
OCR_HTTP_ENDPOINT: http://nemoretriever-ocr-v1:8000/v1/infer
OCR_INFER_PROTOCOL: grpc
OCR_MODEL_NAME: scene_text_ensemble
# NeMo Retriever Parse (VLM text extraction)
NEMOTRON_PARSE_HTTP_ENDPOINT: http://nemotron-parse:8000/v1/chat/completions
NEMOTRON_PARSE_INFER_PROTOCOL: http
NEMOTRON_PARSE_MODEL_NAME: nvidia/nemotron-parse
# PDF splitting configuration
PDF_SPLIT_PAGE_COUNT: "32"
# YOLOX endpoints
YOLOX_PAGE_IMAGE_FORMAT: "JPEG"
YOLOX_GRPC_ENDPOINT: nemoretriever-page-elements-v3:8001
YOLOX_HTTP_ENDPOINT: http://nemoretriever-page-elements-v3:8000/v1/infer
YOLOX_INFER_PROTOCOL: grpc
YOLOX_GRAPHIC_ELEMENTS_GRPC_ENDPOINT: nemoretriever-graphic-elements-v1:8001
YOLOX_GRAPHIC_ELEMENTS_HTTP_ENDPOINT: http://nemoretriever-graphic-elements-v1:8000/v1/infer
YOLOX_GRAPHIC_ELEMENTS_INFER_PROTOCOL: grpc
YOLOX_TABLE_STRUCTURE_GRPC_ENDPOINT: nemoretriever-table-structure-v1:8001
YOLOX_TABLE_STRUCTURE_HTTP_ENDPOINT: http://nemoretriever-table-structure-v1:8000/v1/infer
YOLOX_TABLE_STRUCTURE_INFER_PROTOCOL: grpc
# Captioning
VLM_CAPTION_MODEL_NAME: nvidia/nemotron-nano-12b-v2-vl
VLM_CAPTION_ENDPOINT: http://nim-vlm:8000/v1/chat/completions
# Audio service
AUDIO_GRPC_ENDPOINT: nv-ingest-riva-nim:50051
AUDIO_INFER_PROTOCOL: grpc
# Expose internal Milvus/MinIO config managed by nv-ingest subchart
milvusDeployed: true
milvus:
# Uncomment this section to enable authentication for Milvus
# extraConfigFiles:
# user.yaml: |+
# common:
# security:
# authorizationEnabled: true
# defaultRootPassword: Milvus
image:
all:
repository: docker.io/milvusdb/milvus
tag: v2.6.5-gpu
tools:
repository: docker.io/milvusdb/milvus-config-tool
tag: v0.1.2
pullPolicy: IfNotPresent
etcd:
image:
repository: milvusdb/etcd
tag: "3.5.23-r2"
standalone:
resources:
limits:
nvidia.com/gpu: 1
minio:
image:
repository: docker.io/minio/minio
tag: "RELEASE.2025-09-07T16-13-09Z"
accessKey: minioadmin
secretKey: minioadmin
bucketName: nv-ingest
fullnameOverride: milvus
# Redis Master
redis:
image:
repository: redis
tag: 8.2.1
# Ensure nv-ingest does not deploy its own observability components
otelDeployed: false
zipkinDeployed: false
nimOperator:
# Ensure nv-ingest does not deploy its own embedding NIM
embedqa:
enabled: false
# NeMo Retriever OCR (default)