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
571 lines (515 loc) · 16.7 KB
/
Copy pathvalues.yaml
File metadata and controls
571 lines (515 loc) · 16.7 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
appName: rag-server
nodeSelector: {}
affinity: {}
replicaCount: 1
namespace: "nv-nvidia-blueprint-rag"
# Secrets
imagePullSecret:
name: "ngc-secret"
registry: "nvcr.io"
username: "$oauthtoken"
password: ""
create: true
ngcApiSecret:
name: "ngc-api"
password: ""
create: true
# RAG server config
image:
repository: nvcr.io/nvidia/blueprint/rag-server
tag: "2.2.0"
pullPolicy: Always
server:
workers: 8
resources:
limits:
memory: "64Gi"
requests:
memory: "8Gi"
envVars:
EXAMPLE_PATH: "./nvidia_rag/rag_server"
PROMPT_CONFIG_FILE: "/prompt.yaml"
##===MINIO specific configurations which is used to store the multimodal base64 content===
MINIO_ENDPOINT: "rag-minio:9000"
MINIO_ACCESSKEY: "minioadmin"
MINIO_SECRETKEY: "minioadmin"
##===Vector DB specific configurations===
# URL on which vectorstore is hosted
APP_VECTORSTORE_URL: "http://milvus:19530"
# Type of vectordb used to store embedding supported type milvus
APP_VECTORSTORE_NAME: "milvus"
# Type of vectordb search to be used
APP_VECTORSTORE_SEARCHTYPE: "dense"
# Milvus Consistency level for vector store, supported values are "Bounded", "Strong", "Session"
APP_VECTORSTORE_CONSISTENCYLEVEL: "Strong"
# 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"
# URL on which LLM model is hosted. If "", Nvidia hosted API is used
APP_LLM_SERVERURL: "nim-llm:8000"
##===Query Rewriter Model specific configurations===
APP_QUERYREWRITER_MODELNAME: "meta/llama-3.1-8b-instruct"
# URL on which query rewriter model is hosted. If "", Nvidia hosted API is used
APP_QUERYREWRITER_SERVERURL: "nim-llm-llama-8b:8000"
##===Embedding Model specific configurations===
# URL on which embedding model is hosted. If "", Nvidia hosted API is used
APP_EMBEDDINGS_SERVERURL: "nemoretriever-embedding-ms:8000"
APP_EMBEDDINGS_MODELNAME: "nvidia/llama-3.2-nv-embedqa-1b-v2"
##===Reranking Model specific configurations===
# URL on which ranking model is hosted. If "", Nvidia hosted API is used
APP_RANKING_SERVERURL: "nemoretriever-reranking-ms:8000"
APP_RANKING_MODELNAME: "nvidia/llama-3.2-nv-rerankqa-1b-v2"
ENABLE_RERANKER: "True"
# === 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"
# number of last n chat messages to consider from the provided conversation history
CONVERSATION_HISTORY: "5"
# === 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: "mistralai/mixtral-8x22b-instruct-v0.1"
# reflection llm server url. If "", Nvidia hosted API is used
REFLECTION_LLM_SERVERURL: ""
# 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"
# Whether to enable thinking in the rag chain for llama-3.3-nemotron-super-49b model
ENABLE_NEMOTRON_THINKING: "false"
NEMO_GUARDRAILS_URL: "nemo-guardrails-microservice:7331"
##===VLM Model specific configurations===
ENABLE_VLM_INFERENCE: "false"
APP_VLM_SERVERURL: "http://nim-vlm:8000/v1"
APP_VLM_MODELNAME: "nvidia/llama-3.1-nemotron-nano-vl-8b-v1"
# Ingestor Server
ingestor-server:
appName: ingestor-server
nodeSelector: {}
affinity: {}
replicaCount: 1
enabled: true
imagePullSecret:
create: false
name: "ngc-secret"
registry: "nvcr.io"
username: "$oauthtoken"
password: ""
image:
repository: nvcr.io/nvidia/blueprint/ingestor-server
tag: "2.2.0"
pullPolicy: Always
server:
workers: 1
resources:
limits:
memory: "25Gi"
requests:
memory: "25Gi"
envVars:
# === Vector Store Configurations ===
APP_VECTORSTORE_URL: "http://milvus:19530"
APP_VECTORSTORE_NAME: "milvus"
APP_VECTORSTORE_SEARCHTYPE: "dense"
APP_VECTORSTORE_ENABLEGPUINDEX: "True"
APP_VECTORSTORE_ENABLEGPUSEARCH: "True"
COLLECTION_NAME: "multimodal_data"
# === MinIO Configurations ===
MINIO_ENDPOINT: "rag-minio:9000"
MINIO_ACCESSKEY: "minioadmin"
MINIO_SECRETKEY: "minioadmin"
# === Embeddings Configurations ===
APP_EMBEDDINGS_SERVERURL: "nemoretriever-embedding-ms:8000"
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", "nemoretriever_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_TEXTDEPTH: "page" # Extract text by "page" or "document"
# === NV-Ingest caption configurations ===
APP_NVINGEST_CAPTIONMODELNAME: "nvidia/llama-3.1-nemotron-nano-vl-8b-v1" # Model name for captioning
APP_NVINGEST_CAPTIONENDPOINTURL: "" # Endpoint URL for captioning model
# === General ===
# Summary Model Configurations
SUMMARY_LLM: "nvidia/llama-3.3-nemotron-super-49b-v1"
SUMMARY_LLM_SERVERURL: "nim-llm:8000"
SUMMARY_LLM_MAX_CHUNK_LENGTH: "50000"
SUMMARY_CHUNK_OVERLAP: "200"
# === 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
# === Redis configurations ===
REDIS_HOST: "rag-redis-master"
REDIS_PORT: "6379"
REDIS_DB: "0"
# === Bulk upload to MinIO ===
ENABLE_MINIO_BULK_UPLOAD: "True"
TEMP_DIR: "/tmp-data"
# === NV-Ingest Batch Mode Configurations ===
NV_INGEST_FILES_PER_BATCH: "16"
NV_INGEST_CONCURRENT_BATCHES: "4"
# NV-Ingest
nv-ingest:
imagePullSecrets:
- name: "ngc-secret"
ngcApiSecret:
create: false
ngcImagePullSecret:
create: false
image:
repository: "nvcr.io/nvidia/nemo-microservices/nv-ingest"
tag: "25.6.2"
resources:
limits:
nvidia.com/gpu: 0
envVars:
INGEST_LOG_LEVEL: DEFAULT
NV_INGEST_MAX_UTIL: 48
INGEST_EDGE_BUFFER_SIZE: 64
MRC_IGNORE_NUMA_CHECK: 1
READY_CHECK_ALL_COMPONENTS: "true"
REDIS_MORPHEUS_TASK_QUEUE: morpheus_task_queue
NV_INGEST_DEFAULT_TIMEOUT_MS: "1234"
MAX_INGEST_PROCESS_WORKERS: 16
EMBEDDING_NIM_ENDPOINT: "http://nemoretriever-embedding-ms:8000/v1"
MESSAGE_CLIENT_HOST: "rag-redis-master"
MESSAGE_CLIENT_PORT: 6379
MESSAGE_CLIENT_TYPE: "redis"
MINIO_INTERNAL_ADDRESS: "rag-minio:9000"
MILVUS_ENDPOINT: "http://milvus:19530"
OTEL_EXPORTER_OTLP_ENDPOINT: "otel-collector:4317"
MODEL_PREDOWNLOAD_PATH: "/workspace/models/"
INSTALL_AUDIO_EXTRACTION_DEPS: "true"
# WAR to fix -loadbalancer from the ingestion NIMs URLs
PADDLE_GRPC_ENDPOINT: nv-ingest-paddle:8001
PADDLE_HTTP_ENDPOINT: http://nv-ingest-paddle:8000/v1/infer
PADDLE_INFER_PROTOCOL: grpc
YOLOX_GRPC_ENDPOINT: nemoretriever-page-elements-v2:8001
YOLOX_HTTP_ENDPOINT: http://nemoretriever-page-elements-v2: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
paddleocr-nim:
deployed: true
replicaCount: 1
image:
repository: nvcr.io/nim/baidu/paddleocr
tag: "1.3.0"
imagePullSecrets:
- name: ngc-secret
resources:
limits:
nvidia.com/gpu: 1
requests:
nvidia.com/gpu: 1
nemoretriever-graphic-elements-v1:
deployed: true
replicaCount: 1
image:
repository: nvcr.io/nim/nvidia/nemoretriever-graphic-elements-v1
tag: "1.3.0"
resources:
limits:
nvidia.com/gpu: 1
requests:
nvidia.com/gpu: 1
nemoretriever-page-elements-v2:
deployed: true
replicaCount: 1
image:
repository: nvcr.io/nim/nvidia/nemoretriever-page-elements-v2
tag: "1.3.0"
resources:
limits:
nvidia.com/gpu: 1
requests:
nvidia.com/gpu: 1
nemoretriever-table-structure-v1:
deployed: true
replicaCount: 1
image:
repository: nvcr.io/nim/nvidia/nemoretriever-table-structure-v1
tag: "1.3.0"
resources:
limits:
nvidia.com/gpu: 1
requests:
nvidia.com/gpu: 1
nim-vlm-text-extraction:
image:
repository: "nvcr.io/nim/nvidia/nemoretriever-parse"
tag: "1.2"
deployed: false
nim-vlm-image-captioning:
deployed: false
nvidia-nim-llama-32-nv-embedqa-1b-v2:
image:
repository: nvcr.io/nim/nvidia/llama-3.2-nv-embedqa-1b-v2
tag: "1.6.0"
deployed: false
milvus:
image:
all:
repository: milvusdb/milvus
tag: v2.5.3-gpu
pullPolicy: IfNotPresent
standalone:
resources:
limits:
nvidia.com/gpu: 1
fullnameOverride: "milvus"
otelDeployed: false
zipkinDeployed: false
# Uncomment to enable OpenTelemetry Collector using NV-Ingest deployed Otel and Zipkin
# otelDeployed: true
# zipkinDeployed: true
# opentelemetry-collector:
# ports:
# metrics:
# enabled: true
# containerPort: 8889
# servicePort: 8889
# protocol: TCP
# serviceMonitor:
# enabled: true
# config:
# exporters:
# prometheus:
# endpoint: ${env:MY_POD_IP}:8889
# service:
# pipelines:
# metrics:
# exporters:
# - debug
# - prometheus
# processors:
# - memory_limiter
# - batch
# receivers:
# - otlp
# - prometheus
# NIMs
nim-llm:
enabled: true
service:
name: "nim-llm"
image:
repository: nvcr.io/nim/nvidia/llama-3.3-nemotron-super-49b-v1
pullPolicy: IfNotPresent
tag: "1.8.5"
resources:
limits:
nvidia.com/gpu: 1
requests:
nvidia.com/gpu: 1
model:
ngcAPIKey: ""
name: "nvidia/llama-3.3-nemotron-super-49b-v1"
nvidia-nim-llama-32-nv-embedqa-1b-v2:
enabled: true
service:
name: "nemoretriever-embedding-ms"
image:
repository: nvcr.io/nim/nvidia/llama-3.2-nv-embedqa-1b-v2
tag: "1.6.0"
resources:
limits:
nvidia.com/gpu: 1
requests:
nvidia.com/gpu: 1
nim:
ngcAPIKey: ""
text-reranking-nim:
enabled: true
service:
name: "nemoretriever-reranking-ms"
image:
repository: nvcr.io/nim/nvidia/llama-3.2-nv-rerankqa-1b-v2
tag: "1.5.0"
resources:
limits:
nvidia.com/gpu: 1
requests:
nvidia.com/gpu: 1
nim:
ngcAPIKey: ""
nim-vlm:
enabled: false
service:
name: "nim-vlm"
image:
repository: nvcr.io/nim/nvidia/llama-3.1-nemotron-nano-vl-8b-v1
tag: "1.3.0"
resources:
limits:
nvidia.com/gpu: 1
requests:
nvidia.com/gpu: 1
nim:
ngcAPIKey: ""
## Observability Support
serviceMonitor:
enabled: false
opentelemetry-collector:
enabled: false
mode: deployment
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
zipkin:
enabled: false
kube-prometheus-stack:
enabled: false
prometheus:
serviceMonitor:
interval: "1s"
prometheusSpec:
scrapeInterval: "1s"
evaluationInterval: "1s"
grafana:
adminUser: admin
adminPassword: "admin"
# Frontend
frontend:
enabled: true
image:
repository: nvcr.io/nvidia/blueprint/rag-playground
pullPolicy: IfNotPresent
tag: "2.2.0"
imagePullSecret:
name: "ngc-secret"
registry: "nvcr.io"
username: "$oauthtoken"
password: ""
service:
type: NodePort
port: 3000
envVars:
- name: NEXT_PUBLIC_MODEL_NAME
value: "nvidia/llama-3.3-nemotron-super-49b-v1"
- name: NEXT_PUBLIC_EMBEDDING_MODEL
value: "nvidia/llama-3.2-nv-embedqa-1b-v2"
- name: NEXT_PUBLIC_RERANKER_MODEL
value: "nvidia/llama-3.2-nv-rerankqa-1b-v2"
- name: NEXT_PUBLIC_CHAT_BASE_URL
value: "http://rag-server:8081/v1"
- name: NEXT_PUBLIC_VDB_BASE_URL
value: "http://ingestor-server:8082/v1"