From 3055a85ed574fdd3459fc7a87a41598313c2d9b9 Mon Sep 17 00:00:00 2001 From: "Nowicki, Mikolaj" Date: Wed, 2 Dec 2026 03:10:46 +0100 Subject: [PATCH] refactor: rename the erag layer to chatbot Hard rename, no compatibility for existing envs or clusters: init/install target, config.chatbot.yaml, components/version/backup profile layer, the toolkit-manager.intel.com/layer label, check ids, facts and tests. Upgrades start from 3.1.0, so the keycloak-rename gate for older records goes; an erag install needs a fresh reinstall (docs/deployment/install-rag.md). Signed-off-by: Nowicki, Mikolaj --- README.md | 12 +-- deployment/README.md | 4 +- deployment/backup.yaml | 2 +- deployment/backup_profile.yaml | 6 +- deployment/components.yaml | 38 ++++----- deployment/components/gmc/README.md | 2 +- deployment/config_tracking.yaml | 12 +-- deployment/pipelines/README.md | 8 +- deployment/pipelines/audioqna/config.yaml | 2 +- deployment/pipelines/chatqna/config.yaml | 2 +- .../pipelines/chatqna_intel_gpu/config.yaml | 2 +- deployment/pipelines/docsum/config.yaml | 2 +- deployment/pipelines/pl_chatqna/config.yaml | 2 +- deployment/pipelines/translation/config.yaml | 2 +- deployment/roles/app_edp/tasks/install.yaml | 2 +- .../app_inference_models/tasks/install.yaml | 4 +- .../tasks/assert_oidc_config.yaml | 4 +- .../roles/app_pipeline/tasks/install.yaml | 2 +- .../roles/app_pipeline/tasks/teardown.yaml | 2 +- .../tasks/data_consistency.yaml | 14 +-- .../app_postgresql_cluster/tasks/capture.yaml | 2 +- .../tasks/validate_mcp_enabled.yaml | 2 +- .../app_pre_install/tasks/version_change.yaml | 42 ++++----- deployment/scripts/calculate_replicas.py | 4 +- .../scripts/query_deployment_manifest.sh | 2 +- deployment/tools/debug_tool.py | 4 +- deployment/upgrade_checks/configuration.yaml | 8 +- .../upgrade_checks/keycloak_rename.yaml | 22 ----- deployment/version.yaml | 6 +- docs/README.md | 6 +- docs/configuration/aws-s3.md | 2 +- docs/configuration/configuration.md | 20 ++--- docs/configuration/images.md | 4 +- docs/configuration/mcp.md | 6 +- docs/configuration/models.md | 12 +-- docs/configuration/object-store.md | 12 +-- docs/configuration/performance.md | 18 ++-- docs/configuration/sharepoint.md | 10 +-- docs/deployment/backup-and-restore.md | 26 +++--- docs/deployment/install-rag.md | 32 +++---- docs/deployment/pipelines.md | 12 +-- docs/deployment/vmware.md | 6 +- .../frequently-asked-questions.md | 28 +++--- .../troubleshooting.md | 16 ++-- docs/getting-started/prerequisites.md | 8 +- docs/getting-started/quickstart.md | 24 +++--- docs/overview/meet.md | 10 +-- docs/reference/architecture.md | 26 +++--- docs/reference/container-images.md | 2 +- docs/reference/glossary.md | 8 +- .../llm_guard_dataprep_guardrail/README.md | 2 +- src/comps/vectorstores/CONTRIBUTING.md | 2 +- src/edp/README.md | 16 ++-- src/gmc/usage_guide.md | 2 +- .../benchmarks/chatqna/run_benchmark_sweep.sh | 6 +- src/tests/e2e/conftest.py | 4 +- .../e2e/evals/evaluation/rag_eval/README.md | 2 +- .../rag_eval/examples/eval_multihop.py | 2 +- src/tests/e2e/helpers/k8s_helper.py | 8 +- src/tests/e2e/lifecycle/scenarios.yaml | 4 +- src/tests/e2e/lifecycle/test_post_backup.py | 4 +- src/tests/e2e/lifecycle/test_post_restore.py | 4 +- src/tests/e2e/lifecycle/test_pre_backup.py | 2 +- src/tests/e2e/lifecycle/test_uninstall.py | 12 +-- src/tests/e2e/lifecycle/uninstall_layers.yaml | 6 +- src/tests/e2e/validation/constants.py | 2 +- .../unit/scripts/test_configuration_check.py | 6 +- .../scripts/test_keycloak_rename_check.py | 85 ------------------- .../unit/scripts/test_version_change_gate.py | 10 +-- 69 files changed, 287 insertions(+), 396 deletions(-) delete mode 100644 deployment/upgrade_checks/keycloak_rename.yaml delete mode 100644 src/tests/unit/scripts/test_keycloak_rename_check.py diff --git a/README.md b/README.md index 5a578834..7f779929 100644 --- a/README.md +++ b/README.md @@ -64,28 +64,28 @@ See the [Architecture reference](docs/reference/architecture.md) for the compone ### Step 1 - Install the stack -`init erag` clones this repo and Intel® Inference Toolkit, at the revisions the platform pins, and seeds the configuration for your chosen pipeline. `install erag` then brings up the platform underneath and deploys Intel® Chatbot Toolkit on top. +`init chatbot` clones this repo and Intel® Inference Toolkit, at the revisions the platform pins, and seeds the configuration for your chosen pipeline. `install chatbot` then brings up the platform underneath and deploys Intel® Chatbot Toolkit on top. ```bash git clone https://github.com/intel/toolkit-manager.git cd toolkit-manager ./toolkit_manager.sh configure # one-time machine prep (Python 3.11+, yq, kubectl, helm) -./toolkit_manager.sh init erag # clone this toolkit and its dependencies -./toolkit_manager.sh install erag # deploy everything +./toolkit_manager.sh init chatbot # clone this toolkit and its dependencies +./toolkit_manager.sh install chatbot # deploy everything ``` -Settings for this toolkit land in `env/local/config.erag.yaml`. Pick a different pipeline with `--flavour`: +Settings for this toolkit land in `env/local/config.chatbot.yaml`. Pick a different pipeline with `--flavour`: ```bash -./toolkit_manager.sh init erag --flavour docsum +./toolkit_manager.sh init chatbot --flavour docsum ``` > [!NOTE] > For any parameters, customization options or multinode deployment, refer to [documentation](docs/). > [!TIP] -> `--env` defaults to `local`. Tear down with `./toolkit_manager.sh teardown erag`. +> `--env` defaults to `local`. Tear down with `./toolkit_manager.sh teardown chatbot`. > Install and teardown are environment-scoped: if you installed with `--env prod`, you must > tear down with `--env prod`. diff --git a/deployment/README.md b/deployment/README.md index 1f425fa5..94dacc10 100644 --- a/deployment/README.md +++ b/deployment/README.md @@ -1,11 +1,11 @@ # Intel® Chatbot Toolkit: `deployment/` -This directory is the plug-in that Toolkit Manager installs as the `erag` target. The documentation is in [`docs/`](../docs/README.md): +This directory is the plug-in that Toolkit Manager installs as the `chatbot` target. The documentation is in [`docs/`](../docs/README.md): | Topic | Guide | |---|---| | Install, access, credentials, teardown, troubleshooting | [Deploy Intel® Chatbot Toolkit](../docs/deployment/install-rag.md) | | What this directory contains and how Toolkit Manager consumes it | [Architecture](../docs/reference/architecture.md) | -| Every setting in `config.erag.yaml` | [Configuration Reference](../docs/configuration/configuration.md) | +| Every setting in `config.chatbot.yaml` | [Configuration Reference](../docs/configuration/configuration.md) | | Flavours and variants | [Pipelines](../docs/deployment/pipelines.md) | | Pipeline internals: steps, variants, the composer | [`pipelines/README.md`](pipelines/README.md) | diff --git a/deployment/backup.yaml b/deployment/backup.yaml index e7e3d139..32c2055f 100644 --- a/deployment/backup.yaml +++ b/deployment/backup.yaml @@ -12,7 +12,7 @@ # .venv/bin/ansible-playbook -i env//inventory/hosts.yaml \ # -e env_dir=$(pwd)/env/ \ # -e @env//global_config.yaml \ -# -e @env//config.erag.yaml \ +# -e @env//config.chatbot.yaml \ # -e kubernetes_kubeconfig=$(pwd)/env//kubeconfig.yaml \ # ext/chatbot-toolkit/deployment/backup.yaml \ # -e backup_action=backup diff --git a/deployment/backup_profile.yaml b/deployment/backup_profile.yaml index 5d98d6ca..175b2403 100644 --- a/deployment/backup_profile.yaml +++ b/deployment/backup_profile.yaml @@ -19,8 +19,8 @@ # command. # ============================================================================= -name: "erag" -layer: "erag" +name: "chatbot" +layer: "chatbot" # Opt-in. Backup requires CSI-snapshot-capable storage (storage_backend: nfs or # ceph) and velero_enabled: true, so it cannot be on by default. @@ -86,7 +86,7 @@ namespace_order: # explicitly because Kubernetes NotIn would also match objects without the key. or_label_selectors: - matchLabels: - toolkit-manager.intel.com/layer: erag + toolkit-manager.intel.com/layer: chatbot - matchExpressions: - key: toolkit-manager.intel.com/layer operator: DoesNotExist diff --git a/deployment/components.yaml b/deployment/components.yaml index 423a860d..99be3e9f 100644 --- a/deployment/components.yaml +++ b/deployment/components.yaml @@ -1,10 +1,10 @@ --- # ============================================================================= -# erag-layer Component Registry +# chatbot layer Component Registry # ============================================================================= # Loaded by Toolkit Manager preflight in addition to its own -# configs/components.yaml. Declares the `erag` solution layer and acts as the -# erag-layer sub-playbook for Chatbot Toolkit. +# configs/components.yaml. Declares the `chatbot` solution layer and acts as the +# chatbot layer sub-playbook for Chatbot Toolkit. # # Naming convention: app_* (Q10-1 in migration_plan.md). # Each component name maps 1:1 to roles//. @@ -20,7 +20,7 @@ # ============================================================================= layers: - - name: erag + - name: chatbot enabled: true depends_on: [platform, inference] supports: @@ -29,24 +29,24 @@ layers: components: # --- Inference models (deploy via model-manager.sh, wait for readiness) --- - name: app_inference_models - layer: erag + layer: chatbot enabled: "{{ inference_models_enabled | default(true) | bool }}" depends_on: [] # --- Bootstrap --- - name: app_pre_install - layer: erag + layer: chatbot enabled: true depends_on: [app_inference_models] # --- Data plane --- - name: app_vector_databases - layer: erag + layer: chatbot enabled: "{{ vector_databases_enabled | default(false) | bool }}" depends_on: [app_pre_install] - name: app_keycloak_config - layer: erag + layer: chatbot enabled: "{{ keycloak_enabled | default(true) | bool }}" depends_on: [app_pre_install] # The realm lives in the platform Keycloak, which outlives this layer, and no @@ -58,39 +58,39 @@ components: # --- Edge / API surface --- - name: app_apisix - layer: erag + layer: chatbot enabled: "{{ apisix_enabled | default(true) | bool }}" depends_on: [app_pre_install] # Publishes into the gateway namespace, which label teardown does not touch. teardown: both - name: app_chat_history - layer: erag + layer: chatbot enabled: "{{ chat_history_enabled | default(false) | bool }}" depends_on: [app_pre_install, app_apisix] - name: app_nats - layer: erag + layer: chatbot depends_on: [app_pre_install] - name: app_fingerprint - layer: erag + layer: chatbot depends_on: [app_pre_install, app_apisix, app_nats] # Skipped on OpenShift for now: it registers the cluster-wide custom metrics # API (prometheus-adapter); there that belongs to the Custom Metrics Autoscaler. - name: app_hpa - layer: erag + layer: chatbot enabled: "{{ hpa_enabled | default(true) | bool and cluster_distribution != 'openshift' }}" depends_on: [app_pre_install] - name: app_pipeline - layer: erag + layer: chatbot enabled: true depends_on: [app_pre_install, app_hpa, app_nats, app_fingerprint] - name: app_edp - layer: erag + layer: chatbot enabled: "{{ edp_enabled | default(false) | bool }}" depends_on: [app_vector_databases, app_apisix, app_hpa] # Publishes into the gateway namespace, which label teardown does not touch. @@ -100,14 +100,14 @@ components: - {kind: Secret, name: keycloak-minio-secret} - name: app_mcp_gateway - layer: erag + layer: chatbot enabled: "{{ mcp_enabled | default(false) | bool }}" depends_on: [app_edp, app_keycloak_config] # Publishes into the gateway namespace, which label teardown does not touch. teardown: both - name: app_ui - layer: erag + layer: chatbot enabled: "{{ ui_enabled | default(false) | bool }}" depends_on: [app_pipeline, app_apisix] # Publishes into the gateway namespace, which label teardown does not touch. @@ -116,12 +116,12 @@ components: # --- Reboot recovery --- # Repairs ambient capture after a reboot; sidecars (OpenShift) have nothing to repair. - name: app_watcher - layer: erag + layer: chatbot enabled: "{{ watcher_enabled | default(true) | bool and istio_dataplane_mode | default('ambient') == 'ambient' }}" depends_on: [app_pre_install] #--- Finalization --- - name: app_post_install - layer: erag + layer: chatbot enabled: true depends_on: [] diff --git a/deployment/components/gmc/README.md b/deployment/components/gmc/README.md index 68145137..8ad7a687 100644 --- a/deployment/components/gmc/README.md +++ b/deployment/components/gmc/README.md @@ -1,6 +1,6 @@ # GMC Helm chart -The `app_pipeline` role installs this chart as part of `install erag`. Don't install it by hand. +The `app_pipeline` role installs this chart as part of `install chatbot`. Don't install it by hand. - What GMC does and how a pipeline becomes a `GMConnector`: [Architecture › GMC Operator](../../../docs/reference/architecture.md#gmc-operator) - Operator source and development: [`src/gmc/`](../../../src/gmc/README.md) diff --git a/deployment/config_tracking.yaml b/deployment/config_tracking.yaml index 07679489..cce7284f 100644 --- a/deployment/config_tracking.yaml +++ b/deployment/config_tracking.yaml @@ -5,7 +5,7 @@ # Toolkit Manager compares these files with the copy saved by the last # successful install or upgrade and evaluates the rules below. files: - - config.erag.yaml + - config.chatbot.yaml # The model catalog. Edits no rule below covers are listed in the check's verdict. - models-rag.yaml @@ -13,7 +13,7 @@ rules: # Stored vectors are comparable only with queries embedded by the same model. # The facts it sets are rendered by app_ui as the re-ingestion banner. - id: EMBEDDING_MODEL_CHANGED - key: config.erag.yaml:inference_models[role=embedding].name + key: config.chatbot.yaml:inference_models[role=embedding].name verdict: advisory message: >- Embedding model changed from '{old}' to '{new}'. Existing documents may @@ -27,10 +27,10 @@ rules: embedding_migration_old_model: "{old}" embedding_migration_new_model: "{new}" - # Compared only when config.erag.yaml sets it; a dimension derived from the + # Compared only when config.chatbot.yaml sets it; a dimension derived from the # embedding model is resolved later in the run. - id: VECTOR_DIMS_CHANGED - key: config.erag.yaml:vector_databases_vector_dims + key: config.chatbot.yaml:vector_databases_vector_dims verdict: blocking message: >- Vector dimension changed from {old} to {new}. The vector store index was @@ -39,7 +39,7 @@ rules: # A first pin replaces a dimension derived from the embedding model, which # the saved state does not hold, so whether it differs cannot be told here. - id: VECTOR_DIMS_PINNED - key: config.erag.yaml:vector_databases_vector_dims + key: config.chatbot.yaml:vector_databases_vector_dims when: set message: >- vector_databases_vector_dims is now set to {new}. Make sure it equals the @@ -49,7 +49,7 @@ rules: # Clearing the pin lets the run derive the dimension from the embedding model # again, which may differ from the pinned one. - id: VECTOR_DIMS_UNPINNED - key: config.erag.yaml:vector_databases_vector_dims + key: config.chatbot.yaml:vector_databases_vector_dims when: cleared message: >- vector_databases_vector_dims {old} is no longer set; the dimension is now diff --git a/deployment/pipelines/README.md b/deployment/pipelines/README.md index 37f61606..30bdf2e3 100644 --- a/deployment/pipelines/README.md +++ b/deployment/pipelines/README.md @@ -79,14 +79,14 @@ through `pipeline_variant`. ## How the files map to `init` and flavours -The core installer's `init` step (`toolkit_manager.sh init erag --flavour `) -copies `pipelines//config.yaml` verbatim into `env//config.erag.yaml`. +The core installer's `init` step (`toolkit_manager.sh init chatbot --flavour `) +copies `pipelines//config.yaml` verbatim into `env//config.chatbot.yaml`. That file is a **flat** override surface loaded via `-e @file`, which shallow-merges - so every key in `config.yaml` must be a flat scalar. Do not introduce nested structures such as `pipeline: {type, variant}`; use `pipeline_type` and `pipeline_variant` as top-level keys. -Whichever route is taken, `config.erag.yaml` is a **flat** override surface loaded via +Whichever route is taken, `config.chatbot.yaml` is a **flat** override surface loaded via `-e @file`, which shallow-merges - so every key must be a flat scalar. Do not introduce nested structures such as `pipeline: {type, variant}`; use `pipeline_type` and `pipeline_variant` as top-level keys. @@ -371,7 +371,7 @@ controller re-reconciles. The GMConnector CRD `metadata` is a permissive 4. Add `config.yaml` (flat) with at least `pipeline_type: ""`, `pipeline_variant: "base"`, the container `registry`/`tag`, `inference_models`, and the `deployment_dir`/`components_dir`/`pipelines_dir` path block, so the file works as - a drop-in `config.erag.yaml`. + a drop-in `config.chatbot.yaml`. 5. Make sure every step `name:` is a registered GMC `StepNameType`, and every `` resources key matches a service in `components/gmc/values.yaml` and has a `manifests_common/-usvc.yaml.tpl`. diff --git a/deployment/pipelines/audioqna/config.yaml b/deployment/pipelines/audioqna/config.yaml index 0e74de7e..a647fe1b 100644 --- a/deployment/pipelines/audioqna/config.yaml +++ b/deployment/pipelines/audioqna/config.yaml @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 --- # ============================================================================= -# Pipeline defaults - fetched via: toolkit_manager.sh init erag --flavour audioqna +# Pipeline defaults - fetched via: toolkit_manager.sh init chatbot --flavour audioqna # ============================================================================= # AudioQnA is the ChatQnA graph (pipeline_type: chatqna, base variant) with # audio enabled. Only the deltas vs chatqna live here; audio is runtime config, diff --git a/deployment/pipelines/chatqna/config.yaml b/deployment/pipelines/chatqna/config.yaml index 98ec2838..486b2624 100644 --- a/deployment/pipelines/chatqna/config.yaml +++ b/deployment/pipelines/chatqna/config.yaml @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 --- # ============================================================================= -# Pipeline defaults - fetched via: toolkit_manager.sh init erag --flavour chatqna +# Pipeline defaults - fetched via: toolkit_manager.sh init chatbot --flavour chatqna # ============================================================================= # --- Container images --- diff --git a/deployment/pipelines/chatqna_intel_gpu/config.yaml b/deployment/pipelines/chatqna_intel_gpu/config.yaml index 06e9aabf..8aeabb0a 100644 --- a/deployment/pipelines/chatqna_intel_gpu/config.yaml +++ b/deployment/pipelines/chatqna_intel_gpu/config.yaml @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 --- # ============================================================================= -# Pipeline defaults - fetched via: toolkit_manager.sh init erag --flavour chatqna_intel_gpu +# Pipeline defaults - fetched via: toolkit_manager.sh init chatbot --flavour chatqna_intel_gpu # ============================================================================= # Thin flavour: the ChatQnA graph (pipeline_type: chatqna) served on an Intel GPU. # EXPERIMENTAL: Intel discrete GPU (Arc B-Series / Battlemage / XPU) support is diff --git a/deployment/pipelines/docsum/config.yaml b/deployment/pipelines/docsum/config.yaml index 24daea40..8fc003a2 100644 --- a/deployment/pipelines/docsum/config.yaml +++ b/deployment/pipelines/docsum/config.yaml @@ -1,6 +1,6 @@ --- # ============================================================================= -# Pipeline defaults — fetched via: toolkit_manager.sh init erag --flavour docsum +# Pipeline defaults — fetched via: toolkit_manager.sh init chatbot --flavour docsum # ============================================================================= # --- Container images --- diff --git a/deployment/pipelines/pl_chatqna/config.yaml b/deployment/pipelines/pl_chatqna/config.yaml index 5baaea25..7b17ecb5 100644 --- a/deployment/pipelines/pl_chatqna/config.yaml +++ b/deployment/pipelines/pl_chatqna/config.yaml @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 --- # ============================================================================= -# Pipeline defaults - fetched via: toolkit_manager.sh init erag --flavour pl_chatqna +# Pipeline defaults - fetched via: toolkit_manager.sh init chatbot --flavour pl_chatqna # ============================================================================= # --- Container images --- diff --git a/deployment/pipelines/translation/config.yaml b/deployment/pipelines/translation/config.yaml index 47b0d28f..33edf059 100644 --- a/deployment/pipelines/translation/config.yaml +++ b/deployment/pipelines/translation/config.yaml @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 --- # ============================================================================= -# Pipeline defaults — fetched via: toolkit_manager.sh init erag --flavour translation +# Pipeline defaults — fetched via: toolkit_manager.sh init chatbot --flavour translation # ============================================================================= # --- Container images --- diff --git a/deployment/roles/app_edp/tasks/install.yaml b/deployment/roles/app_edp/tasks/install.yaml index 1e9055bb..86206736 100644 --- a/deployment/roles/app_edp/tasks/install.yaml +++ b/deployment/roles/app_edp/tasks/install.yaml @@ -123,7 +123,7 @@ SharePoint ingestion requires chattool_keycloak_oidc_tenant_id, chattool_keycloak_oidc_client_id, chattool_keycloak_oidc_client_secret and chattool_keycloak_oidc_endpoint together. - Set them in env//config.erag.yaml, or clear chattool_keycloak_oidc_tenant_id + Set them in env//config.chatbot.yaml, or clear chattool_keycloak_oidc_tenant_id to disable SharePoint. success_msg: "app_edp: SharePoint configuration complete" quiet: true diff --git a/deployment/roles/app_inference_models/tasks/install.yaml b/deployment/roles/app_inference_models/tasks/install.yaml index 3975f09b..f70bdbba 100644 --- a/deployment/roles/app_inference_models/tasks/install.yaml +++ b/deployment/roles/app_inference_models/tasks/install.yaml @@ -15,7 +15,7 @@ ansible.builtin.assert: that: inference_models | length > 0 fail_msg: >- - No inference_models configured. Ensure your config.erag.yaml has an + No inference_models configured. Ensure your config.chatbot.yaml has an 'inference_models' list with at least one entry. - name: "app_inference_models | Validate kubernetes_accelerator value" @@ -75,7 +75,7 @@ inference_models names not present in {{ env_dir }}/models-rag.yaml: {{ (inference_models | map(attribute='name') | list) | difference(_mm_catalog.models | map(attribute='name') | list) | join(', ') }}. - Add a catalog entry, or correct the name in config.erag.yaml. + Add a catalog entry, or correct the name in config.chatbot.yaml. quiet: true - name: "app_inference_models | Extract baseline sizes per role from catalog" diff --git a/deployment/roles/app_keycloak_config/tasks/assert_oidc_config.yaml b/deployment/roles/app_keycloak_config/tasks/assert_oidc_config.yaml index 409761b3..4ec1881c 100644 --- a/deployment/roles/app_keycloak_config/tasks/assert_oidc_config.yaml +++ b/deployment/roles/app_keycloak_config/tasks/assert_oidc_config.yaml @@ -18,7 +18,7 @@ Incomplete Single Sign-On configuration: chattool_keycloak_oidc_endpoint is set but {{ _chattool_oidc_empty_vars | join(', ') }} {{ 'is' if _chattool_oidc_empty_vars | length == 1 else 'are' }} empty. - Set them in env//config.erag.yaml, or clear chattool_keycloak_oidc_endpoint + Set them in env//config.chatbot.yaml, or clear chattool_keycloak_oidc_endpoint to disable Single Sign-On. success_msg: "app_keycloak_config: Single Sign-On configuration complete" quiet: true @@ -33,7 +33,7 @@ SharePoint ingestion requires chattool_keycloak_oidc_tenant_id, chattool_keycloak_oidc_client_id, chattool_keycloak_oidc_client_secret and chattool_keycloak_oidc_endpoint together. - Set them in env//config.erag.yaml, or clear chattool_keycloak_oidc_tenant_id + Set them in env//config.chatbot.yaml, or clear chattool_keycloak_oidc_tenant_id to disable SharePoint. success_msg: "app_keycloak_config: SharePoint configuration complete" quiet: true diff --git a/deployment/roles/app_pipeline/tasks/install.yaml b/deployment/roles/app_pipeline/tasks/install.yaml index eabdcb62..f27d6b60 100644 --- a/deployment/roles/app_pipeline/tasks/install.yaml +++ b/deployment/roles/app_pipeline/tasks/install.yaml @@ -35,7 +35,7 @@ carry only a config.yaml and set pipeline_type to one of the types above; they are selectable with 'init application --flavour ', not via pipeline_type. - Please set pipeline_type in config.erag.yaml to one of the available types. + Please set pipeline_type in config.chatbot.yaml to one of the available types. when: pipeline_type not in available_pipeline_types - name: "app_pipeline | Discover available variants for pipeline_type" diff --git a/deployment/roles/app_pipeline/tasks/teardown.yaml b/deployment/roles/app_pipeline/tasks/teardown.yaml index 22878474..76a0aac2 100644 --- a/deployment/roles/app_pipeline/tasks/teardown.yaml +++ b/deployment/roles/app_pipeline/tasks/teardown.yaml @@ -26,7 +26,7 @@ Skipping pipeline-namespace teardown (routes, GMConnectors, namespace) and removing the GMC chart only. If a pipeline was deployed under a different - pipeline_type, set it in config.erag.yaml and re-run the teardown. + pipeline_type, set it in config.chatbot.yaml and re-run the teardown. when: not pipeline_metadata_check.stat.exists - name: "app_pipeline | Tear down audio add-on" diff --git a/deployment/roles/app_post_install/tasks/data_consistency.yaml b/deployment/roles/app_post_install/tasks/data_consistency.yaml index 223e0ef0..279a0f08 100644 --- a/deployment/roles/app_post_install/tasks/data_consistency.yaml +++ b/deployment/roles/app_post_install/tasks/data_consistency.yaml @@ -12,7 +12,7 @@ # running both would count every store a third time. - name: "app_post_install | Report what each data store holds" when: - - not (erag_version_change | default(false) | bool) + - not (chatbot_version_change | default(false) | bool) - data_consistency_install_report | bool block: - name: "app_post_install | Collect the data snapshot" @@ -34,7 +34,7 @@ written: {{ ansible_failed_result.msg | default('see the task above') }} - name: "app_post_install | Compare the data stores across the version change" - when: erag_version_change | default(false) | bool + when: chatbot_version_change | default(false) | bool block: - name: "app_post_install | Collect the data snapshot after the version change" ansible.builtin.include_role: @@ -68,7 +68,7 @@ - name: "app_post_install | Act on data lost across the version change" when: - - erag_version_change | default(false) | bool + - chatbot_version_change | default(false) | bool - _upgrade_consistency_result.verdict | default('') == 'fail' - not (data_consistency_no_fail | bool) block: @@ -87,7 +87,7 @@ ansible.builtin.assert: that: _upgrade_gate is defined and _upgrade_gate is mapping fail_msg: >- - --force bypassed erag/data_consistency, but the installer did not provide _upgrade_gate, + --force bypassed chatbot/data_consistency, but the installer did not provide _upgrade_gate, so the bypass cannot be recorded in the upgrade report. Run this release with a Toolkit Manager release that provides the upgrade checks. quiet: true @@ -96,12 +96,12 @@ - name: "app_post_install | Report the bypassed data consistency check as forced" ansible.builtin.set_fact: _upgrade_gate: >- - {{ _upgrade_gate | combine({'forcedChecks': _upgrade_gate.forcedChecks | default([]) + ['erag/data_consistency']}) }} + {{ _upgrade_gate | combine({'forcedChecks': _upgrade_gate.forcedChecks | default([]) + ['chatbot/data_consistency']}) }} when: _upgrade_force | default(false) | bool # Reached only when the gate let the run through, so a refused run keeps it for its resume. - name: "app_post_install | Drop the snapshot kept for this version change" ansible.builtin.file: - path: "{{ erag_pending_pre_snapshot }}" + path: "{{ chatbot_pending_pre_snapshot }}" state: absent - when: erag_pending_pre_snapshot is defined + when: chatbot_pending_pre_snapshot is defined diff --git a/deployment/roles/app_postgresql_cluster/tasks/capture.yaml b/deployment/roles/app_postgresql_cluster/tasks/capture.yaml index bb76aa72..8986a736 100644 --- a/deployment/roles/app_postgresql_cluster/tasks/capture.yaml +++ b/deployment/roles/app_postgresql_cluster/tasks/capture.yaml @@ -32,7 +32,7 @@ name: "{{ backup_hook_args.secret }}" namespace: "{{ backup_hook_args.namespace }}" labels: - toolkit-manager.intel.com/layer: erag + toolkit-manager.intel.com/layer: chatbot data: cluster.json: "{{ _pgc_definition | to_json | b64encode }}" vars: diff --git a/deployment/roles/app_pre_install/tasks/validate_mcp_enabled.yaml b/deployment/roles/app_pre_install/tasks/validate_mcp_enabled.yaml index 39426aff..61f567a2 100644 --- a/deployment/roles/app_pre_install/tasks/validate_mcp_enabled.yaml +++ b/deployment/roles/app_pre_install/tasks/validate_mcp_enabled.yaml @@ -59,7 +59,7 @@ ingest_file, list_buckets, check_ingestion_status), and EDP reaches the pipeline through retriever-svc and reranking-svc. - Either set mcp_enabled: false in env//config.erag.yaml, or select a + Either set mcp_enabled: false in env//config.chatbot.yaml, or select a chatqna-based flavour (chatqna, audioqna, pl_chatqna). vars: _mcp_services: >- diff --git a/deployment/roles/app_pre_install/tasks/version_change.yaml b/deployment/roles/app_pre_install/tasks/version_change.yaml index 7864416d..073a1a4a 100644 --- a/deployment/roles/app_pre_install/tasks/version_change.yaml +++ b/deployment/roles/app_pre_install/tasks/version_change.yaml @@ -1,44 +1,44 @@ # Copyright (C) 2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 --- -# Counts the data stores before a run that changes the erag version, for +# Counts the data stores before a run that changes the chatbot version, for # app_post_install to compare against. A resume of an interrupted upgrade or # downgrade still changes the version. -- name: "app_pre_install | Note the run class and record of erag" +- name: "app_pre_install | Note the run class and record of chatbot" ansible.builtin.set_fact: - erag_run_class: "{{ (_layer_class | default({})).get('erag') }}" - erag_record: "{{ (_layer_records | default({})).get('erag') or {} }}" + chatbot_run_class: "{{ (_layer_class | default({})).get('chatbot') }}" + chatbot_record: "{{ (_layer_records | default({})).get('chatbot') or {} }}" -- name: "app_pre_install | Note whether this run changes the erag version" +- name: "app_pre_install | Note whether this run changes the chatbot version" ansible.builtin.set_fact: - erag_version_change: >- - {{ erag_run_class in ['upgrade', 'downgrade'] - or (erag_run_class == 'resume' and erag_record.version | default(none) is not none - and erag_record.version != erag_record.targetVersion | default(none)) }} + chatbot_version_change: >- + {{ chatbot_run_class in ['upgrade', 'downgrade'] + or (chatbot_run_class == 'resume' and chatbot_record.version | default(none) is not none + and chatbot_record.version != chatbot_record.targetVersion | default(none)) }} # The snapshot before a version change is kept under the versions it is between # until app_post_install has compared against it. A resume of an interrupted run # compares against that one: the stores may have changed since. With none, the -# interrupted run stopped before counting, so nothing of erag changed yet. +# interrupted run stopped before counting, so nothing of chatbot changed yet. - name: "app_pre_install | Name the snapshot kept for this version change" ansible.builtin.set_fact: - erag_pending_pre_snapshot: >- - {{ data_consistency_report_dir }}/pending-pre-snapshot-{{ erag_record.version }}-to-{{ _layer_release.erag }}.yaml - when: erag_version_change | bool + chatbot_pending_pre_snapshot: >- + {{ data_consistency_report_dir }}/pending-pre-snapshot-{{ chatbot_record.version }}-to-{{ _layer_release.chatbot }}.yaml + when: chatbot_version_change | bool - name: "app_pre_install | Reuse the snapshot the interrupted run kept" ansible.builtin.set_fact: - _upgrade_pre_snapshot: "{{ lookup('ansible.builtin.file', erag_pending_pre_snapshot) | from_yaml }}" - erag_pre_snapshot_reused: true + _upgrade_pre_snapshot: "{{ lookup('ansible.builtin.file', chatbot_pending_pre_snapshot) | from_yaml }}" + chatbot_pre_snapshot_reused: true when: - - erag_version_change | bool - - erag_run_class == 'resume' - - erag_pending_pre_snapshot is file + - chatbot_version_change | bool + - chatbot_run_class == 'resume' + - chatbot_pending_pre_snapshot is file - name: "app_pre_install | Collect the data snapshot before the version change" when: - - erag_version_change | bool - - not (erag_pre_snapshot_reused | default(false) | bool) + - chatbot_version_change | bool + - not (chatbot_pre_snapshot_reused | default(false) | bool) block: - name: "app_pre_install | Count the data stores before anything changes" ansible.builtin.include_role: @@ -64,5 +64,5 @@ - name: "app_pre_install | Keep the snapshot until the version change is compared" ansible.builtin.copy: content: "{{ _upgrade_pre_snapshot | to_nice_yaml }}" - dest: "{{ erag_pending_pre_snapshot }}" + dest: "{{ chatbot_pending_pre_snapshot }}" mode: "0644" diff --git a/deployment/scripts/calculate_replicas.py b/deployment/scripts/calculate_replicas.py index f70e5c1e..7cf83310 100644 --- a/deployment/scripts/calculate_replicas.py +++ b/deployment/scripts/calculate_replicas.py @@ -49,7 +49,7 @@ def verify_memory_requirements(current_vllm_size, reranking_size, embedding_size # KServe router-scheduler pods: one per deployed LLMInferenceService model, # ~1 GiB each, NOT scaled by replicas. Caller (Ansible) passes the actual - # model count from inference_models in config.erag.yaml. + # model count from inference_models in config.chatbot.yaml. ROUTERS_MEMORY = num_routers * router_memory_gib # Set core services memory request. Covers the platform + Chatbot Toolkit namespaces @@ -281,7 +281,7 @@ def _get_calculation_method(n, numa_node_size, vllm_size, reranking_size, embedd parser.add_argument('--vllm-memory-gib', type=int, default=42, help='Memory reserved per VLLM replica in GiB, derived from model config (default: 42 = 32 base + 10 KV cache)') parser.add_argument('--embedding-memory-gib', type=int, default=4, help='Memory reserved per embedding replica in GiB, derived from model config (default: 4)') parser.add_argument('--reranking-memory-gib', type=int, default=4, help='Memory reserved per reranking replica in GiB, derived from model config (default: 4)') - parser.add_argument('--num-routers', type=int, default=0, help='Number of KServe LLMInferenceService models being deployed. Each spawns one router-scheduler pod independent of replica count. Caller counts models with router-producing runtimes from inference_models in config.erag.yaml (typically all except OVMS). Default: 0 (no reservation).') + parser.add_argument('--num-routers', type=int, default=0, help='Number of KServe LLMInferenceService models being deployed. Each spawns one router-scheduler pod independent of replica count. Caller counts models with router-producing runtimes from inference_models in config.chatbot.yaml (typically all except OVMS). Default: 0 (no reservation).') parser.add_argument('--router-memory-gib', type=int, default=1, help='Memory per KServe router-scheduler pod in GiB. Default 1 = 2 containers × 500Mi requests.') args = parser.parse_args() diff --git a/deployment/scripts/query_deployment_manifest.sh b/deployment/scripts/query_deployment_manifest.sh index 06840904..27d93761 100755 --- a/deployment/scripts/query_deployment_manifest.sh +++ b/deployment/scripts/query_deployment_manifest.sh @@ -5,7 +5,7 @@ # SPDX-License-Identifier: Apache-2.0 NAMESPACE="${1:-default}" -LABEL_SELECTOR="toolkit-manager.intel.com/layer=erag,toolkit-manager.intel.com/record=deployment-manifest" +LABEL_SELECTOR="toolkit-manager.intel.com/layer=chatbot,toolkit-manager.intel.com/record=deployment-manifest" echo "=== Chatbot Toolkit Deployment Manifest ===" echo diff --git a/deployment/tools/debug_tool.py b/deployment/tools/debug_tool.py index 1f74cdec..78cdeec6 100644 --- a/deployment/tools/debug_tool.py +++ b/deployment/tools/debug_tool.py @@ -191,7 +191,7 @@ def collect_config(self): self.logger.info(f" [+] kubeconfig resolved to: {self.kubeconfig_path}") # Load and save redacted copies of each config file - config_files = ["global_config.yaml", "config.erag.yaml", "config.inference.yaml"] + config_files = ["global_config.yaml", "config.chatbot.yaml", "config.inference.yaml"] for filename in config_files: filepath = os.path.join(config_dir, filename) if not os.path.exists(filepath): @@ -621,7 +621,7 @@ def run(self): required=True, metavar="PATH", help="Path to config directory (env/local/) containing global_config.yaml, " - "config.erag.yaml, config.inference.yaml, and kubeconfig.yaml." + "config.chatbot.yaml, config.inference.yaml, and kubeconfig.yaml." ) args = parser.parse_args() diff --git a/deployment/upgrade_checks/configuration.yaml b/deployment/upgrade_checks/configuration.yaml index 38a1f472..2b523375 100644 --- a/deployment/upgrade_checks/configuration.yaml +++ b/deployment/upgrade_checks/configuration.yaml @@ -3,18 +3,18 @@ --- # app_pre_install's configuration rules, run before anything changes. The version # goes in as include vars, not facts, so a solution_version another layer set in -# the same play cannot replace erag's and erag's does not leak into later layers. +# the same play cannot replace chatbot's and chatbot's does not leak into later layers. # The vector_dims auto-detect rule stays in-layer: it may call the network. -- name: "layer_checks | erag configuration | Collect configuration issues" +- name: "layer_checks | chatbot configuration | Collect configuration issues" ansible.builtin.set_fact: configuration_issues: [] -- name: "layer_checks | erag configuration | Check configuration rules" +- name: "layer_checks | chatbot configuration | Check configuration rules" ansible.builtin.include_tasks: "{{ _layer_dirs[upgrade_check_layer] }}/roles/app_pre_install/tasks/config_rules.yaml" vars: _rules_version: "{{ lookup('ansible.builtin.file', _layer_dirs[upgrade_check_layer] + '/version.yaml') | from_yaml }}" -- name: "layer_checks | erag configuration | Record the verdict" +- name: "layer_checks | chatbot configuration | Record the verdict" ansible.builtin.set_fact: _upgrade_verdicts: "{{ _upgrade_verdicts + [_verdict] }}" vars: diff --git a/deployment/upgrade_checks/keycloak_rename.yaml b/deployment/upgrade_checks/keycloak_rename.yaml deleted file mode 100644 index 527dea95..00000000 --- a/deployment/upgrade_checks/keycloak_rename.yaml +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright (C) 2026 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 ---- -# A release before 3.1.0 created the Keycloak realm EnterpriseRAG and the erag-* -# names. This release uses ChatbotToolkit and chattool-* and does not rename them -# in place: an upgrade would add an empty realm beside the old one. Refuse it before -# anything changes and point to the reinstall. A dev or rc build of 3.1.0 is not -# refused. Fresh installs have no record and pass. -- name: "layer_checks | erag keycloak-rename | Record the verdict" - ansible.builtin.set_fact: - _upgrade_verdicts: "{{ _upgrade_verdicts + [_verdict] }}" - vars: - _recorded: "{{ (_layer_records[upgrade_check_layer] | default({})).version | default('', true) | string }}" - _verdict: >- - {{ {'layer': upgrade_check_layer, 'check': 'keycloak-rename', 'verdict': 'blocking', - 'reason': upgrade_check_layer ~ ' ' ~ _recorded ~ ' uses the Keycloak realm EnterpriseRAG and the erag-* names;' - ~ ' this release uses ChatbotToolkit and chattool-* and does not rename them in place', - 'resolve': 'reinstall: tear ' ~ upgrade_check_layer ~ ' down with the release that installed it, then follow' - ~ ' docs/deployment/install-rag.md, "Upgrade from a release before the Chatbot Toolkit rename"'} - if _recorded and _recorded is version('3.1.0.dev0', '<', version_type='pep440') - else {'layer': upgrade_check_layer, 'check': 'keycloak-rename', 'verdict': 'pass', - 'reason': 'no record from before the Chatbot Toolkit rename', 'resolve': None} }} diff --git a/deployment/version.yaml b/deployment/version.yaml index 800afaee..a1775a8d 100644 --- a/deployment/version.yaml +++ b/deployment/version.yaml @@ -1,8 +1,8 @@ schema: 1 -layer: erag +layer: chatbot solution_version: 3.1.0 -# No upgrade_base_version: upgrade_checks/keycloak_rename.yaml refuses an upgrade -# from a release before 3.1.0, with the reinstall to follow instead. +# No upgrade_base_version: 3.1.0 is the first release of the chatbot layer, so +# upgrades start from it. An older erag install needs a fresh reinstall. # Versions of the layers below and of Toolkit Manager this release runs on. # platform and installer are Toolkit Manager's VERSION. This release ships with diff --git a/docs/README.md b/docs/README.md index e43e3e5a..d44b1b9a 100644 --- a/docs/README.md +++ b/docs/README.md @@ -5,7 +5,7 @@ what and why, **Get started** to stand it up, **Deploy** to choose a pipeline an further, then customize, operate, and look things up as needed. > [!IMPORTANT] -> [Toolkit Manager](https://github.com/intel/toolkit-manager) installs and operates this toolkit. Clone **that** repository, run every command from its root, and `init erag` will fetch this one into `ext/` for you. See [Meet](overview/meet.md#where-the-pieces-live). +> [Toolkit Manager](https://github.com/intel/toolkit-manager) installs and operates this toolkit. Clone **that** repository, run every command from its root, and `init chatbot` will fetch this one into `ext/` for you. See [Meet](overview/meet.md#where-the-pieces-live). ## Meet @@ -22,7 +22,7 @@ Check your machine meets the bar, then deploy the stack and ingest a document. | Guide | What it covers | |-------|----------------| | [Prerequisites](getting-started/prerequisites.md) | RAG hardware sizing, software access, and the limited single-user option | -| [Quick Start](getting-started/quickstart.md) | `init erag` to a working assistant, end to end | +| [Quick Start](getting-started/quickstart.md) | `init chatbot` to a working assistant, end to end | ## Deploy @@ -40,7 +40,7 @@ Change models, wire up identity and external data sources, and tune every knob. | Guide | What it covers | |-------|----------------| -| [Configuration](configuration/configuration.md) | Every option in `config.erag.yaml`, and how overrides resolve | +| [Configuration](configuration/configuration.md) | Every option in `config.chatbot.yaml`, and how overrides resolve | | [Models](configuration/models.md) | Changing the LLM, embedding, and reranking models; multilingual and accuracy features | | [Authentication](configuration/auth.md) | Keycloak SSO with Microsoft Entra ID, multi-factor auth, and Active Directory federation | | [SharePoint](configuration/sharepoint.md) | Ingesting from SharePoint Online, scheduled sync, and per-user site filtering | diff --git a/docs/configuration/aws-s3.md b/docs/configuration/aws-s3.md index 6626ddef..5b23b211 100644 --- a/docs/configuration/aws-s3.md +++ b/docs/configuration/aws-s3.md @@ -220,7 +220,7 @@ edp: Then run deployment as usual, an example for installation from the Toolkit Manager root: ```bash -./toolkit_manager.sh install erag --env +./toolkit_manager.sh install chatbot --env ``` ## Cleanup diff --git a/docs/configuration/configuration.md b/docs/configuration/configuration.md index fd0f0f2e..b1834671 100644 --- a/docs/configuration/configuration.md +++ b/docs/configuration/configuration.md @@ -2,7 +2,7 @@ [← Customize](../README.md#customize) -RAG-specific settings in `env//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. +RAG-specific settings in `env//config.chatbot.yaml`. This is the file you edit to change models, pipelines, storage, and features; the installer reads it on every `install chatbot` 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. @@ -10,9 +10,9 @@ RAG-specific settings in `env//config.erag.yaml`. This is the file you edi ## Overview ```bash -./toolkit_manager.sh init erag --env local # seeds config.erag.yaml -vi env/local/config.erag.yaml # (optional) customize -./toolkit_manager.sh install erag --env local # deploys +./toolkit_manager.sh init chatbot --env local # seeds config.chatbot.yaml +vi env/local/config.chatbot.yaml # (optional) customize +./toolkit_manager.sh install chatbot --env local # deploys ``` Defaults: ChatQnA base, all components enabled, three models (LLM, embedding, reranking), Redis cluster vector store. @@ -75,7 +75,7 @@ inference_models: Each model name correspods to model definition defined in `env//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`. +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.chatbot.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. @@ -92,7 +92,7 @@ See [models.md](models.md). Backends: **redis-cluster** (production, 1M+ vectors, HA, scalable), **mssql** (SQL Server; RBAC unsupported; EULA prompt on deploy), **milvus**. -Storage defaults: redis-cluster 8Gi per node (set `vector_databases_stores.redis-cluster.persistence.size` in `config.erag.yaml`), mssql and milvus 10Gi (`deployment/components/vector_databases/values.yaml`). Vector store needs more storage than file storage (text + embeddings). +Storage defaults: redis-cluster 8Gi per node (set `vector_databases_stores.redis-cluster.persistence.size` in `config.chatbot.yaml`), mssql and milvus 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. @@ -115,7 +115,7 @@ kubectl exec -n vdb vdb-redis-cluster-0 -- redis-cli -a $REDIS_PASSWORD MODULE L 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: +You're responsible for accepting Microsoft's licensing terms (https://www.microsoft.com/en-us/useterms). With `mssql`, `install chatbot` stops and asks: ```text Do you accept the Microsoft SQL Server 2025 Express Edition EULA? [Y/N] @@ -201,7 +201,7 @@ From `env//global_config.yaml`: **subdomain** (each service gets subdomain ## Full template ```yaml -# config.erag.yaml - defaults +# config.chatbot.yaml - defaults registry: "docker.io/intel" # tag: "3.0.0" # tag_override: false @@ -252,9 +252,9 @@ inference_models: ## Changing values -Edit `env//config.erag.yaml` and re-install, or override: `./toolkit_manager.sh install erag --env local -- -e mcp_enabled=true`. +Edit `env//config.chatbot.yaml` and re-install, or override: `./toolkit_manager.sh install chatbot --env local -- -e mcp_enabled=true`. -Precedence: CLI `-e` > `global_config.yaml` > `config.erag.yaml` > role defaults. +Precedence: CLI `-e` > `global_config.yaml` > `config.chatbot.yaml` > role defaults. ## Related docs diff --git a/docs/configuration/images.md b/docs/configuration/images.md index 54c02c16..a2bd51cb 100644 --- a/docs/configuration/images.md +++ b/docs/configuration/images.md @@ -8,7 +8,7 @@ Most deployments never need this. Reach for it when your environment cannot pull ## Registry configuration -Set in `env//config.erag.yaml`: +Set in `env//config.chatbot.yaml`: ```yaml registry: "docker.io/intel" # Default: public registry @@ -97,7 +97,7 @@ Worker nodes must be able to reach the registry, so bind it to a routable addres ./update_images.sh --build --push --registry :5000 ``` -Then point the deployment at it in `env//config.erag.yaml`: +Then point the deployment at it in `env//config.chatbot.yaml`: ```yaml registry: ":5000" diff --git a/docs/configuration/mcp.md b/docs/configuration/mcp.md index 60923c7a..c3b0ff39 100644 --- a/docs/configuration/mcp.md +++ b/docs/configuration/mcp.md @@ -231,7 +231,7 @@ Status values: `uploaded`, `processing`, `ingested`, `error`, `deleting`, `cance ## Configuration reference -Set in `env//config.erag.yaml` (flat keys, shallow-merged via `-e @file`): +Set in `env//config.chatbot.yaml` (flat keys, shallow-merged via `-e @file`): | Option | Default | Description | |--------|---------|-------------| @@ -267,7 +267,7 @@ For the full service-level environment variable list, see [`src/mcp_gateway/READ The MCP gateway is often the only consumer a deployment needs, in which case the LLM half of ChatQnA is dead weight. The optional `retrieve-rerank` ChatQnA variant removes it: ```yaml -# env//config.erag.yaml +# env//config.chatbot.yaml pipeline_type: "chatqna" pipeline_variant: "retrieve-rerank" mcp_enabled: true @@ -281,7 +281,7 @@ Known limitations of this variant in the current release: - **AudioQnA chat routes ignore maintenance mode.** Only the ChatQnA app checks `MAINTENANCE_MODE` on its chat routes, so an `audioqna` flavour with `pipeline_variant: retrieve-rerank` still presents a chat view that cannot answer. - **`/api/v1/chatqna` stays published.** The pipeline router and the UI nginx config expose it regardless of variant. Callers that hit it directly get a response with no generated text rather than a clear error. -- **The LLM model may still be deployed.** `inference_models` in `config.erag.yaml` is independent of the composed flow, so a `role: llm` entry is still served even though no pipeline step consumes it. Remove it from `inference_models` to reclaim the resources. +- **The LLM model may still be deployed.** `inference_models` in `config.chatbot.yaml` is independent of the composed flow, so a `role: llm` entry is still served even though no pipeline step consumes it. Remove it from `inference_models` to reclaim the resources. ## Creating a production agent client in Keycloak diff --git a/docs/configuration/models.md b/docs/configuration/models.md index 19ba1b81..8a59e3d3 100644 --- a/docs/configuration/models.md +++ b/docs/configuration/models.md @@ -6,7 +6,7 @@ Intel® Chatbot Toolkit supports multiple models for LLM inference, text embeddi ## How models are declared -Models are selected in `env//config.erag.yaml` through the `inference_models` list. Each entry references a model by its catalog name and assigns it a role: +Models are selected in `env//config.chatbot.yaml` through the `inference_models` list. Each entry references a model by its catalog name and assigns it a role: ```yaml inference_models: @@ -28,10 +28,10 @@ The catalog name is the `name:` field of an entry in `env//models-rag.yaml ## Changing models -Edit `env//config.erag.yaml` and re-run: +Edit `env//config.chatbot.yaml` and re-run: ```bash -./toolkit_manager.sh install erag --env +./toolkit_manager.sh install chatbot --env ``` The installer automatically: @@ -96,7 +96,7 @@ Each entry includes CPU/memory sizing, engine, category, and optional per-model ### Configuration -1. Set `solution_language` in `env//config.erag.yaml`: +1. Set `solution_language` in `env//config.chatbot.yaml`: ```yaml solution_language: "pl" # auto | en | pl @@ -123,7 +123,7 @@ Each entry includes CPU/memory sizing, engine, category, and optional per-model 3. Deploy: ```bash - ./toolkit_manager.sh install erag --env + ./toolkit_manager.sh install chatbot --env ``` 4. Re-ingest all documents so they are embedded with the new multilingual model. @@ -151,7 +151,7 @@ Enable at runtime through the Control Plane Admin Panel under Retriever settings METADATA_EXTRACTION_MODE=regex_only ``` -For `hybrid` or `ner_only` mode, enable NER in `env//config.erag.yaml`: +For `hybrid` or `ner_only` mode, enable NER in `env//config.chatbot.yaml`: ```yaml ner: diff --git a/docs/configuration/object-store.md b/docs/configuration/object-store.md index 111aa982..792a9047 100644 --- a/docs/configuration/object-store.md +++ b/docs/configuration/object-store.md @@ -8,7 +8,7 @@ This matters when your documents already live somewhere: pointing EDP at an exis ## Storage backends -Set `edp_storage_type` in `env//config.erag.yaml`: +Set `edp_storage_type` in `env//config.chatbot.yaml`: | Backend | When to use | |---------|-------------| @@ -90,7 +90,7 @@ ontap_s3_port: "443" # default: 443 ontap_s3_tls: true # default: true ``` -Set the following in `env//config.erag.yaml`: +Set the following in `env//config.chatbot.yaml`: ```yaml edp_s3_compatible_access_key_id: "" @@ -102,7 +102,7 @@ edp_s3_compatible_secret_access_key: "" Deploy or redeploy: ```bash -./toolkit_manager.sh install erag --env +./toolkit_manager.sh install chatbot --env ``` The installer prints the derived values at install time so a deployment can be read back from the log. @@ -138,7 +138,7 @@ The following values are automatically computed by `roles/app_edp/tasks/ontap_s3 To use `ca` mode: 1. Place the CA certificate in PEM format on the installer host -2. Set in `env//config.erag.yaml`: +2. Set in `env//config.chatbot.yaml`: ```yaml edp_ontap_s3_tls_mode: "ca" @@ -165,13 +165,13 @@ To use `ca` mode: - **Which gateway listener serves the S3 host.** The platform's dedicated S3 listener when it exists (it keeps signed paths intact); EDP then only records the host grant. Otherwise EDP publishes the host through the platform's gateway contract (`roles/gateway`, `publish.yaml`) as `ontap-s3` (namespace `edp`) or `seaweedfs-s3` (namespace `seaweedfs`), and the platform picks the mechanism: its own ListenerSet and certificate on a gateway that serves ListenerSets, a host grant on the shared `*.` listener otherwise, or the `/s3` path on the apex host in `routing_mode: path`. Those listeners use Envoy's default path normalization, so the key limitation above applies to them. The SeaweedFS admin UI is published the same way (`seaweedfs-admin`, `/seaweedfs` in path mode). - **No ONTAP-side provisioning.** The object-store server, the bucket, and the S3 user must exist, and the access keys are inputs. Nothing here creates them. -For the complete end-to-end flow (from `configure` through `init erag` to `install erag`), array-side prerequisites, and the `ontap_*` values themselves, see `docs/NETAPP_ONTAP.md` in Toolkit Manager repository. +For the complete end-to-end flow (from `configure` through `init chatbot` to `install chatbot`), array-side prerequisites, and the `ontap_*` values themselves, see `docs/NETAPP_ONTAP.md` in Toolkit Manager repository. --- ## Scheduled synchronization -S3-compatible storage without SQS event notifications requires scheduled synchronization to detect new files. Enable it in `env//config.erag.yaml`: +S3-compatible storage without SQS event notifications requires scheduled synchronization to detect new files. Enable it in `env//config.chatbot.yaml`: ```yaml edp_scheduled_sync_enabled: true diff --git a/docs/configuration/performance.md b/docs/configuration/performance.md index c0f3efdc..d759b505 100644 --- a/docs/configuration/performance.md +++ b/docs/configuration/performance.md @@ -4,7 +4,7 @@ Recommendations for optimizing Intel® Chatbot Toolkit deployment performance. ## LLM Model Selection -To change the LLM model, edit `inference_models` in `env//config.erag.yaml` before deploying the pipeline. Each entry maps to a model in `env//models-rag.yaml` (or `models.yaml`). +To change the LLM model, edit `inference_models` in `env//config.chatbot.yaml` before deploying the pipeline. Each entry maps to a model in `env//models-rag.yaml` (or `models.yaml`). ```yaml inference_models: @@ -28,7 +28,7 @@ Intel® Chatbot Toolkit supports the following vector database backends: | `mssql` | Microsoft SQL Server 2025 Express Edition | SQL-based vector operations | | `milvus` | Standalone Milvus with embedded etcd and local storage | Purpose-built vector search | -Set via `vector_databases_vector_store` in `env//config.erag.yaml`: +Set via `vector_databases_vector_store` in `env//config.chatbot.yaml`: ```yaml vector_databases_enabled: true @@ -36,7 +36,7 @@ vector_databases_namespace: vdb vector_databases_vector_store: redis-cluster # redis-cluster | mssql | milvus ``` -Per-store Helm payloads live under the `vector_databases_stores` key (nested, because the chart consumes them shaped that way); everything else in `config.erag.yaml` is flat. +Per-store Helm payloads live under the `vector_databases_stores` key (nested, because the chart consumes them shaped that way); everything else in `config.chatbot.yaml` is flat. Selecting `mssql` requires accepting the Microsoft SQL Server EULA during deployment. Role-based access control (RBAC) for vector databases is not supported when using `mssql`. @@ -61,7 +61,7 @@ The three supported vector algorithms: - **`HNSW`** - approximate nearest neighbor with fast index builds, good general-purpose choice - **`SVS-VAMANA`** - Intel-optimized approximate search with better memory efficiency and query throughput, recommended for medium/large datasets -**Critical:** The retriever and ingestion services **must** use the same `vector_algorithm` and matching parameters. These settings are automatically propagated to the retriever from `edp.ingestion.config` in `config.erag.yaml`. If they mismatch, each service will create a separate index in Redis and queries will return no results. After changing the algorithm, re-upload all files so data is re-indexed with the new algorithm. +**Critical:** The retriever and ingestion services **must** use the same `vector_algorithm` and matching parameters. These settings are automatically propagated to the retriever from `edp.ingestion.config` in `config.chatbot.yaml`. If they mismatch, each service will create a separate index in Redis and queries will return no results. After changing the algorithm, re-upload all files so data is re-indexed with the new algorithm. ### Verifying the Redis Vector Index @@ -97,7 +97,7 @@ docker build -t /erag/redis:8.2.2-svs . docker push /erag/redis:8.2.2-svs ``` -2. Configure the custom image and SVS-VAMANA with LeanVec4x8 compression in `env//config.erag.yaml`: +2. Configure the custom image and SVS-VAMANA with LeanVec4x8 compression in `env//config.chatbot.yaml`: ```yaml vector_databases_stores: @@ -117,7 +117,7 @@ For detailed trade-offs and parameter tuning see Redis documentation: Changing index settings can require additional RAM and storage for the vector database, since new indexes may be created before old ones are removed. This operation might be time-consuming for large datasets. -Ensure the Redis instances have enough resources assigned, both from compute and storage. Set this in `env//config.erag.yaml`. The top-level keys are flat; only the per-store payload under `vector_databases_stores` is nested, because the chart consumes it shaped that way: +Ensure the Redis instances have enough resources assigned, both from compute and storage. Set this in `env//config.chatbot.yaml`. The top-level keys are flat; only the per-store payload under `vector_databases_stores` is nested, because the chart consumes it shaped that way: ```yaml vector_databases_enabled: true @@ -145,7 +145,7 @@ In case of `redis-cluster`, all above settings are applied for each cluster node Model servers (LLM, embedding, reranking) are deployed by **Intel® Inference Toolkit** via `model-manager`, not in the chatbot namespace. Their sizing is set in the model catalog (`env//models-rag.yaml` or `models.yaml`), not in pipeline resource files. -**Automatic Configuration** (default): With `inference_auto_size: true`, the installer probes the topology of every node (physical cores, NUMA nodes, memory) and overrides the catalog `cpu`, `memory`, and `replicas` values with NUMA-aware ones. Manual configuration is only required when `inference_auto_size: false` is set in `env//config.erag.yaml`. +**Automatic Configuration** (default): With `inference_auto_size: true`, the installer probes the topology of every node (physical cores, NUMA nodes, memory) and overrides the catalog `cpu`, `memory`, and `replicas` values with NUMA-aware ones. Manual configuration is only required when `inference_auto_size: false` is set in `env//config.chatbot.yaml`. **Manual Configuration:** @@ -188,7 +188,7 @@ When running more than one vLLM instance and the system is accessed by 64+ concu Per-step CPU/memory/replica/HPA settings live in `deployment/pipelines/_shared/steps/.yaml.j2` under a `resources:` block keyed `-usvc`. These are aggregated by `deployment/scripts/compose_pipeline.py` when the pipeline is deployed. -To override a step's resources for your environment, add an override in `env//config.erag.yaml`: +To override a step's resources for your environment, add an override in `env//config.chatbot.yaml`: ```yaml # Example: override llm-usvc resources @@ -224,7 +224,7 @@ Only parameters that don't require a microservice restart can be adjusted at run ## Horizontal Pod Autoscaling -Enable HPA to allow the system to dynamically scale required resources in the cluster. HPA can be enabled in `env//config.erag.yaml`: +Enable HPA to allow the system to dynamically scale required resources in the cluster. HPA can be enabled in `env//config.chatbot.yaml`: ```yaml hpa_enabled: true diff --git a/docs/configuration/sharepoint.md b/docs/configuration/sharepoint.md index 2baadfa0..924b9f19 100644 --- a/docs/configuration/sharepoint.md +++ b/docs/configuration/sharepoint.md @@ -41,7 +41,7 @@ Each SharePoint site must grant read/write access to the app registration, becau ## Configuration -Set the following in `env//config.erag.yaml`: +Set the following in `env//config.chatbot.yaml`: ```yaml chattool_keycloak_oidc_endpoint: "https://login.microsoftonline.com//v2.0/.well-known/openid-configuration" @@ -70,13 +70,13 @@ A partial configuration is rejected at install time. Deploy or redeploy: ```bash -./toolkit_manager.sh install erag --env +./toolkit_manager.sh install chatbot --env ``` Re-check the configuration against the live cluster: ```bash -./toolkit_manager.sh validate erag --env +./toolkit_manager.sh validate chatbot --env ``` ## Managing SharePoint sites @@ -204,7 +204,7 @@ The response reports how many files were queued for deletion: ## Scheduled synchronization -Synchronization is manual by default. To run it periodically, set the following in `env//config.erag.yaml`: +Synchronization is manual by default. To run it periodically, set the following in `env//config.chatbot.yaml`: ```yaml edp_scheduled_sync_enabled: true @@ -222,7 +222,7 @@ The scheduled SharePoint task returns immediately when the integration is not co ## Role-based access control (RBAC) -Enable RBAC in `env//config.erag.yaml`: +Enable RBAC in `env//config.chatbot.yaml`: ```yaml edp_rbac_enabled: true diff --git a/docs/deployment/backup-and-restore.md b/docs/deployment/backup-and-restore.md index 4532b165..c35de36a 100644 --- a/docs/deployment/backup-and-restore.md +++ b/docs/deployment/backup-and-restore.md @@ -19,7 +19,7 @@ Two independent switches, both required: storage_backend: nfs # or ceph — must support CSI snapshots velero_enabled: true # deploys the mechanism -# env//config.erag.yaml (this toolkit) +# env//config.chatbot.yaml (this toolkit) backup_enabled: true # arms this toolkit's profile ``` @@ -34,9 +34,9 @@ Backup, restore and listing run through Toolkit Manager's backup helper, `run_ba root of the installer checkout: ```bash -./run_backup.sh backup erag --env -./run_backup.sh list erag --env # marks the backup a restore would pick -./run_backup.sh restore erag --env +./run_backup.sh backup chatbot --env +./run_backup.sh list chatbot --env # marks the backup a restore would pick +./run_backup.sh restore chatbot --env ``` A restore asks for confirmation before anything is deleted; `--force` answers it (a run without a @@ -60,7 +60,7 @@ cluster's own API, so a proxied call comes back `403` for no reason related to t Check the result: ```bash -kubectl -n velero get backups.velero.io -l ai-solutions.io/backup-profile=erag \ +kubectl -n velero get backups.velero.io -l ai-solutions.io/backup-profile=chatbot \ -o custom-columns=NAME:.metadata.name,PHASE:.status.phase,\ SNAPS:.status.csiVolumeSnapshotsCompleted ``` @@ -77,12 +77,12 @@ matches. To go back further — an N-2 backup, or any specific one — list the explicitly: ```bash -kubectl -n velero get backups.velero.io -l ai-solutions.io/backup-profile=erag \ +kubectl -n velero get backups.velero.io -l ai-solutions.io/backup-profile=chatbot \ -o custom-columns=NAME:.metadata.name,PHASE:.status.phase,COMPLETED:.status.completionTimestamp \ --sort-by=.status.completionTimestamp # then name it, e.g.: -# ./run_backup.sh restore erag --env --from backup-erag-20260910t120000 +# ./run_backup.sh restore chatbot --env --from backup-chatbot-20260910t120000 ``` Naming one this way is the only thing that changes: the cleanup, the restore order, and every @@ -185,21 +185,19 @@ older than `upgrade_backup_max_age_hours` (default 6). With `backup_enabled: fal find, so the check refuses too and names the fix: ```bash -./run_backup.sh backup erag --env +./run_backup.sh backup chatbot --env -./toolkit_manager.sh install erag --env +./toolkit_manager.sh install chatbot --env # refuses without a fresh backup of the installed release, and says so -./toolkit_manager.sh install erag --env --force +./toolkit_manager.sh install chatbot --env --force # runs anyway; the deployment record and the upgrade report say forced ``` `--force` bypasses every refusing check of the run, not only this one, and the run is recorded as forced. -This check applies from 3.1.0 on. An installed release before 3.1.0 is not upgraded in place at all: the -`keycloak-rename` check refuses it and points to -[the reinstall](install-rag.md#upgrade-from-a-release-before-the-chatbot-toolkit-rename). Do not -pass that check with `--force`: the run would create a second, empty Keycloak realm. +This check applies from 3.1.0 on. An installed release before 3.1.0 (target `erag`) is not upgraded in +place: it needs [a fresh reinstall](install-rag.md#upgrade-from-a-release-before-the-chatbot-toolkit-rename). ## Troubleshooting diff --git a/docs/deployment/install-rag.md b/docs/deployment/install-rag.md index 3b1e0644..8e115e5d 100644 --- a/docs/deployment/install-rag.md +++ b/docs/deployment/install-rag.md @@ -15,12 +15,12 @@ The platform and Intel® Inference Toolkit must be installed first: [Platform Qu ## Deployment workflow > [!IMPORTANT] -> Run every command from the **Toolkit Manager** repo root, not from this repository. `init erag` clones this repository into `ext/chatbot-toolkit` at a pinned revision. +> Run every command from the **Toolkit Manager** repo root, not from this repository. `init chatbot` clones this repository into `ext/chatbot-toolkit` at a pinned revision. ### Step 1 - Initialize ```bash -./toolkit_manager.sh init erag [--env ] [--flavour ] +./toolkit_manager.sh init chatbot [--env ] [--flavour ] ``` | Flavour | Use case | @@ -31,11 +31,11 @@ The platform and Intel® Inference Toolkit must be installed first: [Platform Qu | `translation` | Language translation | | `pl_chatqna` | Polish-language RAG | -Seeds `env//config.erag.yaml` from the flavour's defaults. Model catalog (`models-rag.yaml`) is seeded at install time. +Seeds `env//config.chatbot.yaml` from the flavour's defaults. Model catalog (`models-rag.yaml`) is seeded at install time. ### Step 2 - Configure (optional) -Edit `env//config.erag.yaml`: +Edit `env//config.chatbot.yaml`: | Setting | Options | Default | |---------|---------|---------| @@ -51,7 +51,7 @@ Gated models: `export HF_TOKEN="hf_..."`. Minimum hardware (≤60 cores / 128 GB ### Step 3 - Deploy ```bash -./toolkit_manager.sh install erag [--env ] +./toolkit_manager.sh install chatbot [--env ] ``` Validates, deploys inference models, installs RAG components in dependency order, waits for readiness, writes credentials to `env//logs/rag/`. Takes 10-15 minutes. @@ -60,11 +60,11 @@ Flags: `--env `, `--only` (no deps), `--skip `, `-- ` ## Model serving -Models deploy automatically via `app_inference_models` during `install erag`. No manual `./model-manager` step needed. +Models deploy automatically via `app_inference_models` during `install chatbot`. No manual `./model-manager` step needed. Default (ChatQnA): `llama3-8b-awq` (LLM), `nomic-embed` (embedding), `bge-reranker-v2-m3` (reranking), all in `llm-inference` namespace. LLM via AI Gateway; embedding/reranking via KServe service names. -Customize: edit `inference_models` in `env//config.erag.yaml`. Each model must exist in `env//models-rag.yaml`. +Customize: edit `inference_models` in `env//config.chatbot.yaml`. Each model must exist in `env//models-rag.yaml`. ## Access and credentials @@ -109,7 +109,7 @@ Secure credentials: `ansible-vault encrypt env//logs/rag/default_credentia ## Configure the deployment -Edit `env//config.erag.yaml` and re-run `./toolkit_manager.sh install erag --env `. Updates only affected components. See: [Pipeline Configuration](pipelines.md), [Advanced Configuration Guide](../configuration/configuration.md). +Edit `env//config.chatbot.yaml` and re-run `./toolkit_manager.sh install chatbot --env `. Updates only affected components. See: [Pipeline Configuration](pipelines.md), [Advanced Configuration Guide](../configuration/configuration.md). ## Data ingestion, UI and telemetry @@ -117,7 +117,7 @@ Use **Data Ingestion** tab in **Admin Panel** (admin only; ChatQnA and AudioQnA ## Single sign-on and SharePoint integration -SSO and SharePoint share one Microsoft Entra ID app registration. Configure in `env//config.erag.yaml`: +SSO and SharePoint share one Microsoft Entra ID app registration. Configure in `env//config.chatbot.yaml`: ```yaml chattool_keycloak_oidc_endpoint: "" # enables SSO @@ -127,28 +127,28 @@ chattool_keycloak_oidc_client_secret: "" chattool_keycloak_oidc_tenant_id: "" # additionally enables SharePoint ``` -All empty = disabled. Partial config rejected. Apply: `./toolkit_manager.sh install erag --env `. Full procedure: [Single Sign-On and SharePoint Integration](../configuration/sharepoint.md). +All empty = disabled. Partial config rejected. Apply: `./toolkit_manager.sh install chatbot --env `. Full procedure: [Single Sign-On and SharePoint Integration](../configuration/sharepoint.md). ## Remove the installation ```bash -./toolkit_manager.sh teardown erag --env +./toolkit_manager.sh teardown chatbot --env ``` Removes components in reverse order; models undeployed automatically. > [!WARNING] -> Teardown is environment-scoped. Tear down with the same `--env` you installed with: running it against another environment silently does nothing to the one you meant. `teardown erag` keeps the cluster, the platform, and Intel® Inference Toolkit; `teardown infrastructure` removes the cluster and everything on it. +> Teardown is environment-scoped. Tear down with the same `--env` you installed with: running it against another environment silently does nothing to the one you meant. `teardown chatbot` keeps the cluster, the platform, and Intel® Inference Toolkit; `teardown infrastructure` removes the cluster and everything on it. ## Upgrade from a release before the Chatbot Toolkit rename -The Keycloak realm, clients, roles, users and groups were renamed (realm `EnterpriseRAG` → `ChatbotToolkit`, `erag-*` → `chattool-*`). An upgrade doesn't rename them in place, so the installer refuses an install of this release over an earlier one (check `keycloak-rename`). Reinstall: +Upgrades cover installs of 3.1.0 or later. An older install (target `erag`) needs a fresh reinstall; its data is not carried over. The install target was renamed from `erag` to `chatbot`, and the Keycloak realm, clients, roles, users and groups were renamed too (realm `EnterpriseRAG` → `ChatbotToolkit`, `erag-*` → `chattool-*`). Reinstall: 1. Tear down with the **previous** release: `./es_auto_installer.sh teardown erag --env `. The new release's teardown only removes the new realm and the `chattool-credentials` Secret. It would leave the old `EnterpriseRAG` realm, with its users, passwords and client secrets, and the `erag-credentials` Secret in the platform's Keycloak. -2. In `env//config.erag.yaml`, rename every `erag_keycloak_*` key to `chattool_keycloak_*`. The installer stops if an old key is still set. +2. With the new release, run `./toolkit_manager.sh init chatbot --env `. Move your settings from `env//config.erag.yaml` into the `config.chatbot.yaml` it seeds, renaming every `erag_keycloak_*` key to `chattool_keycloak_*` (the installer stops if an old key is still set). Then delete `config.erag.yaml` and remove the `erag` entry under `layers:` in `env//.solutions.yaml`. 3. With LDAP/Active Directory federation, rename the AD groups `erag-{admin,user,maintainer}-group` to `chattool-{admin,user,maintainer}-group`. Keycloak names each mapped role after the group's `cn`, so changing the `chattool_keycloak_federation_*_group_ldap_filter` settings alone doesn't keep the old groups working. 4. With Entra ID SSO, the app registration's redirect URI becomes `https:///realms/ChatbotToolkit/broker//endpoint`, and an IdP that sends `EnterpriseRAG.*Access` role claims must send `ChatbotToolkit.*Access`. -5. Install the new release. Users get new accounts (`chattool-admin`, …) and new passwords in `default_credentials.txt`. +5. Install the new release: `./toolkit_manager.sh install chatbot --env `. Users get new accounts (`chattool-admin`, …) and new passwords in `default_credentials.txt`. ## Troubleshooting @@ -160,7 +160,7 @@ The Keycloak realm, clients, roles, users and groups were renamed (realm `Enterp | **Pods stuck pending** | `kubectl describe pod -n `. Minimum hardware: verify [tuning steps](../getting-started/prerequisites.md#deploying-on-minimum-hardware). | | **Models not deploying** | Gated models: `export HF_TOKEN="hf_..."` before install. | | **Connection test fails** | Wait for all pods `Running` in pipeline namespace. | -| **Install fails** | Check `env//logs/install-erag-*.log`, then re-run (idempotent). | +| **Install fails** | Check `env//logs/install-chatbot-*.log`, then re-run (idempotent). | ## Related documentation diff --git a/docs/deployment/pipelines.md b/docs/deployment/pipelines.md index a9738eb3..04cce023 100644 --- a/docs/deployment/pipelines.md +++ b/docs/deployment/pipelines.md @@ -16,7 +16,7 @@ Picking a pipeline is therefore the first product decision, not a tuning detail: | `audioqna` | `chatqna` | ChatQnA + voice | `base` | | `pl_chatqna` | `chatqna` | Polish-language RAG | `base` | -**Flavour:** name for `init erag --flavour `; seeds `config.erag.yaml`. **Pipeline Type:** GMC service graph. **Variant:** graph modification; set via `pipeline_variant`. +**Flavour:** name for `init chatbot --flavour `; seeds `config.chatbot.yaml`. **Pipeline Type:** GMC service graph. **Variant:** graph modification; set via `pipeline_variant`. ## Pipeline variants @@ -33,14 +33,14 @@ ChatQnA supports five variants: > [!NOTE] > One pipeline runs at a time. Switching re-composes the graph and tears down the previous pipeline. The vector store lives in its own namespace and is preserved across the switch. -Set in `env//config.erag.yaml`: +Set in `env//config.chatbot.yaml`: ```yaml pipeline_type: "chatqna" pipeline_variant: "query-rewrite" ``` -Deploy: `./toolkit_manager.sh install erag --env `. +Deploy: `./toolkit_manager.sh install chatbot --env `. ## Pipeline architecture @@ -79,20 +79,20 @@ inference_models: mcp_enabled: false ``` -Deploy: `./toolkit_manager.sh install erag --env `. The install undeploys the dropped LLM and reranking model servers and re-places the embedding one at its upload size - no manual `./model-manager undeploy` step. +Deploy: `./toolkit_manager.sh install chatbot --env `. The install undeploys the dropped LLM and reranking model servers and re-places the embedding one at its upload size - no manual `./model-manager undeploy` step. **Switching back to base:** restore the full model list, set `pipeline_variant: "base"`, re-enable `mcp_enabled` if it was on, re-install. The upload-sized embedding server is undeployed first (it takes the whole machine, so the LLM cannot be placed alongside it), then all three are deployed at base sizes. Weights stay on the `model-store` PVC, so nothing is re-downloaded. ## Switching pipelines -Edit `env//config.erag.yaml`: +Edit `env//config.chatbot.yaml`: ```yaml pipeline_type: "docsum" pipeline_variant: "base" ``` -Deploy: `./toolkit_manager.sh install erag --env `. Tears down old pipeline, deploys new. Vector store preserved (separate namespace). Models may be replaced/re-sized. +Deploy: `./toolkit_manager.sh install chatbot --env `. Tears down old pipeline, deploys new. Vector store preserved (separate namespace). Models may be replaced/re-sized. ## Configuration file structure diff --git a/docs/deployment/vmware.md b/docs/deployment/vmware.md index 93c6e2b5..089ed185 100644 --- a/docs/deployment/vmware.md +++ b/docs/deployment/vmware.md @@ -77,10 +77,10 @@ git clone https://github.com/intel/toolkit-manager.git cd toolkit-manager ./toolkit_manager.sh configure -./toolkit_manager.sh init erag +./toolkit_manager.sh init chatbot ``` -`init erag` clones this repository and Intel® Inference Toolkit into `ext/` at their pinned revisions. Every command from here runs from this directory. +`init chatbot` clones this repository and Intel® Inference Toolkit into `ext/` at their pinned revisions. Every command from here runs from this directory. ### 2. Deploy the Kubernetes cluster on vSphere @@ -91,7 +91,7 @@ If vSphere already provides the cluster, set `existing_kubernetes` in `env/local ### 3. Deploy Intel® Chatbot Toolkit ```bash -./toolkit_manager.sh install erag +./toolkit_manager.sh install chatbot ``` This pulls in the `infrastructure`, `platform`, and `inference` installer targets first. Full walkthrough → [Deploy Intel® Chatbot Toolkit](install-rag.md). diff --git a/docs/faq-and-troubleshooting/frequently-asked-questions.md b/docs/faq-and-troubleshooting/frequently-asked-questions.md index 19ebca20..41d4af1a 100644 --- a/docs/faq-and-troubleshooting/frequently-asked-questions.md +++ b/docs/faq-and-troubleshooting/frequently-asked-questions.md @@ -10,15 +10,15 @@ Short answers with links to the full detail. New here? Read [Meet Intel® Chatbo ### What is Intel® Chatbot Toolkit? -A complete retrieval-augmented generation application you deploy on your own hardware: document ingestion, vector search, retrieval pipelines, guardrails, chat UI, single sign-on, and dashboards. [Toolkit Manager](https://github.com/intel/toolkit-manager) installs and operates it. The install target is `erag`. See [Meet](../overview/meet.md). +A complete retrieval-augmented generation application you deploy on your own hardware: document ingestion, vector search, retrieval pipelines, guardrails, chat UI, single sign-on, and dashboards. [Toolkit Manager](https://github.com/intel/toolkit-manager) installs and operates it. The install target is `chatbot`. See [Meet](../overview/meet.md). ### Which repository do I clone? -Clone `github.com/intel/toolkit-manager` and run every command from its root. `init erag` clones this repository into `ext/chatbot-toolkit` at a pinned revision. You never clone this repository directly to deploy it. +Clone `github.com/intel/toolkit-manager` and run every command from its root. `init chatbot` clones this repository into `ext/chatbot-toolkit` at a pinned revision. You never clone this repository directly to deploy it. ### Do I have to install the platform before Intel® Chatbot Toolkit? -No. `install erag` pulls its dependencies automatically, in order: infrastructure, the platform services, Intel® Inference Toolkit, then Intel® Chatbot Toolkit. Installing the platform first is optional and useful only when you want to confirm model serving works before adding the chatbot. See [Quick Start](../getting-started/quickstart.md). +No. `install chatbot` pulls its dependencies automatically, in order: infrastructure, the platform services, Intel® Inference Toolkit, then Intel® Chatbot Toolkit. Installing the platform first is optional and useful only when you want to confirm model serving works before adding the chatbot. See [Quick Start](../getting-started/quickstart.md). ### How long does a deployment take? @@ -46,7 +46,7 @@ Only for gated models such as Llama, Mistral, or Gemma. Export `HF_TOKEN` before ### What is the difference between a flavour, a pipeline type, and a variant? -A **flavour** is the preset that `init erag --flavour ` seeds your configuration from. A **pipeline type** is the service graph that gets composed (`chatqna`, `docsum`, `translation`). A **variant** modifies that graph, for example inserting a query-rewrite step. See [Pipelines](../deployment/pipelines.md). +A **flavour** is the preset that `init chatbot --flavour ` seeds your configuration from. A **pipeline type** is the service graph that gets composed (`chatqna`, `docsum`, `translation`). A **variant** modifies that graph, for example inserting a query-rewrite step. See [Pipelines](../deployment/pipelines.md). ### Which flavours are available? @@ -58,11 +58,11 @@ No. One pipeline is deployed at a time. Switching re-composes the service graph ### How do I switch pipelines after installing? -Edit `pipeline_type` and `pipeline_variant` in `env//config.erag.yaml`, then re-run `install erag`. You do not re-run `init`. +Edit `pipeline_type` and `pipeline_variant` in `env//config.chatbot.yaml`, then re-run `install chatbot`. You do not re-run `init`. -### Why does `init erag --flavour` refuse to run on an environment I already created? +### Why does `init chatbot --flavour` refuse to run on an environment I already created? -To protect edits you have already made to the configuration. Either use a fresh `--env`, or delete `env//config.erag.yaml` to reseed it from the flavour. +To protect edits you have already made to the configuration. Either use a fresh `--env`, or delete `env//config.chatbot.yaml` to reseed it from the flavour. ### Which vector databases are supported? @@ -70,11 +70,11 @@ To protect edits you have already made to the configuration. Either use a fresh ### How do I change the LLM, embedding, or reranking model? -List the models under `inference_models` in `env//config.erag.yaml`. Each entry must exist in `env//models-rag.yaml`. See [Models](../configuration/models.md). +List the models under `inference_models` in `env//config.chatbot.yaml`. Each entry must exist in `env//models-rag.yaml`. See [Models](../configuration/models.md). ### Do I need to deploy models manually with `model-manager`? -No. `install erag` deploys the models declared in `inference_models` through its own step, sizes them, and undeploys models that are no longer needed when you switch pipelines. +No. `install chatbot` deploys the models declared in `inference_models` through its own step, sizes them, and undeploys models that are no longer needed when you switch pipelines. ### What happens if I change the embedding model after ingesting documents? @@ -82,7 +82,7 @@ Embedding dimensions change and the existing index is not rebuilt automatically, ### Where do my settings live, and why do nested keys not work? -Everything is under `env//`: `config.erag.yaml` for chatbot settings, `global_config.yaml` for platform settings, `models-rag.yaml` for the model catalog. The override surface is flat because files are merged shallowly; a nested dictionary replaces the role default instead of merging into it. See [Configuration](../configuration/configuration.md). +Everything is under `env//`: `config.chatbot.yaml` for chatbot settings, `global_config.yaml` for platform settings, `models-rag.yaml` for the model catalog. The override surface is flat because files are merged shallowly; a nested dictionary replaces the role default instead of merging into it. See [Configuration](../configuration/configuration.md). ### Can I keep several deployments side by side? @@ -126,11 +126,11 @@ Yes, through the Model Context Protocol gateway. It is off by default; set `mcp_ ### How do I check that the deployment is healthy? -`./toolkit_manager.sh status --env ` for namespaces, pods, and endpoints, and `./toolkit_manager.sh validate erag --env ` for health checks. The pipeline test scripts under `ext/chatbot-toolkit/deployment/scripts/` send a real request. +`./toolkit_manager.sh status --env ` for namespaces, pods, and endpoints, and `./toolkit_manager.sh validate chatbot --env ` for health checks. The pipeline test scripts under `ext/chatbot-toolkit/deployment/scripts/` send a real request. ### Where are the logs? -Installer and Ansible logs are in `env//logs/`, for example `install-erag-*.log`. Service logs are in Loki and browsable from Grafana. See [Telemetry](../configuration/telemetry.md). +Installer and Ansible logs are in `env//logs/`, for example `install-chatbot-*.log`. Service logs are in Loki and browsable from Grafana. See [Telemetry](../configuration/telemetry.md). ### What can I see in Grafana? @@ -146,7 +146,7 @@ Horizontal Pod Autoscaling is enabled by default (`hpa_enabled: true`) and disab ### How do I remove it? -`teardown erag` removes Intel® Chatbot Toolkit in reverse order and undeploys its models, leaving the cluster, the platform, and Intel® Inference Toolkit running. `teardown infrastructure` removes the cluster and everything on it. Teardown is environment-scoped: use the same `--env` you installed with. +`teardown chatbot` removes Intel® Chatbot Toolkit in reverse order and undeploys its models, leaving the cluster, the platform, and Intel® Inference Toolkit running. `teardown infrastructure` removes the cluster and everything on it. Teardown is environment-scoped: use the same `--env` you installed with. ### Will switching models or pipelines re-download the weights? @@ -154,7 +154,7 @@ No. Weights stay on the `model-store` persistent volume, so a model that comes b ### Can I use my own container registry? -Yes. Build the component images and point `registry` and `tag` in `config.erag.yaml` at your registry. See [Building Images](../configuration/images.md). +Yes. Build the component images and point `registry` and `tag` in `config.chatbot.yaml` at your registry. See [Building Images](../configuration/images.md). ### Something is broken and none of this covers it. diff --git a/docs/faq-and-troubleshooting/troubleshooting.md b/docs/faq-and-troubleshooting/troubleshooting.md index ee26488c..0f7cb175 100644 --- a/docs/faq-and-troubleshooting/troubleshooting.md +++ b/docs/faq-and-troubleshooting/troubleshooting.md @@ -6,10 +6,10 @@ Common symptoms, causes, and fixes for Intel® Chatbot Toolkit deployments. | Symptom | Likely cause / fix | |---------|--------------------| -| `install erag` fails with "inference layer not found" | Intel® Inference Toolkit must be installed first. Run `./toolkit_manager.sh install inference --env ` before `install erag`. | +| `install chatbot` fails with "inference layer not found" | Intel® Inference Toolkit must be installed first. Run `./toolkit_manager.sh install inference --env ` before `install chatbot`. | | Namespace stuck in `Terminating` during teardown | Finalizers or resources not cleaned up. Force-delete: `kubectl delete ns --grace-period=0 --force`. | | Helm install fails with "release already exists" | Previous install failed mid-way. Uninstall: `helm uninstall -n `, then retry. | -| Models not deployed after `install erag` | Models don't auto-deploy unless both `inference_models_enabled: true` AND the model has `autodeploy: true` in the catalog. Deploy manually: `./model-manager deploy --wait`. | +| Models not deployed after `install chatbot` | Models don't auto-deploy unless both `inference_models_enabled: true` AND the model has `autodeploy: true` in the catalog. Deploy manually: `./model-manager deploy --wait`. | | Component fails with "image pull backoff" | Registry rate limit or proxy issue. Configure a pull-through mirror, or pre-pull images: `docker pull :` on each node. | | PVC stays `Pending` | Storage class not ready or no available provisioner. Check: `kubectl get sc`, `kubectl get pv`, and storage backend logs. | @@ -19,7 +19,7 @@ Common symptoms, causes, and fixes for Intel® Chatbot Toolkit deployments. |---------|--------------------| | Model stuck not-Ready after deploy | Check logs: `kubectl logs -n llm-inference -l app.kubernetes.io/name= -f`. CPU model load plus warmup takes minutes - often slow, not broken. | | Model requests fail with "model not found" | The `model` field in the request must match the deploy **name**, not the Hugging Face `model_id`. List registered models: `kubectl get llminferenceservice -n llm-inference`. | -| Embedding/reranking requests return errors | Verify the model endpoint is healthy: `kubectl get llminferenceservice,inferenceservice -n llm-inference`. Check that `inference_models` in `config.erag.yaml` lists the right models with `role: embedding` and `role: reranking`. | +| Embedding/reranking requests return errors | Verify the model endpoint is healthy: `kubectl get llminferenceservice,inferenceservice -n llm-inference`. Check that `inference_models` in `config.chatbot.yaml` lists the right models with `role: embedding` and `role: reranking`. | | Download Job fails with "permission denied" | The downloader runs non-root; ensure the PVC is writable. The Job sets `HOME` and cache paths to writable locations. | | Model "gated" error | Set `HF_TOKEN` in the catalog and re-deploy: `./model-manager deploy --wait`. See [Gated models](https://github.com/intel/inference-toolkit/blob/main/docs/getting-started/deploy-models.md#gated-models-hugging-face-token). | | Download fails behind a corporate proxy | Set `http_proxy` / `https_proxy` / `no_proxy` in the catalog's `network:` section, or via `MM_HTTP_PROXY` / `MM_HTTPS_PROXY` / `MM_NO_PROXY`. | @@ -31,7 +31,7 @@ Common symptoms, causes, and fixes for Intel® Chatbot Toolkit deployments. | GMConnector stuck not-Ready | Check GMC manager logs: `kubectl logs -n -l app.kubernetes.io/name=gmc-manager`. Verify all pipeline steps have matching Service and Deployment resources: `kubectl get svc,deploy -n `. | | Router service returns 503 | One or more pipeline steps are unhealthy. Check: `kubectl get pods -n `. Inspect logs of unhealthy pods. | | Request goes through but returns empty results | Vector DB mismatch. Verify retriever and ingestion are using the same `vector_algorithm` setting. See [Performance](../configuration/performance.md#verifying-the-redis-vector-index). | -| Pipeline variant not applied | Variant is set via `pipeline_variant` in `config.erag.yaml`. Re-run `install erag` after changing it (GMConnector must be regenerated). | +| Pipeline variant not applied | Variant is set via `pipeline_variant` in `config.chatbot.yaml`. Re-run `install chatbot` after changing it (GMConnector must be regenerated). | | NATS connection errors | NATS uses NKey auth. Verify the `nats-auth` secret exists in the pipeline namespace: `kubectl get secret -n nats-auth`. | ## EDP Issues @@ -41,7 +41,7 @@ Common symptoms, causes, and fixes for Intel® Chatbot Toolkit deployments. | File upload fails with 500 error | Check EDP API logs: `kubectl logs -n edp -l app.kubernetes.io/name=edp`. Verify PostgreSQL is healthy: `kubectl get cluster -n edp`. | | Files stuck in processing state | Celery workers may be overloaded or unhealthy. Check: `kubectl get pods -n edp -l app.kubernetes.io/component=celery`. Scale workers: `kubectl scale deploy -n edp edp-celery --replicas=`. | | "No space left on device" during ingestion | EDP blob storage (SeaweedFS / S3) is full. Increase PVC size or clean up old files. Check storage usage: `kubectl exec -n edp -- df -h`. | -| Vector DB index has two entries (queries return no results) | Retriever and ingestion are using different `vector_algorithm` settings. Fix: set both to the same value in `config.erag.yaml`, redeploy, and re-upload files. See [Performance](../configuration/performance.md#verifying-the-redis-vector-index). | +| Vector DB index has two entries (queries return no results) | Retriever and ingestion are using different `vector_algorithm` settings. Fix: set both to the same value in `config.chatbot.yaml`, redeploy, and re-upload files. See [Performance](../configuration/performance.md#verifying-the-redis-vector-index). | ## UI and Gateway Issues @@ -57,8 +57,8 @@ Common symptoms, causes, and fixes for Intel® Chatbot Toolkit deployments. | Symptom | Likely cause / fix | |---------|--------------------| -| Redis cluster pods crash-looping | Insufficient memory. Increase resource limits in `config.erag.yaml` under `vector_databases_stores.redis-cluster.resources`. | -| MSSQL pod fails to start | EULA not accepted. Re-run `install erag` and answer `Y`, or set `MSSQL_ACCEPT_EULA=Y` in the installer's environment. See [Configuration › Microsoft SQL Server 2025](../configuration/configuration.md#microsoft-sql-server-2025). | +| Redis cluster pods crash-looping | Insufficient memory. Increase resource limits in `config.chatbot.yaml` under `vector_databases_stores.redis-cluster.resources`. | +| MSSQL pod fails to start | EULA not accepted. Re-run `install chatbot` and answer `Y`, or set `MSSQL_ACCEPT_EULA=Y` in the installer's environment. See [Configuration › Microsoft SQL Server 2025](../configuration/configuration.md#microsoft-sql-server-2025). | | Queries return no results after algorithm change | Old index still exists. Re-upload all files to trigger re-indexing with the new algorithm. Verify only one index exists: `kubectl exec -it -c redis -- redis-cli FT._LIST`. | ## Istio Mesh Issues @@ -88,7 +88,7 @@ This collects pod logs, resource descriptions, config files (redacted), and Helm ./toolkit_manager.sh status --env # Validate Intel® Chatbot Toolkit -./toolkit_manager.sh validate erag --env +./toolkit_manager.sh validate chatbot --env # Test ChatQnA pipeline cd deployment && ./scripts/test_connection.sh diff --git a/docs/getting-started/prerequisites.md b/docs/getting-started/prerequisites.md index d3e871a1..015a09e2 100644 --- a/docs/getting-started/prerequisites.md +++ b/docs/getting-started/prerequisites.md @@ -8,7 +8,7 @@ Everything you need before Toolkit Manager installs Intel® Chatbot Toolkit on t ## Platform prerequisites -Toolkit Manager installs and operates Intel® Chatbot Toolkit on the platform. The install target is `erag`. The platform provides Kubernetes, storage, observability, model serving, and authentication before the chatbot can be deployed. +Toolkit Manager installs and operates Intel® Chatbot Toolkit on the platform. The install target is `chatbot`. The platform provides Kubernetes, storage, observability, model serving, and authentication before the chatbot can be deployed. > [!NOTE] > The platform prerequisites (OS, storage backends, node configuration, and SSH setup) are owned by Toolkit Manager. See: @@ -40,7 +40,7 @@ The **limited single-user deployment** (32 cores / 64 GB RAM) is suitable only f ## Software prerequisites > [!IMPORTANT] -> Gated models fail to deploy with an authorization error, not a clear message about the token. If you plan to serve Llama, Mistral, or Gemma, export `HF_TOKEN` **before** running `install erag`. +> Gated models fail to deploy with an authorization error, not a clear message about the token. If you plan to serve Llama, Mistral, or Gemma, export `HF_TOKEN` **before** running `install chatbot`. - **Hugging Face model access:** Ensure you have the necessary access to download and use the models your deployment will serve. Gated models (Llama, Mistral, Gemma) require a [Hugging Face token](https://huggingface.co/settings/tokens) exported as `HF_TOKEN` before install. @@ -68,7 +68,7 @@ When deploying on the minimum hardware configuration (60 logical cores / 128 GB Model servers cache key-value pairs during inference. The default cache size (`10` GB) must be reduced to `1` GB for minimum-hardware deployments. -Edit the model catalog **after** running `init erag` (it creates the catalog at `env//models-rag.yaml`): +Edit the model catalog **after** running `init chatbot` (it creates the catalog at `env//models-rag.yaml`): ```bash nano env//models-rag.yaml @@ -96,7 +96,7 @@ Repeat for every model in `inference_models` (LLM, embedding, reranking). ### Limited single-user (32 cores / 64 GB) additional steps -For the **32 logical cores / 64 GB RAM** configuration, also set the following in `env//config.erag.yaml` before running `install erag`: +For the **32 logical cores / 64 GB RAM** configuration, also set the following in `env//config.chatbot.yaml` before running `install chatbot`: ```yaml hpa_enabled: false # disable Horizontal Pod Autoscaling diff --git a/docs/getting-started/quickstart.md b/docs/getting-started/quickstart.md index 9ab5aa27..e083fe23 100644 --- a/docs/getting-started/quickstart.md +++ b/docs/getting-started/quickstart.md @@ -2,12 +2,12 @@ [← Docs Index](../README.md) -Toolkit Manager installs and operates Intel® Chatbot Toolkit on the platform. The install target is `erag`. +Toolkit Manager installs and operates Intel® Chatbot Toolkit on the platform. The install target is `chatbot`. This guide installs Kubernetes, the platform services, the model servers, and the chatbot itself, then leaves you with a working assistant at `https://` that you can ingest documents into. > [!IMPORTANT] -> You clone and work from the **Toolkit Manager** repository, not this one. Every command below runs from its root, and `init erag` clones this repository into `ext/` for you. +> You clone and work from the **Toolkit Manager** repository, not this one. Every command below runs from its root, and `init chatbot` clones this repository into `ext/` for you. ## Before you begin @@ -27,7 +27,7 @@ cd toolkit-manager ## Step 2 - Install the platform (optional) -`install erag` in Step 4 pulls in the installer targets it depends on (`infrastructure`, `platform`, `inference`), so you can skip straight to [Step 3](#step-3---initialize-the-chatbot). +`install chatbot` in Step 4 pulls in the installer targets it depends on (`infrastructure`, `platform`, `inference`), so you can skip straight to [Step 3](#step-3---initialize-the-chatbot). To stage the platform separately, for example to confirm model serving works before adding the chatbot: @@ -40,25 +40,25 @@ For multi-node or bring-your-own-Kubernetes, see the [Platform Quickstart](https ## Step 3 - Initialize the chatbot ```bash -./toolkit_manager.sh init erag --env local +./toolkit_manager.sh init chatbot --env local ``` -Seeds `env/local/config.erag.yaml`. Default flavour is `chatqna`. Others: +Seeds `env/local/config.chatbot.yaml`. Default flavour is `chatqna`. Others: ```bash -./toolkit_manager.sh init erag --env local --flavour docsum # document summarization -./toolkit_manager.sh init erag --env local --flavour audioqna # voice-enabled ChatQnA -./toolkit_manager.sh init erag --env local --flavour translation # language translation +./toolkit_manager.sh init chatbot --env local --flavour docsum # document summarization +./toolkit_manager.sh init chatbot --env local --flavour audioqna # voice-enabled ChatQnA +./toolkit_manager.sh init chatbot --env local --flavour translation # language translation ``` Available: `chatqna`, `docsum`, `audioqna`, `translation`, `pl_chatqna`. > [!NOTE] -> The flavour is chosen at `init` time. Re-running `init erag --flavour ` on an existing environment is refused so your edits are not overwritten: use a fresh `--env`, or delete `env//config.erag.yaml` to reseed. To change the pipeline **after** installing, edit `pipeline_type` in `config.erag.yaml` and re-run `install erag` instead. See [Pipelines](../deployment/pipelines.md#switching-pipelines). +> The flavour is chosen at `init` time. Re-running `init chatbot --flavour ` on an existing environment is refused so your edits are not overwritten: use a fresh `--env`, or delete `env//config.chatbot.yaml` to reseed. To change the pipeline **after** installing, edit `pipeline_type` in `config.chatbot.yaml` and re-run `install chatbot` instead. See [Pipelines](../deployment/pipelines.md#switching-pipelines). ## Step 4 - Configure (optional) -Edit `env/local/config.erag.yaml` to customize if needed: +Edit `env/local/config.chatbot.yaml` to customize if needed: ```yaml inference_models: @@ -81,7 +81,7 @@ For the limited single-user deployment (32 cores / 64 GB RAM), see [Prerequisite ## Step 5 - Deploy ```bash -./toolkit_manager.sh install erag --env local +./toolkit_manager.sh install chatbot --env local ``` Installs: model servers, vector database, RAG microservices, EDP pipeline, UI, Keycloak. Takes 15-20 minutes. @@ -155,4 +155,4 @@ The local `admin` signs in on the same login form; see [Telemetry](../configurat | Pods stuck pending | `kubectl describe pod -n `. For minimum hardware, verify [tuning steps](prerequisites.md#deploying-on-minimum-hardware). | | Models not deploying | Gated models need `export HF_TOKEN="hf_..."` before install. | | Connection test fails | Wait for all pods `Running` in the pipeline namespace. | -| Install fails | Check `env/local/logs/install-erag-*.log`, then re-run (idempotent). | +| Install fails | Check `env/local/logs/install-chatbot-*.log`, then re-run (idempotent). | diff --git a/docs/overview/meet.md b/docs/overview/meet.md index 056fd499..e033c685 100644 --- a/docs/overview/meet.md +++ b/docs/overview/meet.md @@ -12,7 +12,7 @@ Intel® Chatbot Toolkit is a complete retrieval-augmented generation application It is not a library or a reference notebook. It is a running system: document ingestion, a vector database, the retrieval pipeline, guardrails, single sign-on, dashboards, and autoscaling, all deployed together by one command. -[Toolkit Manager](https://github.com/intel/toolkit-manager) installs and operates it. The platform underneath provides Kubernetes, storage, service mesh, identity, and model serving through Intel® Inference Toolkit. This toolkit provides the RAG application on top. `erag` is the install target name. +[Toolkit Manager](https://github.com/intel/toolkit-manager) installs and operates it. The platform underneath provides Kubernetes, storage, service mesh, identity, and model serving through Intel® Inference Toolkit. This toolkit provides the RAG application on top. `chatbot` is the install target name. ## Why it exists @@ -39,20 +39,20 @@ github.com/intel/toolkit-manager <- start here; run all commands from this | |-- toolkit_manager.sh the single entry point (configure / init / install / teardown) |-- env// your configuration, kubeconfig, credentials, and logs - `-- ext/ cloned automatically by `init erag` + `-- ext/ cloned automatically by `init chatbot` |-- inference-toolkit model serving: KServe, vLLM, OpenVINO Model Server `-- chatbot-toolkit this repo: RAG pipelines, ingestion, UI ``` > [!IMPORTANT] -> Do not clone this repository directly to deploy it. Clone the Toolkit Manager repository, run `./toolkit_manager.sh init erag`, and it will fetch this one into `ext/` at a pinned revision. Every command in this documentation is run from the Toolkit Manager repo root. +> Do not clone this repository directly to deploy it. Clone the Toolkit Manager repository, run `./toolkit_manager.sh init chatbot`, and it will fetch this one into `ext/` at a pinned revision. Every command in this documentation is run from the Toolkit Manager repo root. ## What gets deployed -`install erag` brings up the installer targets below it first, then Intel® Chatbot Toolkit. `inference` is Intel® Inference Toolkit. `erag` is this toolkit: +`install chatbot` brings up the installer targets below it first, then Intel® Chatbot Toolkit. `inference` is Intel® Inference Toolkit. `chatbot` is this toolkit: ``` -infrastructure -> platform -> inference -> erag +infrastructure -> platform -> inference -> chatbot Kubernetes Istio KServe pipelines, ingestion (EDP), storage Keycloak vLLM / OVMS vector database, guardrails, PostgreSQL AI Gateway chat history, MCP gateway, UI diff --git a/docs/reference/architecture.md b/docs/reference/architecture.md index 74e12dd2..bbdd81d8 100644 --- a/docs/reference/architecture.md +++ b/docs/reference/architecture.md @@ -1,6 +1,6 @@ # Architecture -Toolkit Manager installs and operates Intel® Chatbot Toolkit on the platform. The toolkit deploys RAG pipelines, microservices, and a UI onto the platform's Kubernetes, Istio mesh, PostgreSQL, and Keycloak/LiteLLM. `erag` is the install target name. +Toolkit Manager installs and operates Intel® Chatbot Toolkit on the platform. The toolkit deploys RAG pipelines, microservices, and a UI onto the platform's Kubernetes, Istio mesh, PostgreSQL, and Keycloak/LiteLLM. `chatbot` is the install target name. This doc covers what the toolkit deploys, how its components compose into a working RAG application, and how it uses Intel® Inference Toolkit and the platform underneath. @@ -10,34 +10,34 @@ Toolkit Manager clones this repo into its own `ext/chatbot-toolkit/` at runtime | File | Purpose | |------|---------| -| `deployment/components.yaml` | Registers 15 `app_*` components in the `erag` install target with dependency order | -| `deployment/pipelines//config.yaml` | Per-flavour baseline config, seeded to `env//config.erag.yaml` by `init erag --flavour ` | +| `deployment/components.yaml` | Registers 15 `app_*` components in the `chatbot` install target with dependency order | +| `deployment/pipelines//config.yaml` | Per-flavour baseline config, seeded to `env//config.chatbot.yaml` by `init chatbot --flavour ` | | `deployment/roles/` | 21 Ansible roles (15 in the component registry + 6 helpers) | | `deployment/components/` | Helm charts per component (apisix, audio, chat_history, edp, ferretdb, fingerprint, gmc, hpa, mcp_gateway, nats, postgresql, ui, utils, vector_databases) | | `deployment/pipelines/` | 5 pipeline flavours: `chatqna`, `docsum`, `audioqna`, `translation`, `pl_chatqna` | -The installer adds `deployment/roles/` to `ANSIBLE_ROLES_PATH`, merges `components.yaml` into the component registry, and loads `config.erag.yaml` via `-e @...`. +The installer adds `deployment/roles/` to `ANSIBLE_ROLES_PATH`, merges `components.yaml` into the component registry, and loads `config.chatbot.yaml` via `-e @...`. ### Commands ```bash # Initialize a RAG environment (from Toolkit Manager repo root) -./toolkit_manager.sh init erag --env myenv +./toolkit_manager.sh init chatbot --env myenv # Install Intel® Chatbot Toolkit (requires Intel® Inference Toolkit already installed) -./toolkit_manager.sh install erag --env myenv +./toolkit_manager.sh install chatbot --env myenv # Check status ./toolkit_manager.sh status --env myenv -./toolkit_manager.sh validate erag --env myenv +./toolkit_manager.sh validate chatbot --env myenv ``` ## Installer targets -`install erag` depends on the `platform` and `inference` installer targets. `inference` is Intel® Inference Toolkit. `erag` is Intel® Chatbot Toolkit: +`install chatbot` depends on the `platform` and `inference` installer targets. `inference` is Intel® Inference Toolkit. `chatbot` is Intel® Chatbot Toolkit: ``` -infrastructure → platform → inference → erag +infrastructure → platform → inference → chatbot (Istio, (KServe, (RAG app, Keycloak, vLLM, pipelines, CNPG, Envoy AI vector DB, @@ -50,7 +50,7 @@ At install time Toolkit Manager resolves these dependencies and deploys layers i 15 components registered in `deployment/components.yaml`, executed in dependency order. -The **Enabled** column is the fallback in `components.yaml`, used only when nothing sets the toggle. Every shipped flavour's `config.yaml` turns on `vector_databases`, `chat_history`, `edp`, `ui`, `hpa` and `mcp`, so a default `init erag --flavour chatqna` deploys all of them. The fallback matters when you write your own config or explicitly disable a component. +The **Enabled** column is the fallback in `components.yaml`, used only when nothing sets the toggle. Every shipped flavour's `config.yaml` turns on `vector_databases`, `chat_history`, `edp`, `ui`, `hpa` and `mcp`, so a default `init chatbot --flavour chatqna` deploys all of them. The fallback matters when you write your own config or explicitly disable a component. | Component | Enabled (registry fallback) | Depends on | Purpose | |-----------|-------------------|------------|---------| @@ -143,7 +143,7 @@ At install time `deployment/scripts/compose_pipeline.py` composes the selected p **Variants** (chatqna only): `output_guard`, `query-rewrite`, `retrieve-rerank`, `upload`. -Only one pipeline runs at a time. Switching requires changing `pipeline_type` and `pipeline_variant` in `config.erag.yaml` and re-running `install erag`. +Only one pipeline runs at a time. Switching requires changing `pipeline_type` and `pipeline_variant` in `config.chatbot.yaml` and re-running `install chatbot`. ## Enhanced Data Preparation (EDP) @@ -174,7 +174,7 @@ Each app is packaged as `docker.io/intel/chatbot-toolkit--ui` and deployed The MCP gateway (`src/mcp_gateway/`) exposes Model Context Protocol endpoints backed by the RAG pipeline. Built with FastMCP, it proxies tool calls to the pipeline and returns structured responses. -Enabled via `mcp_enabled: true` in `config.erag.yaml`. Requires `app_edp` and `app_keycloak_config`. +Enabled via `mcp_enabled: true` in `config.chatbot.yaml`. Requires `app_edp` and `app_keycloak_config`. ## Namespaces @@ -222,7 +222,7 @@ See [Telemetry](../configuration/telemetry.md) for login and dashboard details. ## Deployment Sequence -At `install erag`: +At `install chatbot`: 1. **app_inference_models**: Deploys embedding, reranking, LLM models via `model-manager`, waits for `Ready` 2. **app_pre_install**: Creates namespaces, RBAC, secrets, labels namespaces for Istio diff --git a/docs/reference/container-images.md b/docs/reference/container-images.md index 053f2753..d55e3a71 100644 --- a/docs/reference/container-images.md +++ b/docs/reference/container-images.md @@ -74,7 +74,7 @@ docker build -t ${REGISTRY}/chatbot-toolkit-embedding:${TAG} \ docker push ${REGISTRY}/chatbot-toolkit-embedding:${TAG} ``` -Override the image in `env//config.erag.yaml`: +Override the image in `env//config.chatbot.yaml`: ```yaml registry: docker.io/myorg diff --git a/docs/reference/glossary.md b/docs/reference/glossary.md index 38837644..453aa564 100644 --- a/docs/reference/glossary.md +++ b/docs/reference/glossary.md @@ -20,7 +20,7 @@ Terms used across this documentation, in alphabetical order. **Environment (`env//`).** One deployment's state: configuration, model catalog, kubeconfig, credentials, and logs. Selected with `--env`; defaults to `local`. Environments are independent, and install and teardown are always scoped to one. -**Flavour.** The preset that `init erag --flavour ` seeds `config.erag.yaml` from: `chatqna`, `docsum`, `translation`, `audioqna`, or `pl_chatqna`. See [Pipelines](../deployment/pipelines.md). +**Flavour.** The preset that `init chatbot --flavour ` seeds `config.chatbot.yaml` from: `chatqna`, `docsum`, `translation`, `audioqna`, or `pl_chatqna`. See [Pipelines](../deployment/pipelines.md). **GMC (GenAI Microservices Connector).** The Kubernetes operator, with its own custom resources, that composes individual microservices into a running pipeline according to a service-graph definition and routes requests through the steps in order. @@ -36,11 +36,11 @@ Terms used across this documentation, in alphabetical order. **KServe.** The Kubernetes model-serving framework used by Intel® Inference Toolkit to run model servers and expose them as cluster services. -**Installer target.** A group of components installed as a unit, in dependency order: `infrastructure`, `platform`, `inference`, `erag`. `inference` is Intel® Inference Toolkit. `erag` is Intel® Chatbot Toolkit. Installing one target pulls in the targets it depends on. +**Installer target.** A group of components installed as a unit, in dependency order: `infrastructure`, `platform`, `inference`, `chatbot`. `inference` is Intel® Inference Toolkit. `chatbot` is Intel® Chatbot Toolkit. Installing one target pulls in the targets it depends on. **MCP (Model Context Protocol).** A protocol that lets AI agents discover and call tools. The MCP gateway exposes retrieval and ingestion as such tools; off by default. See [MCP](../configuration/mcp.md). -**Model catalog (`models-rag.yaml`).** The per-environment list of servable models with their runtime, CPU and memory sizing, and server arguments. `inference_models` in `config.erag.yaml` selects entries from it by name. +**Model catalog (`models-rag.yaml`).** The per-environment list of servable models with their runtime, CPU and memory sizing, and server arguments. `inference_models` in `config.chatbot.yaml` selects entries from it by name. **model-store.** The persistent volume that holds downloaded model weights. Because it survives undeploy, switching models or pipelines does not re-download weights. @@ -60,7 +60,7 @@ Terms used across this documentation, in alphabetical order. **System fingerprint.** The service that records the deployed configuration and checks its integrity, so a running system can be compared against the setup it was deployed with. -**Target.** What you pass to `install`, `teardown`, or `validate`: an installer target such as `erag`, or a single component such as `app_pipeline`. Dependencies are resolved automatically unless you pass `--only`. +**Target.** What you pass to `install`, `teardown`, or `validate`: an installer target such as `chatbot`, or a single component such as `app_pipeline`. Dependencies are resolved automatically unless you pass `--only`. **Variant.** A modification of a pipeline type: `base`, `query-rewrite`, `output_guard`, `retrieve-rerank`, or `upload`. Variants add or remove steps and change which models are needed. See [Pipelines](../deployment/pipelines.md#pipeline-variants). diff --git a/src/comps/guardrails/llm_guard_dataprep_guardrail/README.md b/src/comps/guardrails/llm_guard_dataprep_guardrail/README.md index 9250ba74..58300316 100644 --- a/src/comps/guardrails/llm_guard_dataprep_guardrail/README.md +++ b/src/comps/guardrails/llm_guard_dataprep_guardrail/README.md @@ -48,7 +48,7 @@ A detailed description of each scanner is available on [LLM Guard](https://prote The scanners can be configured only via environmental variables. All scanners can be configured via environmental variables for the microservice. They can be enabled during deployment or via configmap. > [!Warning] -> Dataprep guardrail is not enabled in default Chatqna's pipeline. To enable it, change `edp.dpGuard.enabled` to `true` in `env//config.erag.yaml`. +> Dataprep guardrail is not enabled in default Chatqna's pipeline. To enable it, change `edp.dpGuard.enabled` to `true` in `env//config.chatbot.yaml`. ### Configuration via environmental variables The LLM Guard Dataprep Guardrail Microservice configuration is specified in the [impl/microservice/.env](impl/microservice/.env) file. You can adjust these settings by modifying this dotenv file or exporting environmental variables as parameters to the container/pod. Each scanner can be configured in the .env file. Enabled scanners are executed sequentially. The environmental variables that are required for default run of particular scanner have values provided in .env file. Without providing them scanner will not work. The variables that do not have any values are optional, and without providing any values default values will be passed to scanner constructor. BanSubstrings scanner is enabled by default. diff --git a/src/comps/vectorstores/CONTRIBUTING.md b/src/comps/vectorstores/CONTRIBUTING.md index 173318e1..8c21c262 100644 --- a/src/comps/vectorstores/CONTRIBUTING.md +++ b/src/comps/vectorstores/CONTRIBUTING.md @@ -114,7 +114,7 @@ You would have to: - add conditional logic for that container [here](../../../deployment/components/edp/templates/ingestion/ingestion-configmap.yaml) - remember to include pod/deployment security contexts so that containers run as non-root users, they drop not needed capabilities and apply proper seccomp profiles - implement proper ansible values.yaml override file in `deployment/roles/app_vector_databases/templates/values.yaml.j2` that generates a compatible `values.yaml` file via ansible -- verify that the `vector_database` component is deployable by configuring and deploying the solution via `env//config.erag.yaml` +- verify that the `vector_database` component is deployable by configuring and deploying the solution via `env//config.chatbot.yaml` ## 2.2 (Optional) Implement telemetry Some vector databases provide built-in Prometheus metrics endpoints for monitoring database performance, resource usage, and query statistics. When implementing your vector database, check if it supports native Prometheus metrics export. diff --git a/src/edp/README.md b/src/edp/README.md index 3a35d889..9c1ab958 100644 --- a/src/edp/README.md +++ b/src/edp/README.md @@ -46,10 +46,10 @@ The Intel® Chatbot Toolkit Enhanced Data Preparation (EDP) service provides adv ## Configuration -Similar to other Intel® Chatbot Toolkit components, EDP has its own section under `env//config.erag.yaml`. All possible configuration options are listed in [deployment/components/edp/values.yaml](../../deployment/components/edp/values.yaml). +Similar to other Intel® Chatbot Toolkit components, EDP has its own section under `env//config.chatbot.yaml`. All possible configuration options are listed in [deployment/components/edp/values.yaml](../../deployment/components/edp/values.yaml). ### Storage endpoints -Use the config.erag.yaml file to define the storage backend. Set the desired `storageType` under the edp section in your env config. Then, configure the appropriate sub-section based on the selected type. +Use the config.chatbot.yaml file to define the storage backend. Set the desired `storageType` under the edp section in your env config. Then, configure the appropriate sub-section based on the selected type. #### Internal SeaweedFS Storage (default) This will deploy and use the bundled SeaweedFS instance: @@ -80,7 +80,7 @@ edp: For step-by-step instructions on creating the required AWS resources such as S3 buckets and SQS queues with the AWS CLI, refer to [docs/configuration/aws-s3.md](../../docs/configuration/aws-s3.md). -Optionally, the environment variables (using the same names as in the legacy bash-based deployment, such as `edp_storage_type`, `s3_access_key`, `s3_secret_key`, etc.) can be exported instead of using config.erag.yaml. However, defining configuration in the YAML file is preferred for clarity, consistency, and better integration with automated Ansible-based deployments. +Optionally, the environment variables (using the same names as in the legacy bash-based deployment, such as `edp_storage_type`, `s3_access_key`, `s3_secret_key`, etc.) can be exported instead of using config.chatbot.yaml. However, defining configuration in the YAML file is preferred for clarity, consistency, and better integration with automated Ansible-based deployments. #### S3 API Compatible Storage To use other storage server that is compatible with S3 API, follow similar steps as in the above AWS S3 storage with substitution to your s3-compatible endpoint settings: @@ -100,14 +100,14 @@ edp: > [!IMPORTANT] > When using NetApp ONTAP as the S3-compatible storage endpoint, ensure that the NetApp appliance software is upgraded to version 9.16.1P4 or above. -Optionally, the environment variables (using the same names as in the legacy bash-based deployment, such as `edp_storage_type`, `s3_compatible_endpoint`, `s3_access_key`, `s3_secret_key`, etc.) can be exported instead of using config.erag.yaml. However, defining configuration in the YAML file is preferred for clarity, consistency, and better integration with automated Ansible-based deployments. +Optionally, the environment variables (using the same names as in the legacy bash-based deployment, such as `edp_storage_type`, `s3_compatible_endpoint`, `s3_access_key`, `s3_secret_key`, etc.) can be exported instead of using config.chatbot.yaml. However, defining configuration in the YAML file is preferred for clarity, consistency, and better integration with automated Ansible-based deployments. > [!NOTE] > If your S3-compatible backend does not support bucket event notifications, you must enable scheduled or manual synchronization. See the [Storage Synchronization section](#storage-synchronization) for instructions. Then deploy the application by following the instructions in [Deploy Intel® Chatbot Toolkit](../../docs/deployment/install-rag.md). Deploy from the core installer root: ```bash -./toolkit_manager.sh install erag --env +./toolkit_manager.sh install chatbot --env ``` After successful deployment, upload files using either WebGUI or cURL: @@ -410,7 +410,7 @@ EDP generates presigned URLs that allow users to upload, download, or delete fil - `GET` is allowed for any product role (`CHATTOOL-user`, `CHATTOOL-maintainer`, `CHATTOOL-admin`). - `PUT` and `DELETE` require `CHATTOOL-maintainer` or `CHATTOOL-admin`. -EDP first tries to sign with the caller's own storage credentials through STS `AssumeRoleWithWebIdentity`. Storage backends without STS (SeaweedFS without `edp_rbac_enabled`, AWS S3, ONTAP S3) cannot do that, so the installer enables the system credentials fallback by default and EDP signs with its own storage credentials. In that mode the role check above is the only authorization, and URLs are issued only for buckets that match the bucket name filter. To make a missing STS endpoint fail with HTTP 400 instead, set the following in `env//config.erag.yaml`: +EDP first tries to sign with the caller's own storage credentials through STS `AssumeRoleWithWebIdentity`. Storage backends without STS (SeaweedFS without `edp_rbac_enabled`, AWS S3, ONTAP S3) cannot do that, so the installer enables the system credentials fallback by default and EDP signs with its own storage credentials. In that mode the role check above is the only authorization, and URLs are issued only for buckets that match the bucket name filter. To make a missing STS endpoint fail with HTTP 400 instead, set the following in `env//config.chatbot.yaml`: ```yaml edp_presigned_url_credentials_system_fallback: false @@ -428,9 +428,9 @@ docker run --rm -p 9191:9191 -e initialBuckets=default,secondary -t adobe/s3mock The following placeholder `` should be replaced with the external IP address of the host machine where the Docker container is being executed. -Configure EDP for the S3 compatible storage by either exporting environment variables or setting values in your `env//config.erag.yaml`. If using an environment that requires proxy usage, ensure that you add `` to the `noProxy` variable in `env//global_config.yaml`. +Configure EDP for the S3 compatible storage by either exporting environment variables or setting values in your `env//config.chatbot.yaml`. If using an environment that requires proxy usage, ensure that you add `` to the `noProxy` variable in `env//global_config.yaml`. -Example `config.erag.yaml` snippet to configure S3 compatible storage: +Example `config.chatbot.yaml` snippet to configure S3 compatible storage: ```yaml edp: diff --git a/src/gmc/usage_guide.md b/src/gmc/usage_guide.md index 32b95eb5..17a463b4 100644 --- a/src/gmc/usage_guide.md +++ b/src/gmc/usage_guide.md @@ -10,7 +10,7 @@ Below are sample use cases: The GMConnector resource is not hand-written. It is composed from [deployment/pipelines/chatqna/pipeline.yaml](../../deployment/pipelines/chatqna/pipeline.yaml) by `deployment/scripts/compose_pipeline.py`, which the `app_pipeline` role runs during -`install erag`. The rendered resource is written to +`install chatbot`. The rendered resource is written to `env//logs/rag/gmconnector-chatqna.yaml` in the core installer's environment directory. diff --git a/src/tests/e2e/benchmarks/chatqna/run_benchmark_sweep.sh b/src/tests/e2e/benchmarks/chatqna/run_benchmark_sweep.sh index 105a2eb0..0e957787 100755 --- a/src/tests/e2e/benchmarks/chatqna/run_benchmark_sweep.sh +++ b/src/tests/e2e/benchmarks/chatqna/run_benchmark_sweep.sh @@ -41,7 +41,7 @@ # SWEEP_INPUT_TOKENS=128 SWEEP_OUTPUT_TOKENS=128 # SWEEP_TOP_N, SWEEP_K, SWEEP_Q_FILES – edited in-script (top of file) # -# Per LLM switch this script mirrors what `toolkit_manager.sh install erag` +# Per LLM switch this script mirrors what `toolkit_manager.sh install chatbot` # does for the LLM role only: # 1. undeploy the currently-served LLM via `model-manager undeploy --wait` # (MM_CONFIG points at ${ERAG_ENV_DIR}/models-rag.yaml so the same catalog @@ -170,7 +170,7 @@ if [[ -z "${MODEL_MANAGER:-}" ]]; then fi # Name of your env folder under the repo's top-level env/ directory (local, # mytest, …). Its models-rag.yaml catalog — seeded/edited by the installer's -# `install erag` path — is read here and passed to model-manager via +# `install chatbot` path — is read here and passed to model-manager via # MM_CONFIG below. ENV_ROOT="${SCRIPT_DIR}/../../../../../../../env" ERAG_ENV_NAME="${ERAG_ENV_NAME:-local}" @@ -332,7 +332,7 @@ check_prerequisites() { elif [[ ! -f "$MODELS_YAML" ]]; then log_error "models.yaml not found at: $MODELS_YAML" log_error " Check ERAG_ENV_NAME, or override with: MODELS_YAML=/path/to/models.yaml" - log_error " (default expects env//models-rag.yaml seeded by 'toolkit_manager.sh install erag')" + log_error " (default expects env//models-rag.yaml seeded by 'toolkit_manager.sh install chatbot')" errors=$((errors + 1)) else log_ok "env: ${ERAG_ENV_NAME} (${ERAG_ENV_DIR})" diff --git a/src/tests/e2e/conftest.py b/src/tests/e2e/conftest.py index b3790fe0..cddc0898 100644 --- a/src/tests/e2e/conftest.py +++ b/src/tests/e2e/conftest.py @@ -89,7 +89,7 @@ def pytest_addoption(parser): "KEYCLOAK_CHATTOOL_ADMIN_USERNAME and KEYCLOAK_CHATTOOL_ADMIN_PASSWORD") parser.addoption("--build-config-dir", action="store", default="../../../../env/local", - help="Path to directory containing global_config.yaml, config.erag.yaml, config.inference.yaml") + help="Path to directory containing global_config.yaml, config.chatbot.yaml, config.inference.yaml") def pytest_configure(config): @@ -114,7 +114,7 @@ def pytest_configure(config): if not build_config_dir or not os.path.isdir(build_config_dir): pytest.fail("Build configuration directory not found. Provide --build-config-dir with path to env/local/ configs.") - config_files = ["global_config.yaml", "config.erag.yaml", "config.inference.yaml"] + config_files = ["global_config.yaml", "config.chatbot.yaml", "config.inference.yaml"] for filename in config_files: filepath = os.path.join(build_config_dir, filename) if os.path.exists(filepath): diff --git a/src/tests/e2e/evals/evaluation/rag_eval/README.md b/src/tests/e2e/evals/evaluation/rag_eval/README.md index 7a4defe2..04b18661 100644 --- a/src/tests/e2e/evals/evaluation/rag_eval/README.md +++ b/src/tests/e2e/evals/evaluation/rag_eval/README.md @@ -217,7 +217,7 @@ python eval_multihop.py --help | ------------------------- |---------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------| | `--output_dir` | `./output` | Directory to save evaluation results | | `--auth_file` | `env/local/logs/rag/default_credentials.txt` | Path to credentials file with `KEYCLOAK_CHATTOOL_ADMIN_USERNAME` and `KEYCLOAK_CHATTOOL_ADMIN_PASSWORD` | -| `--cluster_config_file` | `env/local` | Path to directory containing `global_config.yaml`, `config.erag.yaml`, and `config.inference.yaml` | +| `--cluster_config_file` | `env/local` | Path to directory containing `global_config.yaml`, `config.chatbot.yaml`, and `config.inference.yaml` | | `--dataset_path` | `multihop_dataset/MultiHopRAG.json` | Path to the evaluation dataset | | `--docs_path` | `multihop_dataset/corpus.json` | Path to the documents for retrieval | | `--limits` | `100` | Number of queries to evaluate (0 means evaluate all; default: 100) | diff --git a/src/tests/e2e/evals/evaluation/rag_eval/examples/eval_multihop.py b/src/tests/e2e/evals/evaluation/rag_eval/examples/eval_multihop.py index ac578c4b..06afcf39 100644 --- a/src/tests/e2e/evals/evaluation/rag_eval/examples/eval_multihop.py +++ b/src/tests/e2e/evals/evaluation/rag_eval/examples/eval_multihop.py @@ -450,7 +450,7 @@ def get_ragas_metrics(self, all_queries, arguments): # Config file names expected inside the build config directory (kept in sync with tests/e2e/conftest.py) -BUILD_CONFIG_FILES = ["global_config.yaml", "config.erag.yaml", "config.inference.yaml"] +BUILD_CONFIG_FILES = ["global_config.yaml", "config.chatbot.yaml", "config.inference.yaml"] """ Validate auth file and cluster configuration directory exist""" diff --git a/src/tests/e2e/helpers/k8s_helper.py b/src/tests/e2e/helpers/k8s_helper.py index 381ec77d..4bf063f3 100644 --- a/src/tests/e2e/helpers/k8s_helper.py +++ b/src/tests/e2e/helpers/k8s_helper.py @@ -128,16 +128,16 @@ def count_pods_by_label(self, namespace, label_selector): return len(list(kr8s.get("pods", namespace=namespace, label_selector=label_selector))) def get_deployment_manifest_version(self, namespace="default"): - """Read the solution version from the erag-deployment-manifest ConfigMap.""" - logger.debug("Reading version from erag-deployment-manifest ConfigMap") + """Read the solution version from the chatbot-deployment-manifest ConfigMap.""" + logger.debug("Reading version from chatbot-deployment-manifest ConfigMap") configmaps = kr8s.get("configmaps", namespace=namespace) for cm in configmaps: - if cm.name == "erag-deployment-manifest": + if cm.name == "chatbot-deployment-manifest": manifest_raw = cm.data.get("manifest.yaml", "") manifest = yaml.safe_load(manifest_raw) # Records written by 3.0.0 nest the version under deployment:. return (manifest.get("deployment") or manifest)["version"] - raise ResourceNotFound("ConfigMap 'erag-deployment-manifest' not found") + raise ResourceNotFound("ConfigMap 'chatbot-deployment-manifest' not found") def delete_pods_by_label(self, namespace, label_selector): """Delete all pods matching a label selector in a namespace""" diff --git a/src/tests/e2e/lifecycle/scenarios.yaml b/src/tests/e2e/lifecycle/scenarios.yaml index dd139cb9..64890950 100644 --- a/src/tests/e2e/lifecycle/scenarios.yaml +++ b/src/tests/e2e/lifecycle/scenarios.yaml @@ -3,8 +3,8 @@ scenarios: uninstall-by-layer: skip_auth_setup: true lifecycle: - erag: - - test_uninstall.py::test_uninstall_erag + chatbot: + - test_uninstall.py::test_uninstall_chatbot inference: - test_uninstall.py::test_uninstall_inference platform: diff --git a/src/tests/e2e/lifecycle/test_post_backup.py b/src/tests/e2e/lifecycle/test_post_backup.py index b27b07da..f9d9a66d 100644 --- a/src/tests/e2e/lifecycle/test_post_backup.py +++ b/src/tests/e2e/lifecycle/test_post_backup.py @@ -3,7 +3,7 @@ # Copyright (C) 2025 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -"""Runs after `run_backup.sh backup erag --env `. +"""Runs after `run_backup.sh backup chatbot --env `. Proves the backup recorded the data created before it, then creates more data that the restore has to roll back. @@ -62,7 +62,7 @@ def latest_profile_backup(k8s_helper): ) assert backups, ( f"No Backup labelled {BACKUP_PROFILE_LABEL}={BACKUP_PROFILE_NAME} in '{VELERO_NAMESPACE}'. " - f"Take one with: ./run_backup.sh backup erag --env " + f"Take one with: ./run_backup.sh backup chatbot --env " ) # RFC 3339 timestamps sort lexicographically. return sorted(backups, key=lambda b: b.metadata["creationTimestamp"])[-1] diff --git a/src/tests/e2e/lifecycle/test_post_restore.py b/src/tests/e2e/lifecycle/test_post_restore.py index 2b92fa9b..42f537a7 100644 --- a/src/tests/e2e/lifecycle/test_post_restore.py +++ b/src/tests/e2e/lifecycle/test_post_restore.py @@ -3,7 +3,7 @@ # Copyright (C) 2025 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -"""Runs after `run_backup.sh restore erag --env --force`. +"""Runs after `run_backup.sh restore chatbot --env --force`. Three claims, in the order they can fail: the restore itself completed; @@ -52,7 +52,7 @@ def latest_profile_restore(k8s_helper): ) assert restores, ( f"No Restore labelled {BACKUP_PROFILE_LABEL}={BACKUP_PROFILE_NAME} in '{VELERO_NAMESPACE}'. " - f"Run: ./run_backup.sh restore erag --env --force" + f"Run: ./run_backup.sh restore chatbot --env --force" ) return sorted(restores, key=lambda r: r.metadata["creationTimestamp"])[-1] diff --git a/src/tests/e2e/lifecycle/test_pre_backup.py b/src/tests/e2e/lifecycle/test_pre_backup.py index 2c9bf50f..ecae4fe2 100644 --- a/src/tests/e2e/lifecycle/test_pre_backup.py +++ b/src/tests/e2e/lifecycle/test_pre_backup.py @@ -3,7 +3,7 @@ # Copyright (C) 2025 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -"""Runs before `run_backup.sh backup erag --env `. +"""Runs before `run_backup.sh backup chatbot --env `. Creates the data the round trip is judged on, and first checks the two engine preconditions whose absence would otherwise be diagnosed as data loss: no diff --git a/src/tests/e2e/lifecycle/test_uninstall.py b/src/tests/e2e/lifecycle/test_uninstall.py index 050ac4ea..30f8a2e7 100644 --- a/src/tests/e2e/lifecycle/test_uninstall.py +++ b/src/tests/e2e/lifecycle/test_uninstall.py @@ -71,7 +71,7 @@ def _application_secrets(k8s_helper, namespace): def _verify_layer(k8s_helper, layer): """Assert that a layered teardown of `layer` removed exactly its resources and left lower - layers intact. `layer` is one of erag/inference/platform/all (keys in uninstall_layers.yaml). + layers intact. `layer` is one of chatbot/inference/platform/all (keys in uninstall_layers.yaml). Beyond namespaces, this checks the leftover classes a helm-based teardown commonly misses: Helm releases in removed namespaces, layer-owned CRD groups, and orphaned PVCs/secrets. @@ -151,11 +151,11 @@ def _verify_layer(k8s_helper, layer): if stale: problems.append(f"Path grants still owned by removed or missing namespaces: {stale}") - # 9) erag teardown deletes its realm through the platform Keycloak, which stays installed. + # 9) chatbot teardown deletes its realm through the platform Keycloak, which stays installed. # The realm endpoint needs no token, so this works after chattool-credentials is gone. The # master realm is checked first: a 404 only proves the realm is gone if the same base URL # serves master (a wrong path prefix also answers 404). - if layer == "erag": + if layer == "chatbot": problems.extend(_realm_deleted_problems(keycloak_base_url())) assert not problems, ( @@ -164,10 +164,10 @@ def _verify_layer(k8s_helper, layer): @allure.testcase("DSPTV-T217") -def test_uninstall_erag(k8s_helper): - """After `toolkit_manager.sh teardown erag`, the erag application layer must be fully +def test_uninstall_chatbot(k8s_helper): + """After `toolkit_manager.sh teardown chatbot`, the chatbot application layer must be fully gone while the inference and platform layers below it stay intact.""" - _verify_layer(k8s_helper, "erag") + _verify_layer(k8s_helper, "chatbot") @allure.testcase("DSPTV-T218") diff --git a/src/tests/e2e/lifecycle/uninstall_layers.yaml b/src/tests/e2e/lifecycle/uninstall_layers.yaml index b68beb35..a778425e 100644 --- a/src/tests/e2e/lifecycle/uninstall_layers.yaml +++ b/src/tests/e2e/lifecycle/uninstall_layers.yaml @@ -3,7 +3,7 @@ # # Expected cluster state after a toolkit_manager.sh layered teardown. # Consumed by test_uninstall.py, selected via the CLUSTER_STATE env var -# (erag | inference | platform | all). Driven by run_scenario.py from +# (chatbot | inference | platform | all). Driven by run_scenario.py from # scenarios.yaml (SCENARIO=uninstall, CLUSTER_STATE=). # # Per layer: @@ -19,7 +19,7 @@ layers: - erag: + chatbot: removed_namespaces: - auth-apisix - chat-history @@ -34,7 +34,7 @@ layers: - system removed_crd_groups: - apisix.apache.org - retained_namespaces: # inference + platform still installed below erag + retained_namespaces: # inference + platform still installed below chatbot - kserve - istio-system diff --git a/src/tests/e2e/validation/constants.py b/src/tests/e2e/validation/constants.py index c413ae1d..0e1b5fa9 100644 --- a/src/tests/e2e/validation/constants.py +++ b/src/tests/e2e/validation/constants.py @@ -27,7 +27,7 @@ # labels its objects with (roles/backup/defaults/main.yaml) and what # deployment/backup_profile.yaml declares. VELERO_NAMESPACE = "velero" -BACKUP_PROFILE_NAME = "erag" +BACKUP_PROFILE_NAME = "chatbot" BACKUP_PROFILE_LABEL = "ai-solutions.io/backup-profile" BACKUP_VERSION_LABEL = "meta.erag/solution-version" # Namespaces holding the data the lifecycle tests create. The profile captures diff --git a/src/tests/unit/scripts/test_configuration_check.py b/src/tests/unit/scripts/test_configuration_check.py index 1ffdc72e..82b2f1be 100644 --- a/src/tests/unit/scripts/test_configuration_check.py +++ b/src/tests/unit/scripts/test_configuration_check.py @@ -38,8 +38,8 @@ _upgrade_verdicts: [] - ansible.builtin.include_tasks: "{{ layer_dir }}/upgrade_checks/configuration.yaml" vars: - upgrade_check_layer: erag - _layer_dirs: {erag: "{{ layer_dir }}"} + upgrade_check_layer: chatbot + _layer_dirs: {chatbot: "{{ layer_dir }}"} - ansible.builtin.copy: content: "{{ _upgrade_verdicts | to_json }}" dest: "{{ out }}" @@ -68,7 +68,7 @@ def _check(tmp_path, version, **config): ) assert proc.returncode == 0, proc.stdout + proc.stderr (verdict,) = json.loads((tmp_path / "out.json").read_text()) - assert (verdict["layer"], verdict["check"]) == ("erag", "configuration") + assert (verdict["layer"], verdict["check"]) == ("chatbot", "configuration") return verdict diff --git a/src/tests/unit/scripts/test_keycloak_rename_check.py b/src/tests/unit/scripts/test_keycloak_rename_check.py deleted file mode 100644 index 62e48183..00000000 --- a/src/tests/unit/scripts/test_keycloak_rename_check.py +++ /dev/null @@ -1,85 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -# Copyright (C) 2026 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - -""" -Guard the refusal of an in-place upgrade from a release before the Chatbot Toolkit rename. - -deployment/upgrade_checks/keycloak_rename.yaml records a blocking verdict when the -deployment record holds a version below 3.1.0: such a release created the Keycloak -realm EnterpriseRAG, which this release does not rename. The resolve points to the -reinstall section of docs/deployment/install-rag.md. A fresh install (no record) and a -record from a 3.1.0 build, including a dev or rc build, pass. - -The check runs on localhost with a fixture record. No cluster is used; the test is -skipped when Ansible is not installed. -""" - -import json -import subprocess -import sys -from pathlib import Path - -import pytest - -pytest.importorskip("ansible") - -_REPO = Path(__file__).resolve().parents[4] -_CHECK = _REPO / "deployment" / "upgrade_checks" / "keycloak_rename.yaml" -_SECTION = "Upgrade from a release before the Chatbot Toolkit rename" - -_PLAY = """ -- hosts: localhost - gather_facts: false - tasks: - - ansible.builtin.set_fact: - _upgrade_verdicts: [] - - ansible.builtin.include_tasks: "{{ check }}" - vars: - upgrade_check_layer: erag - - ansible.builtin.copy: - content: "{{ _upgrade_verdicts | to_json }}" - dest: "{{ out }}" - mode: "0644" -""" - - -def _check(tmp_path, records): - (tmp_path / "play.yaml").write_text(_PLAY) - extra = {"check": str(_CHECK), "out": str(tmp_path / "out.json"), "_layer_records": records} - (tmp_path / "vars.json").write_text(json.dumps(extra)) - proc = subprocess.run( - [sys.executable, "-m", "ansible", "playbook", "-i", "localhost,", "-c", "local", - "-e", f"@{tmp_path / 'vars.json'}", str(tmp_path / "play.yaml")], - env={"ANSIBLE_NOCOLOR": "1", "PATH": "/usr/bin:/bin", "HOME": str(tmp_path)}, - capture_output=True, text=True, check=False, - ) - assert proc.returncode == 0, proc.stdout + proc.stderr - (verdict,) = json.loads((tmp_path / "out.json").read_text()) - assert (verdict["layer"], verdict["check"]) == ("erag", "keycloak-rename") - return verdict - - -@pytest.mark.parametrize("recorded", ["3.0.0", "3.0.1", "3.0.1-rc.1", "3.0.0.dev111901"]) -def test_record_before_the_rename_blocks_with_the_reinstall(tmp_path, recorded): - verdict = _check(tmp_path, {"erag": {"layer": "erag", "version": recorded, "status": "complete"}}) - assert verdict["verdict"] == "blocking" - assert recorded in verdict["reason"] - assert "docs/deployment/install-rag.md" in verdict["resolve"] - assert _SECTION in verdict["resolve"] - - -@pytest.mark.parametrize("records", [ - {}, - {"erag": {"layer": "erag", "status": "deleting"}}, - {"erag": {"layer": "erag", "version": "3.1.0", "status": "complete"}}, - {"erag": {"layer": "erag", "version": "3.1.0-rc.1", "status": "complete"}}, - {"erag": {"layer": "erag", "version": "3.1.1", "status": "complete"}}, -]) -def test_fresh_install_or_a_record_after_the_rename_passes(tmp_path, records): - assert _check(tmp_path, records)["verdict"] == "pass" - - -def test_resolve_names_an_existing_section(): - assert f"## {_SECTION}" in (_REPO / "docs" / "deployment" / "install-rag.md").read_text() diff --git a/src/tests/unit/scripts/test_version_change_gate.py b/src/tests/unit/scripts/test_version_change_gate.py index 387ac3fb..82f7c446 100644 --- a/src/tests/unit/scripts/test_version_change_gate.py +++ b/src/tests/unit/scripts/test_version_change_gate.py @@ -52,7 +52,7 @@ - ansible.builtin.set_fact: _layer_class: "{{ fixture_layer_class }}" _layer_records: "{{ fixture_layer_records }}" - _layer_release: {erag: "3.1.1"} + _layer_release: {chatbot: "3.1.1"} _upgrade_force: "{{ fixture_force }}" - ansible.builtin.set_fact: _upgrade_gate: "{{ fixture_gate }}" @@ -67,7 +67,7 @@ always: - ansible.builtin.copy: content: >- - {{ {'version_change': erag_version_change | default(none), + {{ {'version_change': chatbot_version_change | default(none), 'snapshot_calls': _stub_snapshot_calls | default(0) | int, 'verdict': (_upgrade_consistency_result | default({})).verdict | default(none), 'gate': _upgrade_gate | default(none)} | to_json }} @@ -101,8 +101,8 @@ def _run(tmp_path, run_class, snapshots, record_version="3.1.0", target=None, fo extra = { "env_dir": str(tmp_path), "tmp_dir": str(tmp_path / "tmp"), - "fixture_layer_class": {"erag": run_class}, - "fixture_layer_records": {"erag": {"version": record_version, "targetVersion": target or "3.1.1"}}, + "fixture_layer_class": {"chatbot": run_class}, + "fixture_layer_records": {"chatbot": {"version": record_version, "targetVersion": target or "3.1.1"}}, "fixture_force": force, "fixture_gate": gate, "fixture_snapshots": snapshots, @@ -155,7 +155,7 @@ def test_force_passes_and_records_the_bypass(tmp_path): proc, out = _run(tmp_path, "upgrade", [_counts(5), _counts(3)], force=True, gate={"forcedChecks": ["platform/other"]}) assert proc.returncode == 0, proc.stdout - assert out["gate"]["forcedChecks"] == ["platform/other", "erag/data_consistency"] + assert out["gate"]["forcedChecks"] == ["platform/other", "chatbot/data_consistency"] assert not (tmp_path / "reports" / _PENDING).exists()