Configuration Reference
RAG-specific settings in env/<name>/config.erag.yaml. This is the file you edit to change models, pipelines, storage, and features; the installer reads it on every install erag run and updates only the components a change affects.
Important
The override surface is flat. The file is loaded with -e @file, which merges shallowly, so a nested dictionary replaces the role default entirely instead of merging into it. Keep keys at the top level.
Overview
./es_auto_installer.sh init erag --env local # seeds config.erag.yaml
vi env/local/config.erag.yaml # (optional) customize
./es_auto_installer.sh install erag --env local # deploys
Defaults: ChatQnA base, all components enabled, three models (LLM, embedding, reranking), Redis cluster vector store.
Edit when:
| Change needed | Setting |
|---|---|
| Different pipeline/variant | pipeline_type / pipeline_variant |
| Disable component | <component>_enabled: false |
| Different models | inference_models |
| Different vector DB | vector_databases_vector_store |
| External S3 | edp_storage_type + edp_s3_* |
| SSO/SharePoint | erag_keycloak_oidc_* |
Pipeline selection
| Setting | Default | Options |
|---|---|---|
pipeline_type | chatqna | chatqna | docsum | translation | audioqna |
pipeline_variant | base | base | retrieve-rerank | upload (ChatQnA only) |
solution_language | auto | auto (Polish if LLM name has PLLuM/Bielik, else English) | en | pl |
Types: chatqna (RAG with retrieval/rerank/LLM), docsum (TextExtractor → TextCompression → TextSplitter → LLM → DocSum), translation (ALMA models, preview), audioqna (ChatQnA + ASR/TTS).
Variants: base (full), retrieve-rerank (no LLM, retrieval-only), upload (embedding-only, ingestion). See pipelines.md.
Component enablement
| Component | Default | Purpose |
|---|---|---|
vector_databases_enabled | true | Vector DB (Redis/MSSQL/pgvector) |
chat_history_enabled | true | PostgreSQL chat history |
edp_enabled | true | Enhanced Data Preparation |
hpa_enabled | true | Horizontal Pod Autoscaling |
ui_enabled | true | React UI |
mcp_enabled | false | Model Context Protocol gateway |
Backup and restore
| Setting | Default | Purpose |
|---|---|---|
backup_enabled | false | Arms this toolkit's backup profile. Also needs the platform's velero_enabled: true and storage_backend: nfs or ceph — both switches are independent, and either off makes a run a no-op |
upgrade_backup_max_age_hours | 6 | How fresh a backup the pre-upgrade gate demands, once backup_enabled is true |
allow_upgrade_without_backup | false | Bypass the gate for one upgrade |
See Backup and Restore for what is captured, how to run it, and the identity realm.
Inference models
inference_models:
- name: llama3-8b-awq
role: llm
- name: nomic-embed
role: embedding
- name: bge-reranker-v2-m3
role: reranking
Each model name correspods to model definition defined in env/<name>/models-rag.yaml (seeded from deployment/models.yaml). Roles: llm, embedding, reranking are adding specific VLLM parameters to specific VLLM categories.
If you'd like to use a model, not listed in models-rag.yaml, add a new entry there with name + model_id and reference to it in config.erag.yaml.
Changing models: edit and re-install. Auto undeploys old, deploys new, downloads weights, waits for readiness. Changing embedding invalidates index - re-ingest all documents.
See models.md.
Vector database
| Setting | Default | Options |
|---|---|---|
vector_databases_namespace | vdb | |
vector_databases_vector_store | redis-cluster | redis-cluster | mssql | pgvector |
vector_databases_vector_datatype | FLOAT32 | |
vector_databases_vector_dims | 768 | Auto-detected; override if detection fails |
Backends: redis-cluster (production, 1M+ vectors, HA, scalable), mssql (SQL Server; RBAC unsupported; EULA prompt on deploy), pgvector (PostgreSQL).
Storage defaults: redis-cluster 8Gi per node (set vector_databases_stores.redis-cluster.persistence.size in config.erag.yaml), mssql and pgvector 10Gi (deployment/components/vector_databases/values.yaml). Vector store needs more storage than file storage (text + embeddings).
The installer generates the database password and hands the connection details to the services in the vector-database-config secret, in the pipeline and EDP namespaces.
Note
For production, use your own managed vector database, so it follows your organization's security, backup, disaster recovery and access policies.
Redis cluster
A 3-node StatefulSet (masters only, 16384 hash slots, DNS-based topology) running Redis 8.2.2, which includes RediSearch and RedisJSON. Metrics are on port 9121. Grafana dashboard: VectorDB / Redis.
Check the cluster:
REDIS_PASSWORD=$(kubectl get secret redis-cluster-secret -n vdb -o jsonpath='{.data.REDIS_PASSWORD}' | base64 -d)
kubectl exec -n vdb vdb-redis-cluster-0 -- redis-cli -a $REDIS_PASSWORD CLUSTER INFO # cluster_state:ok, cluster_known_nodes:3
kubectl exec -n vdb vdb-redis-cluster-0 -- redis-cli -a $REDIS_PASSWORD MODULE LIST # search and ReJSON
Microsoft SQL Server 2025
A single Microsoft SQL Server Express Edition instance from Microsoft's official images. Express has feature and capacity limits (for example, 10 GB per database). Metrics are on port 4000. Grafana dashboard: VectorDB / Microsoft SQL Server.
You're responsible for accepting Microsoft's licensing terms (https://www.microsoft.com/en-us/useterms). With mssql, install erag stops and asks:
Do you accept the Microsoft SQL Server 2025 Express Edition EULA? [Y/N]
Type Y and press ENTER. The install aborts unless you accept. To accept without the prompt, for example in automation, set MSSQL_ACCEPT_EULA=Y in the installer's environment.
Adding a vector database
See src/comps/vectorstores/CONTRIBUTING.md. Add the new database to the vector_databases_vector_store options above.
Enhanced Data Preparation (EDP)
| Setting | Default | Options |
|---|---|---|
edp_namespace | edp | |
edp_storage_type | seaweedfs | seaweedfs | s3 | s3compatible |
edp_rbac_enabled | false | Must be false for ONTAP S3, MSSQL |
edp_scheduled_sync_enabled | false | For S3-compatible sans SQS |
Backends: seaweedfs (in-cluster), s3 (AWS + SQS), s3compatible (ONTAP S3, external MinIO). See object_store.md.
Authentication and SSO
SSO and SharePoint share one Entra app registration:
erag_keycloak_oidc_endpoint: "" # non-empty enables SSO
erag_keycloak_oidc_alias: "enterprise-sso"
erag_keycloak_oidc_client_id: ""
erag_keycloak_oidc_client_secret: ""
erag_keycloak_oidc_tenant_id: "" # non-empty additionally enables SharePoint
No _enabled flags. All empty = disabled. Partial config rejected. See: sharepoint.md, auth.md.
MCP gateway
| Setting | Default |
|---|---|
mcp_enabled | false |
mcp_namespace | mcp-gateway |
mcp_keycloak_client_id | mcp-client |
Exposes RAG as tools (retrieve_context, list_buckets, ingest_url, ingest_file, check_ingestion_status) over SSE. OAuth 2.0 client credentials. See mcp.md.
Container images
| Setting | Default | Notes |
|---|---|---|
registry | docker.io/intel | |
tag | from deployment/version.yaml | Omit for default; mismatched version needs tag_override: true |
tag_override | false | |
local_registry | false | Multi-node |
See images.md.
Horizontal Pod Autoscaling
hpa_enabled: true (default). Scales the guardrails and EDP on Prometheus custom metrics; see Performance › Horizontal Pod Autoscaling. Disable for: fixed workload, manual scaling, resource-constrained.
UI
ui_enabled: true (default). ui_chat_maintenance_mode: false (auto-set to true for retrieve-rerank/upload).
Node pinning
namespace_node_selector: {}. Pin pods to one node (kubernetes.io/hostname: "worker-node-1"). Single-node only. Topology detection runs on selected node. Requires PodNodeSelector admission plugin. Verify: kubectl get namespace <ns> -o jsonpath='{.metadata.annotations.scheduler\.alpha\.kubernetes\.io/node-selector}'.
Routing mode
From env/<name>/global_config.yaml: subdomain (each service gets subdomain; needs wildcard DNS) or path (one FQDN, path-based; cloud-friendly). For path, update SSO redirect URIs.
Additional settings
| Setting | Default |
|---|---|
inference_namespace | llm-inference |
secure_logs | true |
helm_timeout | 10m0s |
helm_retries | 3 |
Full template
# config.erag.yaml - defaults
registry: "docker.io/intel"
# tag: "3.0.0"
# tag_override: false
pipeline_type: "chatqna"
pipeline_variant: "base"
# solution_language: "auto"
vector_databases_enabled: true
chat_history_enabled: true
edp_enabled: true
hpa_enabled: true
ui_enabled: true
mcp_enabled: false
backup_enabled: false
# upgrade_backup_max_age_hours: 6
# allow_upgrade_without_backup: false
inference_namespace: "llm-inference"
inference_models:
- name: llama3-8b-awq
role: llm
- name: nomic-embed
role: embedding
- name: bge-reranker-v2-m3
role: reranking
# ui_chat_maintenance_mode: false
# edp_namespace: "edp"
# edp_storage_type: "seaweedfs"
# edp_rbac_enabled: false
# edp_scheduled_sync_enabled: false
# edp_s3_compatible_access_key_id: ""
# edp_s3_compatible_secret_access_key: ""
# vector_databases_namespace: "vdb"
# vector_databases_vector_store: "redis-cluster"
# vector_databases_vector_datatype: "FLOAT32"
# vector_databases_vector_dims: 768
# erag_keycloak_oidc_endpoint: ""
# erag_keycloak_oidc_alias: "enterprise-sso"
# erag_keycloak_oidc_client_id: ""
# erag_keycloak_oidc_client_secret: ""
# erag_keycloak_oidc_tenant_id: ""
# mcp_namespace: "mcp-gateway"
# mcp_keycloak_client_id: "mcp-client"
# namespace_node_selector: {}
Changing values
Edit env/<name>/config.erag.yaml and re-install, or override: ./es_auto_installer.sh install erag --env local -- -e mcp_enabled=true.
Precedence: CLI -e > global_config.yaml > config.erag.yaml > role defaults.
Related docs
models.md (models, multilingual, tuning), auth.md/sharepoint.md (SSO, MFA, AD), mcp.md (MCP gateway), object_store.md (ONTAP S3), images.md (build images), pipelines.md (variants), performance.md (tuning), backup.md (backup and restore), platform config.