-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvalues.yaml
508 lines (458 loc) · 10.8 KB
/
values.yaml
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
features:
ollama:
enabled: false
langfuse:
enabled: true
qdrant:
enabled: true
frontend:
enabled: true
keydb:
enabled: true
backend:
name: backend
replicaCount: 1
image:
repository: ghcr.io/stackitcloud
name: rag-backend
pullPolicy: Always
tag: "v1.0.0"
command:
- "poetry"
- "run"
args:
- "python"
- "-m"
- "uvicorn"
- "main:perfect_rag_app"
- "--host"
- "0.0.0.0"
- "--port"
- "8080"
- "--loop"
- "asyncio"
workers: 3
wsMaxQueue: 6
debugArgs:
- "python"
- "-m"
- "debugpy"
- "--wait-for-client"
- "--listen"
- "0.0.0.0:31415"
- "-m"
- "uvicorn"
- "main:perfect_rag_app"
- "--host"
- "0.0.0.0"
- "--port"
- "8080"
- "--reload"
- "--reload-dir"
- "/app/rag-backend"
- "--reload-dir"
- "/app/rag-core-library/rag-core-api"
- "--reload-dir"
- "/app/rag-core-library/rag-core-lib"
- "--loop"
- "asyncio"
service:
type: ClusterIP
port: 8080
pythonPathEnv:
PYTHONPATH: src
ingress:
enabled: true
host:
name: rag.localhost
path: /api/chat(/|$)(.*)
pathType: ImplementationSpecific
port: 8080
secrets:
basicAuth: ""
langfuse:
publicKey: "pk-lf"
secretKey: "sk-lf"
stackitEmbedder:
apiKey: ""
stackitVllm:
apiKey: "sk-123"
ragas:
openaiApikey: ""
envs:
stackitVllm:
STACKIT_VLLM_MODEL: neuralmagic/Meta-Llama-3.1-70B-Instruct-FP8
STACKIT_VLLM_BASE_URL: https://api.openai-compat.model-serving.eu01.onstackit.cloud/v1
database:
VECTOR_DB_COLLECTION_NAME: rag-db
VECTOR_DB_LOCATION: http://rag-qdrant:6333
VECTOR_DB_VALIDATE_COLLECTION_CONFIG: false
retriever:
RETRIEVER_THRESHOLD: 0.3
RETRIEVER_K_DOCUMENTS: 10
RETRIEVER_TOTAL_K: 7
RETRIEVER_SUMMARY_THRESHOLD: 0.3
RETRIEVER_SUMMARY_K_DOCUMENTS: 10
RETRIEVER_TABLE_THRESHOLD: 0.3
RETRIEVER_TABLE_K_DOCUMENTS: 10
RETRIEVER_IMAGE_THRESHOLD: 0.7
RETRIEVER_IMAGE_K_DOCUMENTS: 10
errorMessages:
ERROR_MESSAGES_NO_DOCUMENTS_MESSAGE: "I'm sorry, my responses are limited. You must ask the right questions."
ERROR_MESSAGES_NO_OR_EMPTY_COLLECTION: "No documents were provided for searching."
ERROR_MESSAGES_HARMFUL_QUESTION: "I'm sorry, but harmful requests cannot be processed."
ERROR_MESSAGES_NO_ANSWER_FOUND: "I'm sorry, I couldn't find an answer with the context provided."
ERROR_MESSAGE_EMPTY_MESSAGE: "I'm sorry, but I can't answer an empty question."
langfuse:
LANGFUSE_DATASET_NAME: "rag_test_ds"
LANGFUSE_DATASET_FILENAME: "/app/test_data.json"
LANGFUSE_HOST: "http://rag-langfuse-web:3000" #NOTE: http protocol needs to be defined!
ragClassTypes:
RAG_CLASS_TYPE_LLM_TYPE: "stackit"
ragas:
RAGAS_IS_DEBUG: false
RAGAS_MODEL: "gpt-4o-mini"
RAGAS_USE_OPENAI: true
RAGAS_TIMEOUT: 60
RAGAS_EVALUATION_DATASET_NAME: "eval-data"
RAGAS_MAX_CONCURRENCY: "5"
embedderClassTypes:
EMBEDDER_CLASS_TYPE_EMBEDDER_TYPE: "stackit"
stackitEmbedder:
STACKIT_EMBEDDER_MODEL: "intfloat/e5-mistral-7b-instruct"
STACKIT_EMBEDDER_BASE_URL: https://api.openai-compat.model-serving.eu01.onstackit.cloud/v1
ollama:
OLLAMA_MODEL: "llama3.2:3b-instruct-fp16"
OLLAMA_BASE_URL: "http://rag-ollama:11434"
OLLAMA_TOP_K: 0
OLLAMA_TOP_P: 0
OLLAMA_TEMPERATURE: 0
ollamaEmbedder:
OLLAMA_EMBEDDER_MODEL: "bge-m3"
OLLAMA_EMBEDDER_BASE_URL: "http://rag-ollama:11434"
fakeEmbedder:
FAKE_EMBEDDER_SIZE: 386
reranker:
RERANKER_K_DOCUMENTS: 5
RERANKER_MIN_RELEVANCE_SCORE: 0.001
chatHistory:
CHAT_HISTORY_LIMIT: 4
CHAT_HISTORY_REVERSE: true
frontend:
name: frontend
replicaCount: 1
image:
repository: ghcr.io/stackitcloud
name: frontend
pullPolicy: Always
tag: "v1.0.0"
service:
type: ClusterIP
port: 8080
config:
envs:
VITE_API_URL: http://rag.localhost/api
VITE_CHAT_URL: http://rag.localhost
ingress:
enabled: true
host:
name: rag.localhost
path: /
pathType: ImplementationSpecific
port: 8080
secrets:
viteAuth:
VITE_AUTH_USERNAME: ""
VITE_AUTH_PASSWORD: ""
envs:
vite:
VITE_CHAT_AUTH_ENABLED: true
VITE_API_URL: "http://rag.localhost/api"
VITE_CHAT_URL: "http://rag.localhost"
VITE_ADMIN_URL: "http://admin.rag.localhost"
VITE_ADMIN_API_URL: "http://admin.rag.localhost/api"
adminBackend:
replicaCount: 1
name: admin-backend
image:
repository: ghcr.io/stackitcloud
name: admin-backend
pullPolicy: Always
tag: "v1.0.0"
command:
- "poetry"
- "run"
args:
- "python"
- "-m"
- "uvicorn"
- "main:perfect_admin_app"
- "--host"
- "0.0.0.0"
- "--port"
- "8080"
- "--root-path"
- "/api"
debugArgs:
- "python"
- "-m"
- "debugpy"
- "--wait-for-client"
- "--listen"
- "0.0.0.0:31415"
- "-m"
- "uvicorn"
- "main:perfect_admin_app"
- "--host"
- "0.0.0.0"
- "--port"
- "8080"
- "--reload"
- "--reload-dir"
- "/app/admin-backend"
- "--reload-dir"
- "/app/rag-core-library/rag-core-lib"
- "--reload-dir"
- "/app/rag-core-library/admin-api-lib"
- "--root-path"
- "/api"
service:
type: ClusterIP
port: 8080
pythonPathEnv:
PYTHONPATH: src
ingress:
enabled: true
host:
name: admin.rag.localhost
path: /api(/|$)(.*)
pathType: ImplementationSpecific
port: 8080
minio:
enabled: true
envs:
summarizer:
SUMMARIZER_MAXIMUM_INPUT_SIZE: "8000"
SUMMARIZER_MAXIMUM_CONCURRENCY: "10"
ragapi:
RAG_API_HOST: "http://backend:8080"
chunker:
CHUNKER_MAX_SIZE: 1000
CHUNKER_OVERLAP: 300
confluenceLoader:
CONFLUENCE_URL: ""
CONFLUENCE_SPACE_KEY: ""
CONFLUENCE_DOCUMENT_NAME: ""
keyValueStore:
USECASE_KEYVALUE_PORT: 6379
USECASE_KEYVALUE_HOST: "rag-keydb"
secrets:
confluenceLoader:
token: ""
extractor:
replicaCount: 1
name: extractor
image:
repository: ghcr.io/stackitcloud
name: document-extractor
pullPolicy: Always
tag: "v1.0.0"
command:
- "poetry"
- "run"
args:
- "python"
- "-m"
- "uvicorn"
- "main:perfect_extractor_app"
- "--host"
- "0.0.0.0"
- "--port"
- "8080"
debugArgs:
- "python"
- "-m"
- "debugpy"
- "--wait-for-client"
- "--listen"
- "0.0.0.0:31415"
- "-m"
- "uvicorn"
- "main:perfect_extractor_app"
- "--host"
- "0.0.0.0"
- "--port"
- "8080"
- "--reload"
- "--reload-dir"
- "/app/document-extractor"
- "--reload-dir"
- "/app/rag-core-library/extractor-api-lib"
service:
type: ClusterIP
port: 8080
pythonPathEnv:
PYTHONPATH: src
adminFrontend:
name: admin-frontend
replicaCount: 1
image:
repository: ghcr.io/stackitcloud
name: admin-frontend
pullPolicy: Always
tag: "v1.0.0"
service:
type: ClusterIP
port: 8080
exports:
chart_name:
adminFrontendChartName: admin-frontend
ingress:
enabled: true
host:
name: admin.rag.localhost
path: /
pathType: ImplementationSpecific
port: 8080
shared:
# These values are used across all templates
ssl: true
debug:
backend:
enabled: false
imagePullSecret:
# create: false
# name: cr-credentials
# auths:
# username: github-username # replace with your github username
# pat: github-pat # replace with your github personal access token
# email: [email protected] # replace with your email address
# registry: ghcr.io
config:
dns:
- rag.localhost
- admin.rag.localhost
basicAuth:
enabled: true
tls:
enabled: true
host: rag.localhost
secretName: tls-certificate
secrets:
s3:
accessKey: "admin"
secretKey: "password"
usecase:
envs:
pdfExtractor:
PDF_EXTRACTOR_DIAGRAMS_FOLDER_NAME: "connection_diagrams"
PDF_EXTRACTOR_FOOTER_HEIGHT: 155
s3:
S3_ENDPOINT: http://rag-minio:9000
S3_BUCKET: documents
usecase:
langfuse:
minio:
deploy: false
valkey:
deploy: false #<--- keydb is used instead of valkey
image:
repository: ghcr.io/langfuse/langfuse
pullPolicy: Always
tag: "3.27.2"
postgresql:
deploy: true
auth:
username: postgres
password: postgres
database: langfuse
langfuse:
nextauth:
url: http://localhost:3000
secret: changeme
salt: changeme
additionalEnv:
- name: LANGFUSE_INIT_ORG_ID
value: ""
- name: LANGFUSE_INIT_PROJECT_ID
value: ""
- name: LANGFUSE_INIT_PROJECT_PUBLIC_KEY
value: ""
- name: LANGFUSE_INIT_PROJECT_SECRET_KEY
value: ""
- name: LANGFUSE_INIT_USER_EMAIL
value: ""
- name: LANGFUSE_INIT_USER_NAME
value: ""
- name: LANGFUSE_INIT_USER_PASSWORD
value: ""
# REDIS
- name: "REDIS_CONNECTION_STRING"
value: "redis://rag-keydb:6379"
# CLICKHOUSE
- name: "CLICKHOUSE_MIGRATION_URL"
value: "clickhouse://rag-clickhouse:9000"
- name: "CLICKHOUSE_URL"
value: "http://rag-clickhouse:8123"
- name: "CLICKHOUSE_USER"
value: "default"
- name: "CLICKHOUSE_PASSWORD"
value: "changeme"
# S3 / MinIO
- name: "LANGFUSE_S3_EVENT_UPLOAD_ENABLED"
value: "true"
- name: "LANGFUSE_S3_EVENT_UPLOAD_BUCKET"
value: "langfuse"
- name: "LANGFUSE_S3_EVENT_UPLOAD_REGION"
value: "auto"
- name: "LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID"
value: "admin"
- name: "LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY"
value: "adminpassword"
- name: "LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT"
value: "http://rag-minio:9000"
- name: "LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE"
value: "true"
extraInitContainers:
- name: wait-for-postgres
image: busybox
command:
- sh
- -c
- |
until nc -z rag-postgresql 5432; do
echo "Waiting for PostgreSQL to be ready..."
sleep 2
done
# Define a reasonable timeout in case PostgreSQL fails to come up
timeoutSeconds: 300
minio:
auth:
## @param auth.rootUser MinIO® root username
##
rootUser: admin
## @param auth.rootPassword Password for MinIO® root user
##
rootPassword: "adminpassword"
## @param defaultBuckets Comma, semi-colon or space separated list of buckets to create at initialization (only in standalone mode)
## e.g:
## defaultBuckets: "my-bucket, my-second-bucket"
##
defaultBuckets: "documents,langfuse"
networkPolicy:
enabled: false
mode: standalone
ollama:
image:
tag: 0.5.1
ollama:
models:
pull:
- llama3.2:3b-instruct-fp16
- bge-m3
runs:
- llama3.2:3b-instruct-fp16
- bge-m3
qdrant:
image:
tag: v1.12.6