Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down
4 changes: 2 additions & 2 deletions deployment/README.md
Original file line number Diff line number Diff line change
@@ -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) |
2 changes: 1 addition & 1 deletion deployment/backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# .venv/bin/ansible-playbook -i env/<env>/inventory/hosts.yaml \
# -e env_dir=$(pwd)/env/<env> \
# -e @env/<env>/global_config.yaml \
# -e @env/<env>/config.erag.yaml \
# -e @env/<env>/config.chatbot.yaml \
# -e kubernetes_kubeconfig=$(pwd)/env/<env>/kubeconfig.yaml \
# ext/chatbot-toolkit/deployment/backup.yaml \
# -e backup_action=backup
Expand Down
6 changes: 3 additions & 3 deletions deployment/backup_profile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
38 changes: 19 additions & 19 deletions deployment/components.yaml
Original file line number Diff line number Diff line change
@@ -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/<name>/.
Expand All @@ -20,7 +20,7 @@
# =============================================================================

layers:
- name: erag
- name: chatbot
enabled: true
depends_on: [platform, inference]
supports:
Expand All @@ -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
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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: []
2 changes: 1 addition & 1 deletion deployment/components/gmc/README.md
Original file line number Diff line number Diff line change
@@ -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)
12 changes: 6 additions & 6 deletions deployment/config_tracking.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
# 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

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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions deployment/pipelines/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <type>`)
copies `pipelines/<flavour>/config.yaml` verbatim into `env/<name>/config.erag.yaml`.
The core installer's `init` step (`toolkit_manager.sh init chatbot --flavour <type>`)
copies `pipelines/<flavour>/config.yaml` verbatim into `env/<name>/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.
Expand Down Expand Up @@ -371,7 +371,7 @@ controller re-reconciles. The GMConnector CRD `metadata` is a permissive
4. Add `config.yaml` (flat) with at least `pipeline_type: "<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
`<usvc>` resources key matches a service in `components/gmc/values.yaml` and has a
`manifests_common/<name>-usvc.yaml.tpl`.
Expand Down
2 changes: 1 addition & 1 deletion deployment/pipelines/audioqna/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion deployment/pipelines/chatqna/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ---
Expand Down
2 changes: 1 addition & 1 deletion deployment/pipelines/chatqna_intel_gpu/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion deployment/pipelines/docsum/config.yaml
Original file line number Diff line number Diff line change
@@ -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 ---
Expand Down
2 changes: 1 addition & 1 deletion deployment/pipelines/pl_chatqna/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ---
Expand Down
2 changes: 1 addition & 1 deletion deployment/pipelines/translation/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ---
Expand Down
2 changes: 1 addition & 1 deletion deployment/roles/app_edp/tasks/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/<name>/config.erag.yaml, or clear chattool_keycloak_oidc_tenant_id
Set them in env/<name>/config.chatbot.yaml, or clear chattool_keycloak_oidc_tenant_id
to disable SharePoint.
success_msg: "app_edp: SharePoint configuration complete"
quiet: true
Expand Down
4 changes: 2 additions & 2 deletions deployment/roles/app_inference_models/tasks/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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/<name>/config.erag.yaml, or clear chattool_keycloak_oidc_endpoint
Set them in env/<name>/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
Expand All @@ -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/<name>/config.erag.yaml, or clear chattool_keycloak_oidc_tenant_id
Set them in env/<name>/config.chatbot.yaml, or clear chattool_keycloak_oidc_tenant_id
to disable SharePoint.
success_msg: "app_keycloak_config: SharePoint configuration complete"
quiet: true
Expand Down
2 changes: 1 addition & 1 deletion deployment/roles/app_pipeline/tasks/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <name>', 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"
Expand Down
Loading