diff --git a/README.md b/README.md index 81a75a4b..16c9138c 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,23 @@ -![Intel® Chatbot Toolkit](docs/images/banner.png) +![Intel® Chatbot Toolkit](docs/assets/banner.png) # Intel® Chatbot Toolkit [![License: Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE) [![Installed and operated by: Toolkit Manager](https://img.shields.io/badge/Installed%20and%20operated%20by-Toolkit%20Manager-0068B5)](https://github.com/intel/toolkit-manager) -[![Platform: Intel® Xeon®](https://img.shields.io/badge/Platform-Intel%C2%AE%20Xeon%C2%AE-0068B5)](https://www.intel.com/xeon) -[![Pipelines: ChatQnA · DocSum · AudioQnA](https://img.shields.io/badge/Pipelines-ChatQnA%20%C2%B7%20DocSum%20%C2%B7%20AudioQnA-purple)](docs/deploy/pipelines.md) +[![Platform: Intel®](https://img.shields.io/badge/Platform-Intel%C2%AE-0068B5)](https://www.intel.com) +[![Pipelines: ChatQnA · DocSum · AudioQnA](https://img.shields.io/badge/Pipelines-ChatQnA%20%C2%B7%20DocSum%20%C2%B7%20AudioQnA-purple)](docs/deployment/pipelines.md) [![Identity: Keycloak](https://img.shields.io/badge/Identity-Keycloak%20OIDC-orange)](https://www.keycloak.org) -**Turn your documents into a governed, production-ready AI assistant on Intel® Xeon® CPUs. Toolkit Manager installs and operates this toolkit.** +**Turn your documents into a governed, production-ready AI assistant on Intel® Platforms. Toolkit Manager installs and operates this toolkit.** > Ships the Ansible roles, Helm charts, and composable pipeline definitions that deploy a full RAG application - document ingestion, vector search, reranking, guardrails, chat history, and a web UI - wired into the platform's identity, gateway, storage, and observability. > [!IMPORTANT] > **This repository is not used on its own.** > [**Toolkit Manager**](https://github.com/intel/toolkit-manager) -> installs and operates it. Install the platform first. Toolkit Manager clones this repository to -> `ext/enterprise.ai-erag/` and brings up the Kubernetes cluster, the platform services +> installs and operates it. Toolkit Manager clones this repository to +> `ext/chatbot-toolkit/` and brings up the Kubernetes cluster, the platform services > (cert-manager, Istio, MetalLB, Envoy Gateway, PostgreSQL, Keycloak, -> MinIO, observability), and Intel® Inference Toolkit that this toolkit depends on. +> SeaweedFS, observability), and [Intel® Inference Toolkit](https://github.com/intel/inference-toolkit) that this toolkit depends on. > Every command below runs from the **Toolkit Manager repo root**, not from here. --- @@ -28,7 +28,7 @@ Intel® Chatbot Toolkit deploys that whole path. You pick a pipeline flavour, ru Pipelines are composed, not hardcoded. A flavour declares an ordered flow of steps, the composer renders it into a `GMConnector` resource, and the GMC operator reconciles the microservices behind it. Swapping a retrieval strategy or adding output guardrails is a config change, not a rewrite. -> Want the full picture? See [Architecture](docs/reference/architecture.md) and [Pipelines](docs/deploy/pipelines.md). +> Want the full picture? See [Architecture](docs/reference/architecture.md) and [Pipelines](docs/deployment/pipelines.md). ### What makes it production-ready @@ -37,17 +37,17 @@ Pipelines are composed, not hardcoded. A flavour declares an ordered flow of ste - **Integrated, not bolted on** - identity, TLS, object storage, PostgreSQL and Grafana come from the shared platform, so the chatbot is one more governed workload instead of a second stack to operate. - **Secure by default** - Pod Security Standards enforcement, Istio ambient mTLS between services, and generated credentials with no secrets in the repo. - **Four workloads, one stack** - conversational retrieval (ChatQnA), document summarization (DocSum), voice question answering (AudioQnA), and translation. -- **Tuned for Intel® Xeon®** - horizontal pod autoscaling and NUMA-aware CPU pinning through the platform's balloons policy. +- **Tuned for Intel® Platforms** - horizontal pod autoscaling and NUMA-aware CPU pinning through the platform's balloons policy. ## Architecture A question enters through the gateway, is authenticated against Keycloak, and reaches the pipeline router. The router walks the composed flow - embed the query, retrieve candidates from the vector database, rerank them, apply input guardrails, build the prompt, and call the LLM - then streams the grounded answer back. Model inference is served by Intel® Inference Toolkit, so this toolkit runs no model servers of its own.
- Intel® Chatbot Toolkit ChatQnA architecture: a request from the UI enters the gateway, is authenticated, and passes through embedding, retrieval from the vector database, reranking, guardrails, and prompt templating before reaching the LLM, with document ingestion feeding the vector database from the object store + Intel® Chatbot Toolkit ChatQnA architecture: a request from the UI enters the gateway, is authenticated, and passes through embedding, retrieval from the vector database, reranking, guardrails, and prompt templating before reaching the LLM, with document ingestion feeding the vector database from the object store
-DocSum's flow is shown in [architecture_docsum.svg](./docs/images/architecture_docsum.svg), and the full microservice map in [microservices_architecture.png](./docs/microservices_architecture.png). +DocSum's flow is shown in [architecture_docsum.svg](./docs/assets/architecture_docsum.svg), and the full microservice map in [microservices_architecture.png](./docs/assets/microservices_architecture.png). See the [Architecture reference](docs/reference/architecture.md) for the component inventory, the roles that deploy them, and how this toolkit plugs into the platform. @@ -58,34 +58,34 @@ See the [Architecture reference](docs/reference/architecture.md) for the compone **Deploys the RAG stack on a single node with defaults.** In three steps you will have an assistant answering questions about documents you ingest. > [!NOTE] -> **Prerequisites:** a Xeon host with 60 logical cores, 128 GB RAM, and 200 GB free disk; +> **Prerequisites:** a host with 60 logical cores (for example, an Intel® Xeon® processor), 128 GB RAM, and 200 GB free disk; > Ubuntu 22.04/24.04; passwordless sudo; internet access; and Hugging Face access to the -> default models. Full list, including the 32-core limited deployment → [Prerequisites](docs/quickstart/prerequisites.md). +> default models. Full list → [Prerequisites](docs/getting-started/prerequisites.md). ### 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 -./es_auto_installer.sh configure # one-time machine prep (Python 3.11+, yq, kubectl, helm) -./es_auto_installer.sh init erag # clone this toolkit and its dependencies -./es_auto_installer.sh install erag # deploy everything +./toolkit_manager.sh configure # one-time machine prep (Python 3.11+, yq, kubectl, helm) +./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 -./es_auto_installer.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 `./es_auto_installer.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`. @@ -94,13 +94,13 @@ Settings for this toolkit land in `env/local/config.erag.yaml`. Pick a different The gateway binds ports 80 and 443 on the node, so no port forwarding is needed. Add each subdomain to `/etc/hosts` on the machine you browse from - wildcards do not work there: ``` - solutions.ai grafana.solutions.ai keycloak.solutions.ai s3.solutions.ai seaweedfs.solutions.ai + inteltoolkits.ai grafana.inteltoolkits.ai keycloak.inteltoolkits.ai s3.inteltoolkits.ai seaweedfs.inteltoolkits.ai ``` -Then open `https://solutions.ai`. First-login credentials are written to `env/local/logs/rag/default_credentials.txt`; you will be asked to change the password immediately. +Then open `https://inteltoolkits.ai`. First-login credentials are written to `env/local/logs/rag/default_credentials.txt`; you will be asked to change the password immediately. > [!IMPORTANT] -> With the default self-signed certificates, visit `https://s3.solutions.ai` once and accept +> With the default self-signed certificates, visit `https://s3.inteltoolkits.ai` once and accept > the warning before ingesting documents. Not needed with custom certificates. ### Step 3 - Ingest a document and ask about it @@ -110,16 +110,18 @@ Sign in as the admin user, open the **Admin Panel → Data Ingestion** tab, and To verify the pipeline from the command line instead: ```bash -cd ext/enterprise.ai-erag/deployment +cd ext/chatbot-toolkit/deployment ./scripts/test_connection.sh # ChatQnA; use test_docsum.sh or test_translation.sh for those flavours ``` +The last line reads `Test finished successfully`. + ### What you get | Area | Component | What it gives you | |---|---|---| | Ingestion | Enhanced Data Preparation (EDP) | Extract, split, and embed documents from the object store or SharePoint, with opt-in scheduled sync | -| Retrieval | Vector database + reranking | Redis Cluster, PGVector, or Microsoft SQL Server backends, with opt-in per-user access control on the index | +| Retrieval | Vector database + reranking | Milvus (default), Redis Cluster, PGVector, or Microsoft SQL Server backends, with opt-in per-user access control on the index | | Pipelines | GMC operator + composer | ChatQnA, DocSum, AudioQnA, and translation flows, composed from shared steps | | Safety | Guardrail microservices | Query filtering on by default; response filtering via the `output_guard` variant, ingestion filtering via `edp_dp_guard_enabled` | | Access | Keycloak OIDC + APISIX | Single sign-on, realm roles per persona, and opt-in per-user document scoping | @@ -129,7 +131,7 @@ Curious first? The demo below shows ChatQnA in action.
- Intel® Chatbot Toolkit ChatQnA demonstration video + Intel® Chatbot Toolkit ChatQnA demonstration video
@@ -139,80 +141,49 @@ Curious first? The demo below shows ChatQnA in action. --- -## Advanced +## Documentation -The Quick Start deploys the ChatQnA flavour with defaults. From here you can change the pipeline and its variants, swap models, enable multilingual retrieval, connect SharePoint or an external S3 store, wire up agents, and tune every microservice. +Everything beyond the Quick Start, grouped by task. The [Documentation Index](docs/README.md) lists every guide. | Goal | Guide | |---|---| -| Deploy step by step, endpoints and credentials | [Deploy Intel® Chatbot Toolkit](docs/deploy/install_rag.md) | -| Pipelines, flavours, and variants | [Pipelines](docs/deploy/pipelines.md) | -| Every configuration option | [Configuration](docs/customize/configuration.md) | -| Change the LLM, embedding, or reranking model | [Models](docs/customize/models.md) | -| SSO, MFA, and Active Directory federation | [Authentication](docs/customize/auth.md) | -| Ingest from SharePoint Online | [SharePoint](docs/customize/sharepoint.md) | -| Connect AI agents | [MCP Integration](docs/customize/mcp.md) | -| External S3 or NetApp ONTAP document store | [Object Store](docs/customize/object_store.md) | +| Deploy step by step, endpoints and credentials | [Deploy Intel® Chatbot Toolkit](docs/deployment/install-rag.md) | +| Pipelines, flavours, and variants | [Pipelines](docs/deployment/pipelines.md) | +| Every configuration option | [Configuration](docs/configuration/configuration.md) | +| Change the LLM, embedding, or reranking model | [Models](docs/configuration/models.md) | +| SSO, MFA, and Active Directory federation | [Authentication](docs/configuration/auth.md) | +| Ingest from SharePoint Online | [SharePoint](docs/configuration/sharepoint.md) | +| Connect AI agents | [MCP Integration](docs/configuration/mcp.md) | +| External S3 or NetApp ONTAP document store | [Object Store](docs/configuration/object-store.md) | | Components, roles, and request flow | [Architecture](docs/reference/architecture.md) | -| Dashboards and logs | [Telemetry](docs/operate/telemetry.md) | -| Scaling and tuning | [Performance](docs/operate/performance.md) | -| Something isn't working | [Troubleshooting](docs/operate/troubleshooting.md) | -| VMware deployment | [Deploy on VMware](docs/deploy/vmware.md) | -| What it is and why it exists | [Meet Intel® Chatbot Toolkit](docs/meet/meet.md) | -| Common questions | [FAQ](docs/faq.md) | -| Terminology | [Glossary](docs/glossary.md) | - ---- - -## Publications - -* [Lenovo Validated Design: AI POD Mini for Enterprise RAG Implementation](https://lenovopress.lenovo.com/lp2417-lenovo-validated-design-ai-pod-mini-for-enterprise-rag-implementation) -* [Accelerate AI Value Creation with Nutanix and Intel® AI for Enterprise RAG](https://www.youtube.com/watch?v=7ghQiKXrzew) -* [Converging Paradigms: Architecting a Hybrid and Open Platform for Unified HPC and AI Workloads](https://www.intel.com/content/www/us/en/content-details/913576/converging-paradigms-architecting-a-hybrid-and-open-platform-for-unified-hpc-and-ai-workloads.html) -* [Starting With the End in Mind: Intel and Nutanix's Blueprint for an Enterprise-Grade RAG Chatbot](https://www.intel.com/content/www/us/en/content-details/898778/starting-with-the-end-in-mind-intel-and-nutanix-s-blueprint-for-an-enterprise-grade-rag-chatbot.html) -* [Securing Enterprise RAG Deployments](https://www.intel.com/content/www/us/en/content-details/870124/securing-enterprise-rag-deployments.html) -* [NetApp AIPod Mini - Deployment Automation](https://community.netapp.com/t5/Tech-ONTAP-Blogs/NetApp-AIPod-Mini-Deployment-Automation/ba-p/463257) +| Dashboards and logs | [Telemetry](docs/configuration/telemetry.md) | +| Scaling and tuning | [Performance](docs/configuration/performance.md) | +| Something isn't working | [Troubleshooting](docs/faq-and-troubleshooting/troubleshooting.md) | +| VMware deployment | [Deploy on VMware](docs/deployment/vmware.md) | +| What it is and why it exists | [Meet Intel® Chatbot Toolkit](docs/overview/meet.md) | +| Common questions | [FAQ](docs/faq-and-troubleshooting/frequently-asked-questions.md) | +| Terminology | [Glossary](docs/reference/glossary.md) | +| Report a problem or send a change | [Contributing](CONTRIBUTING.md) | +| Questions, bug reports, and feature requests | [GitHub Issues](https://github.com/intel/chatbot-toolkit/issues) | +| Report a security vulnerability | [Security Policy](SECURITY.md) | + +### Publications + +- [Lenovo Validated Design: AI POD Mini for Enterprise RAG Implementation](https://lenovopress.lenovo.com/lp2417-lenovo-validated-design-ai-pod-mini-for-enterprise-rag-implementation) +- [Accelerate AI Value Creation with Nutanix and Intel® AI for Enterprise RAG](https://www.youtube.com/watch?v=7ghQiKXrzew) +- [Converging Paradigms: Architecting a Hybrid and Open Platform for Unified HPC and AI Workloads](https://www.intel.com/content/www/us/en/content-details/913576/converging-paradigms-architecting-a-hybrid-and-open-platform-for-unified-hpc-and-ai-workloads.html) +- [Starting With the End in Mind: Intel and Nutanix's Blueprint for an Enterprise-Grade RAG Chatbot](https://www.intel.com/content/www/us/en/content-details/898778/starting-with-the-end-in-mind-intel-and-nutanix-s-blueprint-for-an-enterprise-grade-rag-chatbot.html) +- [Securing Enterprise RAG Deployments](https://www.intel.com/content/www/us/en/content-details/870124/securing-enterprise-rag-deployments.html) +- [NetApp AIPod Mini - Deployment Automation](https://community.netapp.com/t5/Tech-ONTAP-Blogs/NetApp-AIPod-Mini-Deployment-Automation/ba-p/463257) --- -## Support - -Submit questions, feature requests, and bug reports on the GitHub Issues page. - ## License -Intel® Chatbot Toolkit is licensed under the [Apache License Version 2.0](LICENSE). Refer to the "[LICENSE](LICENSE)" file for the full license text and copyright notice. - -This distribution includes third-party software governed by separate license terms. This third-party software, even if included with the distribution of the Intel software, may be governed by separate license terms, including without limitation, third-party license terms, other Intel software license terms, and open-source software license terms. These separate license terms govern your use of the third-party programs as set forth in the "[THIRD-PARTY-PROGRAMS](THIRD-PARTY-PROGRAMS)" file. - -Please note: component(s) depend on software subject to non-open source licenses. If you use or redistribute this software, it is your sole responsibility to ensure compliance with such licenses. - -## Security - -The [Security Policy](SECURITY.md) outlines our guidelines and procedures for ensuring the highest level of security and trust for our users who consume Intel® Chatbot Toolkit. - -## Intel's Human Rights Principles - -Intel is committed to respecting human rights and avoiding complicity in human rights abuses. See Intel's [Global Human Rights Principles](https://www.intel.com/content/www/us/en/policy/policy-human-rights.html). Intel's products and software are intended only to be used in applications that do not cause or contribute to a violation of an internationally recognized human right. - -## Model Card Guidance - -You, not Intel, are responsible for determining model suitability for your use case. For information regarding model limitations, safety considerations, biases, or other information consult the model cards (if any) for models you use, typically found in the repository where the model is available for download. Contact the model provider with questions. Intel does not provide model cards for third party models. - -## Contributing - -If you want to contribute to the project, please refer to the guide in [CONTRIBUTING.md](CONTRIBUTING.md) file. - -## Links - -- [Documentation Index](docs/README.md) -- [GitHub Repository](https://github.com/intel/chatbot-toolkit) -- [Toolkit Manager](https://github.com/intel/toolkit-manager) — installs and operates this toolkit -- [Intel® Inference Toolkit](https://github.com/intel/inference-toolkit) -- [Architecture](docs/reference/architecture.md) +Licensed under the [Apache License, Version 2.0](LICENSE). Third-party software, model card, and human rights notices: [Notices](docs/reference/notices.md). --- -*Intel, the Intel logo, OpenVINO, the OpenVINO logo, Pentium, and Xeon are trademarks of Intel Corporation or its subsidiaries. Other names and brands may be claimed as the property of others.* +*Intel, the Intel logo, and Xeon are trademarks of Intel Corporation or its subsidiaries. Other names and brands may be claimed as the property of others.* *© Intel Corporation* diff --git a/deployment/README.md b/deployment/README.md index 4751badb..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/deploy/install_rag.md) | +| 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/customize/configuration.md) | -| Flavours and variants | [Pipelines](../docs/deploy/pipelines.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 bc0d5a57..32c2055f 100644 --- a/deployment/backup.yaml +++ b/deployment/backup.yaml @@ -12,9 +12,9 @@ # .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/enterprise.ai-erag/deployment/backup.yaml \ +# ext/chatbot-toolkit/deployment/backup.yaml \ # -e backup_action=backup # # Restore is the same with `-e backup_action=restore`. It asks before deleting @@ -22,7 +22,7 @@ # backup with `-e velero_restore_from=`. # # Requires the core repo's velero component installed and a StorageClass that can -# snapshot. See docs/operate/backup.md. +# snapshot. See docs/deployment/backup-and-restore.md. # ============================================================================= - name: "Backup / Restore" 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 74f42fde..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 the rag extension. +# 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,88 +29,99 @@ 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 + # label reaches it: the role's teardown deletes it, after the labelled objects. + teardown: both # Created by the configurator Job (kubectl apply). ownership_declared: - {kind: Secret, name: chattool-credentials} # --- 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. + teardown: both # Created by the Keycloak client-secret Job (kubectl apply). ownership_declared: - {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. + teardown: both # --- 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/apisix/Chart.lock b/deployment/components/apisix/Chart.lock index 82446bec..71b266dd 100644 --- a/deployment/components/apisix/Chart.lock +++ b/deployment/components/apisix/Chart.lock @@ -1,6 +1,6 @@ dependencies: - name: apisix repository: https://charts.apiseven.com - version: 2.14.1 -digest: sha256:8640e591eb5037e630ad0d8deff8275ecaecc851fc63fcad6cf71b96b938988c -generated: "2026-07-11T17:15:16.9639623+02:00" + version: 2.19.0 +digest: sha256:ad62ed4334b5509f23ed07ff921b641dd7e0e7f944ad922559a0d3ec79677e52 +generated: "2026-12-01T16:30:58.734240357+01:00" diff --git a/deployment/components/apisix/Chart.yaml b/deployment/components/apisix/Chart.yaml index e44ec3da..f8073b13 100644 --- a/deployment/components/apisix/Chart.yaml +++ b/deployment/components/apisix/Chart.yaml @@ -3,10 +3,8 @@ name: auth-apisix description: A Helm chart for installing a specific version of APISIX API gateway and APISIX ingress controller version: 2.0.7 appVersion: "3.0.0" -annotations: - app.kubernetes.io/part-of: ERAG dependencies: - name: apisix - version: 2.14.1 + version: 2.19.0 repository: https://charts.apiseven.com diff --git a/deployment/components/apisix/values-openshift.yaml b/deployment/components/apisix/values-openshift.yaml index ed08f328..63381600 100644 --- a/deployment/components/apisix/values-openshift.yaml +++ b/deployment/components/apisix/values-openshift.yaml @@ -33,7 +33,7 @@ apisix: # Replaces the list in values.yaml: keep wait-for-etcd in step with it. extraInitContainers: - name: seed-conf - image: apache/apisix:3.16.0-ubuntu # = apisix.image in values.yaml + image: apache/apisix:3.19.0-ubuntu # = apisix.image in values.yaml imagePullPolicy: IfNotPresent securityContext: allowPrivilegeEscalation: false diff --git a/deployment/components/apisix/values.yaml b/deployment/components/apisix/values.yaml index 35773700..8af9b00e 100644 --- a/deployment/components/apisix/values.yaml +++ b/deployment/components/apisix/values.yaml @@ -2,11 +2,12 @@ # APISIX Helm chart configs apisix: - # The chart 2.14.1 default, pinned: values-openshift.yaml's seed-conf init - # container copies conf/ from the same image, keep its tag in step. + # Pinned: values-openshift.yaml's seed-conf init container copies conf/ from + # the same image, keep its tag in step. Stay below 3.20: its authz-keycloak + # requires every listed permission, while our routes list alternatives. image: repository: apache/apisix - tag: 3.16.0-ubuntu + tag: 3.19.0-ubuntu serviceAccount: create: true podSecurityContext: @@ -47,7 +48,7 @@ apisix: runAsUser: 65532 seccompProfile: type: RuntimeDefault - # Controller 2.1.0 (via apisix chart 2.14.1) is required: 2.0.1 wrongly gated + # Controller >= 2.1.0 (2.2.0 via apisix chart 2.19.0) is required: 2.0.1 wrongly gated # startup readiness on status-only ApisixUpstream/ApisixPluginConfig that never # mark done, so the provider blocked on a hardcoded 5m WaitReady timeout before # its first sync @@ -118,7 +119,7 @@ etcd: enabled: true image: repository: quay.io/coreos/etcd - tag: v3.5.15 + tag: v3.5.36 pullPolicy: IfNotPresent persistence: enabled: true diff --git a/deployment/components/audio/Chart.yaml b/deployment/components/audio/Chart.yaml index fac75747..6777bac3 100644 --- a/deployment/components/audio/Chart.yaml +++ b/deployment/components/audio/Chart.yaml @@ -7,5 +7,3 @@ description: Audio processing services (ASR, TTS, etc.) Helm chart type: application version: 0.1.3 appVersion: "3.0.0" -annotations: - app.kubernetes.io/part-of: ERAG diff --git a/deployment/components/audio/templates/vllmAudioCpu/deployment.yaml b/deployment/components/audio/templates/vllmAudioCpu/deployment.yaml index 97c13319..e9e28234 100644 --- a/deployment/components/audio/templates/vllmAudioCpu/deployment.yaml +++ b/deployment/components/audio/templates/vllmAudioCpu/deployment.yaml @@ -114,6 +114,10 @@ spec: name: user-cache - mountPath: /home/user/.config name: user-config + - mountPath: /home/user/.triton + name: user-triton + - mountPath: /dev/shm + name: dshm volumes: - name: tmp emptyDir: {} @@ -121,6 +125,12 @@ spec: emptyDir: {} - name: user-config emptyDir: {} + - name: user-triton + emptyDir: {} + - name: dshm + emptyDir: + medium: Memory + sizeLimit: 1Gi {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/deployment/components/chat_history/Chart.yaml b/deployment/components/chat_history/Chart.yaml index de60885b..8776bd57 100644 --- a/deployment/components/chat_history/Chart.yaml +++ b/deployment/components/chat_history/Chart.yaml @@ -7,8 +7,6 @@ description: Chat History Helm chart type: application version: 0.1.6 appVersion: "3.0.0" -annotations: - app.kubernetes.io/part-of: ERAG dependencies: - name: ferretdb diff --git a/deployment/components/edp/Chart.yaml b/deployment/components/edp/Chart.yaml index a676f4e6..b02b207d 100644 --- a/deployment/components/edp/Chart.yaml +++ b/deployment/components/edp/Chart.yaml @@ -3,12 +3,10 @@ apiVersion: v2 name: helm-edp -description: Enchanced dataprep pipeline chart +description: Enhanced dataprep pipeline chart type: application version: 0.1.6 appVersion: "3.0.0" -annotations: - app.kubernetes.io/part-of: ERAG dependencies: - name: edp-redis diff --git a/deployment/components/edp/charts/edp-redis/Chart.yaml b/deployment/components/edp/charts/edp-redis/Chart.yaml index 32cceeb0..f60c7433 100644 --- a/deployment/components/edp/charts/edp-redis/Chart.yaml +++ b/deployment/components/edp/charts/edp-redis/Chart.yaml @@ -5,6 +5,5 @@ type: application version: 1.0.5 appVersion: "3.0.0" annotations: - app.kubernetes.io/part-of: ERAG dependency-only: "true" diff --git a/deployment/components/edp/charts/edp-redis/values.yaml b/deployment/components/edp/charts/edp-redis/values.yaml index 0f6c2fb6..4b38879b 100644 --- a/deployment/components/edp/charts/edp-redis/values.yaml +++ b/deployment/components/edp/charts/edp-redis/values.yaml @@ -3,7 +3,7 @@ image: repository: redis - tag: "8.2.2" + tag: "8.2.11" pullPolicy: IfNotPresent # Password is managed by Ansible in edp-redis-secret diff --git a/deployment/components/edp/values.yaml b/deployment/components/edp/values.yaml index d11213d1..f677ab99 100644 --- a/deployment/components/edp/values.yaml +++ b/deployment/components/edp/values.yaml @@ -30,7 +30,7 @@ proxy: https_proxy: "" no_proxy: "" -edpExternalUrl: "https://s3.solutions.ai" +edpExternalUrl: "https://s3.inteltoolkits.ai" edpExternalCertVerify: "false" edpInternalUrl: "http://seaweedfs-s3.seaweedfs.svc:8333" edpInternalCertVerify: "false" @@ -56,8 +56,8 @@ keycloakBrokerIdpAlias: "" sharepointSyncLockTtlSeconds: "600" -s3ApiDomain: "s3.solutions.ai" -uiBrowserDomain: "seaweedfs.solutions.ai" +s3ApiDomain: "s3.inteltoolkits.ai" +uiBrowserDomain: "seaweedfs.inteltoolkits.ai" s3DomainPrefix: "s3" uiBrowserDomainPrefix: "seaweedfs" @@ -204,8 +204,8 @@ postgresql: size: "10Gi" # When minimalConfiguration is true, resource requests/limits for celery and -# textExtractor are reduced to values suitable for a 32-core / 64 GB single-user -# deployment. Set via edp.minimal_configuration: true in config.yaml. +# textExtractor are reduced (minimalResources below). Set via +# edp.minimal_configuration: true in config.yaml. # Individual services..resources overrides still take priority. minimalConfiguration: false minimalResources: diff --git a/deployment/components/ferretdb/Chart.yaml b/deployment/components/ferretdb/Chart.yaml index 9c52275d..6cafec33 100644 --- a/deployment/components/ferretdb/Chart.yaml +++ b/deployment/components/ferretdb/Chart.yaml @@ -13,5 +13,4 @@ type: application version: 0.1.9 appVersion: "3.0.0" annotations: - app.kubernetes.io/part-of: ERAG dependency-only: "true" diff --git a/deployment/components/fingerprint/Chart.yaml b/deployment/components/fingerprint/Chart.yaml index 80ae7fdd..a7ae3444 100644 --- a/deployment/components/fingerprint/Chart.yaml +++ b/deployment/components/fingerprint/Chart.yaml @@ -7,8 +7,6 @@ description: System fingerprint Helm chart type: application version: 0.2.0 appVersion: "3.0.0" -annotations: - app.kubernetes.io/part-of: ERAG dependencies: - name: postgresql diff --git a/deployment/components/gmc/Chart.yaml b/deployment/components/gmc/Chart.yaml index 8514ca13..71e99cfa 100644 --- a/deployment/components/gmc/Chart.yaml +++ b/deployment/components/gmc/Chart.yaml @@ -25,5 +25,3 @@ version: 0.9.6 # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. appVersion: "3.0.0" -annotations: - app.kubernetes.io/part-of: ERAG 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/components/gmc/templates/init_containers/_milvus_init_container.yaml b/deployment/components/gmc/templates/init_containers/_milvus_init_container.yaml index 186e7b3f..648fad2b 100644 --- a/deployment/components/gmc/templates/init_containers/_milvus_init_container.yaml +++ b/deployment/components/gmc/templates/init_containers/_milvus_init_container.yaml @@ -9,7 +9,6 @@ - ALL readOnlyRootFilesystem: false runAsNonRoot: true - runAsUser: 1000 env: - name: VECTOR_STORE valueFrom: diff --git a/deployment/components/hpa/README.md b/deployment/components/hpa/README.md index aba6572e..b502a968 100644 --- a/deployment/components/hpa/README.md +++ b/deployment/components/hpa/README.md @@ -1,3 +1,3 @@ # Horizontal Pod Autoscaler -Moved to [Performance › Horizontal Pod Autoscaling](../../../docs/operate/performance.md#horizontal-pod-autoscaling). +Moved to [Performance › Horizontal Pod Autoscaling](../../../docs/configuration/performance.md#horizontal-pod-autoscaling). diff --git a/deployment/components/mcp_gateway/Chart.yaml b/deployment/components/mcp_gateway/Chart.yaml index 6ae18f14..8a467180 100644 --- a/deployment/components/mcp_gateway/Chart.yaml +++ b/deployment/components/mcp_gateway/Chart.yaml @@ -7,5 +7,3 @@ description: MCP Gateway - exposes Intel® Chatbot Toolkit as MCP tools for AI a type: application version: 0.1.0 appVersion: "3.0.0" -annotations: - app.kubernetes.io/part-of: ERAG diff --git a/deployment/components/nats/Chart.yaml b/deployment/components/nats/Chart.yaml index 2f59d694..97576c04 100644 --- a/deployment/components/nats/Chart.yaml +++ b/deployment/components/nats/Chart.yaml @@ -7,5 +7,3 @@ description: NATS JetStream server backing the fingerprint config projection type: application version: 0.1.0 appVersion: "2.10" -annotations: - app.kubernetes.io/part-of: ERAG diff --git a/deployment/components/nats/templates/_helpers.tpl b/deployment/components/nats/templates/_helpers.tpl index c4391923..fe3d552d 100644 --- a/deployment/components/nats/templates/_helpers.tpl +++ b/deployment/components/nats/templates/_helpers.tpl @@ -39,7 +39,6 @@ helm.sh/chart: {{ include "nats.chart" . }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} {{- end }} app.kubernetes.io/managed-by: {{ .Release.Service }} -app.kubernetes.io/part-of: ERAG {{- end }} {{/* diff --git a/deployment/components/nats/values.yaml b/deployment/components/nats/values.yaml index 34bb3533..9a8e2357 100644 --- a/deployment/components/nats/values.yaml +++ b/deployment/components/nats/values.yaml @@ -8,7 +8,7 @@ fullnameOverride: "nats" image: repository: nats - tag: "2.10-alpine" + tag: "2.15.3-alpine" pullPolicy: IfNotPresent boxImage: @@ -18,7 +18,7 @@ boxImage: exporterImage: repository: natsio/prometheus-nats-exporter - tag: "0.15.0" + tag: "0.20.3" pullPolicy: IfNotPresent # Clustering. Single-server is the default so the component deploys on diff --git a/deployment/components/postgresql/Chart.yaml b/deployment/components/postgresql/Chart.yaml index 76a3541a..b748a145 100644 --- a/deployment/components/postgresql/Chart.yaml +++ b/deployment/components/postgresql/Chart.yaml @@ -3,10 +3,9 @@ apiVersion: v2 name: postgresql -description: A simple PostgreSQL Helm chart for ERAG components +description: A simple PostgreSQL Helm chart for Chatbot Toolkit components type: application version: 0.1.6 appVersion: "3.0.0" annotations: - app.kubernetes.io/part-of: ERAG dependency-only: "true" diff --git a/deployment/components/ui/Chart.yaml b/deployment/components/ui/Chart.yaml index fb30eeeb..123a55d1 100644 --- a/deployment/components/ui/Chart.yaml +++ b/deployment/components/ui/Chart.yaml @@ -7,5 +7,3 @@ description: Helm chart for UI component of Intel® Chatbot Toolkit ChatQnA type: application version: 1.0.6 appVersion: "3.0.0" -annotations: - app.kubernetes.io/part-of: ERAG diff --git a/deployment/components/ui/values.yaml b/deployment/components/ui/values.yaml index 483818a6..4f064ae6 100644 --- a/deployment/components/ui/values.yaml +++ b/deployment/components/ui/values.yaml @@ -8,7 +8,7 @@ proxy: https_proxy: "" no_proxy: "" -domainName: &dname "solutions.ai" +domainName: &dname "inteltoolkits.ai" type: chatqna extraNginxVars: @@ -26,15 +26,15 @@ extraNginxVars: statusEndpoint: "http://auth-apisix-gateway.auth-apisix.svc" extraUiConfigVars: - keycloakDomainName: "keycloak.solutions.ai" + keycloakDomainName: "keycloak.inteltoolkits.ai" keycloakRealm: "ChatbotToolkit" keycloakClientId: "ChatbotToolkit-oidc" adminResourceRole: "CHATTOOL-admin" userResourceRole: "CHATTOOL-user" maintainerResourceRole: "CHATTOOL-maintainer" - grafanaDomainName: "grafana.solutions.ai" - keycloakAdminPanelDomainName: "keycloak.solutions.ai" - s3DomainName: "s3.solutions.ai" + grafanaDomainName: "grafana.inteltoolkits.ai" + keycloakAdminPanelDomainName: "keycloak.inteltoolkits.ai" + s3DomainName: "s3.inteltoolkits.ai" chatDisclaimerText: "Responses from this solution may require further verification. You are solely responsible for verifying the accuracy of the information provided and how you choose to use it." chatMaintenanceMode: "false" # Why chat is unavailable, when chatMaintenanceMode is "true": "" for planned diff --git a/deployment/components/utils/init-container/Dockerfile b/deployment/components/utils/init-container/Dockerfile index 94d5000f..de4e2302 100644 --- a/deployment/components/utils/init-container/Dockerfile +++ b/deployment/components/utils/init-container/Dockerfile @@ -1,8 +1,7 @@ # Copyright (C) 2024-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -# Using Debian Bookworm (12) - smallest stable Debian with modern glibc 2.36 -FROM debian:bookworm-slim +FROM debian:trixie-slim ARG HTTP_PROXY ARG HTTPS_PROXY diff --git a/deployment/components/utils/rag-utils/Chart.yaml b/deployment/components/utils/rag-utils/Chart.yaml index 4773837c..ffd0c84e 100644 --- a/deployment/components/utils/rag-utils/Chart.yaml +++ b/deployment/components/utils/rag-utils/Chart.yaml @@ -9,5 +9,3 @@ type: application version: 2.0.6 appVersion: "3.0.0" -annotations: - app.kubernetes.io/part-of: ERAG diff --git a/deployment/components/vector_databases/Chart.yaml b/deployment/components/vector_databases/Chart.yaml index 8e0e796f..8107fe46 100644 --- a/deployment/components/vector_databases/Chart.yaml +++ b/deployment/components/vector_databases/Chart.yaml @@ -4,5 +4,3 @@ description: Vector databases for Intel® Chatbot Toolkit type: application version: 2.0.6 appVersion: "3.0.0" -annotations: - app.kubernetes.io/part-of: ERAG diff --git a/deployment/components/vector_databases/README.md b/deployment/components/vector_databases/README.md index d16a20f4..071927d5 100644 --- a/deployment/components/vector_databases/README.md +++ b/deployment/components/vector_databases/README.md @@ -1,3 +1,3 @@ # Vector Databases -Moved to [Configuration Reference › Vector database](../../../docs/customize/configuration.md#vector-database). +Moved to [Configuration Reference › Vector database](../../../docs/configuration/configuration.md#vector-database). diff --git a/deployment/components/vector_databases/templates/milvus/milvus-statefulset.yaml b/deployment/components/vector_databases/templates/milvus/milvus-statefulset.yaml index c94b930f..3f77a4e7 100644 --- a/deployment/components/vector_databases/templates/milvus/milvus-statefulset.yaml +++ b/deployment/components/vector_databases/templates/milvus/milvus-statefulset.yaml @@ -29,6 +29,9 @@ spec: runAsUser: 999 runAsGroup: 999 fsGroup: 999 + {{- with .Values.milvus.supplementalGroups }} + supplementalGroups: {{ toJson . }} + {{- end }} seccompProfile: type: RuntimeDefault containers: diff --git a/deployment/components/vector_databases/values.yaml b/deployment/components/vector_databases/values.yaml index 9a47e492..f579da6c 100644 --- a/deployment/components/vector_databases/values.yaml +++ b/deployment/components/vector_databases/values.yaml @@ -28,10 +28,12 @@ milvus: enabled: true image: repository: "milvusdb/milvus" - tag: "v3.0.5" + tag: "v3.0.7" pullPolicy: "IfNotPresent" serviceAccount: name: milvus + # Extra groups for the pod; set on OpenShift, where the UID is not 999. + supplementalGroups: [] config: authorizationEnabled: true # Merged verbatim into /milvus/configs/user.yaml, which overrides milvus.yaml. @@ -85,7 +87,7 @@ redis-cluster: enabled: true image: repository: oliver006/redis_exporter - tag: v1.80.0 + tag: v1.99.0 pullPolicy: IfNotPresent resources: requests: @@ -106,7 +108,7 @@ redis-cluster: redis: image: repository: redis - tag: 8.2.2 + tag: 8.2.11 pullPolicy: IfNotPresent readinessProbe: enabled: false 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 1d2f6958..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 (`es_auto_installer.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 11603766..a84bf2c0 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, @@ -59,18 +59,18 @@ inference_models: # --- Vector DB (app_vector_databases) --- # vector_databases_namespace: "vdb" -# vector_databases_vector_store: "redis-cluster" # redis-cluster | redis | mssql | pgvector | milvus +# vector_databases_vector_store: "milvus" # milvus | redis-cluster | redis | mssql | pgvector # vector_databases_vector_datatype: "FLOAT32" # vector_databases_vector_dims: 768 # auto-detected; override for unknown models # --- Backup and restore (Velero) --- # Opt-in. Requires the core installer's velero component and CSI-snapshot-capable -# storage (storage_backend: nfs or ceph) — see docs/operate/backup.md in this repository. +# storage (storage_backend: nfs or ceph) — see docs/deployment/backup-and-restore.md in this repository. # What is captured is declared in deployment/backup_profile.yaml. backup_enabled: false # upgrade_backup_max_age_hours: 6 # how fresh a backup the upgrade gate demands # --- Path overrides (paths inside the ext repo) --- -deployment_dir: "{{ playbook_dir }}/../ext/enterprise.ai-erag/deployment" +deployment_dir: "{{ playbook_dir }}/../ext/chatbot-toolkit/deployment" components_dir: "{{ deployment_dir }}/components" pipelines_dir: "{{ deployment_dir }}/pipelines/" diff --git a/deployment/pipelines/chatqna/config.yaml b/deployment/pipelines/chatqna/config.yaml index 4ede9ea8..d7f73409 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 --- @@ -49,24 +49,24 @@ inference_models: # edp_scheduled_sync_enabled: false # # External S3-compatible object store (for example ONTAP S3). See -# docs/netapp_ontap_s3.md; the array-side ontap_* values go in global_config.yaml. +# docs/configuration/object-store.md; the array-side ontap_* values go in global_config.yaml. # edp_s3_compatible_access_key_id: "" # edp_s3_compatible_secret_access_key: "" # --- Vector DB (app_vector_databases) --- # vector_databases_namespace: "vdb" -# vector_databases_vector_store: "redis-cluster" # redis-cluster | redis | mssql | pgvector | milvus +# vector_databases_vector_store: "milvus" # milvus | redis-cluster | redis | mssql | pgvector # vector_databases_vector_datatype: "FLOAT32" # vector_databases_vector_dims: 768 # auto-detected; override for unknown models # --- Backup and restore (Velero) --- # Opt-in. Requires the core installer's velero component and CSI-snapshot-capable -# storage (storage_backend: nfs or ceph) — see docs/operate/backup.md in this repository. +# storage (storage_backend: nfs or ceph) — see docs/deployment/backup-and-restore.md in this repository. # What is captured is declared in deployment/backup_profile.yaml. backup_enabled: false # upgrade_backup_max_age_hours: 6 # how fresh a backup the upgrade gate demands # --- Path overrides (paths inside the ext repo) --- -deployment_dir: "{{ playbook_dir }}/../ext/enterprise.ai-erag/deployment" +deployment_dir: "{{ playbook_dir }}/../ext/chatbot-toolkit/deployment" components_dir: "{{ deployment_dir }}/components" pipelines_dir: "{{ deployment_dir }}/pipelines/" diff --git a/deployment/pipelines/chatqna_intel_gpu/config.yaml b/deployment/pipelines/chatqna_intel_gpu/config.yaml index ce0e747d..d4a3c649 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 @@ -68,11 +68,11 @@ inference_models: # --- Vector DB (app_vector_databases) --- # vector_databases_namespace: "vdb" -# vector_databases_vector_store: "redis-cluster" # redis-cluster | redis | mssql | pgvector | milvus +# vector_databases_vector_store: "milvus" # milvus | redis-cluster | redis | mssql | pgvector # vector_databases_vector_datatype: "FLOAT32" # vector_databases_vector_dims: 768 # auto-detected; override for unknown models # --- Path overrides (paths inside the ext repo) --- -deployment_dir: "{{ playbook_dir }}/../ext/enterprise.ai-erag/deployment" +deployment_dir: "{{ playbook_dir }}/../ext/chatbot-toolkit/deployment" components_dir: "{{ deployment_dir }}/components" pipelines_dir: "{{ deployment_dir }}/pipelines/" diff --git a/deployment/pipelines/docsum/config.yaml b/deployment/pipelines/docsum/config.yaml index daa938a4..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 --- @@ -32,12 +32,12 @@ inference_models: # --- Backup and restore (Velero) --- # Opt-in. Requires the core installer's velero component and CSI-snapshot-capable -# storage (storage_backend: nfs or ceph) — see docs/operate/backup.md in this repository. +# storage (storage_backend: nfs or ceph) — see docs/deployment/backup-and-restore.md in this repository. # What is captured is declared in deployment/backup_profile.yaml. backup_enabled: false # upgrade_backup_max_age_hours: 6 # how fresh a backup the upgrade gate demands # --- Path overrides (paths inside the ext repo) --- -deployment_dir: "{{ playbook_dir }}/../ext/enterprise.ai-erag/deployment" +deployment_dir: "{{ playbook_dir }}/../ext/chatbot-toolkit/deployment" components_dir: "{{ deployment_dir }}/components" pipelines_dir: "{{ deployment_dir }}/pipelines/" diff --git a/deployment/pipelines/pl_chatqna/config.yaml b/deployment/pipelines/pl_chatqna/config.yaml index e747ab9b..e5b5edaf 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 --- @@ -50,18 +50,18 @@ inference_models: # --- Vector DB (app_vector_databases) --- # vector_databases_namespace: "vdb" -# vector_databases_vector_store: "redis-cluster" # redis-cluster | redis | mssql | pgvector | milvus +# vector_databases_vector_store: "milvus" # milvus | redis-cluster | redis | mssql | pgvector # vector_databases_vector_datatype: "FLOAT32" # vector_databases_vector_dims: 768 # auto-detected; override for unknown models # --- Backup and restore (Velero) --- # Opt-in. Requires the core installer's velero component and CSI-snapshot-capable -# storage (storage_backend: nfs or ceph) — see docs/operate/backup.md in this repository. +# storage (storage_backend: nfs or ceph) — see docs/deployment/backup-and-restore.md in this repository. # What is captured is declared in deployment/backup_profile.yaml. backup_enabled: false # upgrade_backup_max_age_hours: 6 # how fresh a backup the upgrade gate demands # --- Path overrides (paths inside the ext repo) --- -deployment_dir: "{{ playbook_dir }}/../ext/enterprise.ai-erag/deployment" +deployment_dir: "{{ playbook_dir }}/../ext/chatbot-toolkit/deployment" components_dir: "{{ deployment_dir }}/components" pipelines_dir: "{{ deployment_dir }}/pipelines/" diff --git a/deployment/pipelines/translation/config.yaml b/deployment/pipelines/translation/config.yaml index 2905ed02..a76f5e00 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 --- @@ -40,18 +40,18 @@ inference_models: # --- Vector DB (app_vector_databases) --- # vector_databases_namespace: "vdb" -# vector_databases_vector_store: "redis-cluster" # redis-cluster | redis | mssql | pgvector | milvus +# vector_databases_vector_store: "milvus" # milvus | redis-cluster | redis | mssql | pgvector # vector_databases_vector_datatype: "FLOAT32" # vector_databases_vector_dims: 768 # auto-detected; override for unknown models # --- Backup and restore (Velero) --- # Opt-in. Requires the core installer's velero component and CSI-snapshot-capable -# storage (storage_backend: nfs or ceph) — see docs/operate/backup.md in this repository. +# storage (storage_backend: nfs or ceph) — see docs/deployment/backup-and-restore.md in this repository. # What is captured is declared in deployment/backup_profile.yaml. backup_enabled: false # upgrade_backup_max_age_hours: 6 # how fresh a backup the upgrade gate demands # --- Path overrides (paths inside the ext repo) --- -deployment_dir: "{{ playbook_dir }}/../ext/enterprise.ai-erag/deployment" +deployment_dir: "{{ playbook_dir }}/../ext/chatbot-toolkit/deployment" components_dir: "{{ deployment_dir }}/components" pipelines_dir: "{{ deployment_dir }}/pipelines/" diff --git a/deployment/roles/app_apisix/defaults/main.yaml b/deployment/roles/app_apisix/defaults/main.yaml index f60466d4..b0a0316e 100644 --- a/deployment/roles/app_apisix/defaults/main.yaml +++ b/deployment/roles/app_apisix/defaults/main.yaml @@ -31,4 +31,4 @@ apisix_api_paths: # --- Cross-role shared defaults --- pipeline_type: "chatqna" # app_pipeline -ui_domain_name: "{{ base_domain_name | default('solutions.ai') }}" # app_ui +ui_domain_name: "{{ base_domain_name | default('inteltoolkits.ai') }}" # app_ui diff --git a/deployment/roles/app_apisix/tasks/api_route.yaml b/deployment/roles/app_apisix/tasks/api_route.yaml index 50de9bd5..d54fb646 100644 --- a/deployment/roles/app_apisix/tasks/api_route.yaml +++ b/deployment/roles/app_apisix/tasks/api_route.yaml @@ -27,6 +27,10 @@ name: "{{ apisix_api_route_name }}" namespace: "{{ apisix_namespace }}" definition: "{{ lookup('template', 'api-httproute.yaml.j2') | from_yaml if _apisix_api_route_present | bool else omit }}" + register: _apisix_api_route + failed_when: + - _apisix_api_route is failed + - _apisix_api_route_present | bool or 'Failed to find exact match' not in (_apisix_api_route.msg | default('')) - name: "app_apisix | Leave the API route's auth to APISIX" ansible.builtin.include_role: diff --git a/deployment/roles/app_audio/defaults/main.yaml b/deployment/roles/app_audio/defaults/main.yaml index 8ac9e1ab..5456c809 100644 --- a/deployment/roles/app_audio/defaults/main.yaml +++ b/deployment/roles/app_audio/defaults/main.yaml @@ -22,7 +22,7 @@ audio_helm_default_values_file: "{{ deployment_dir }}/components/audio/values.ya apisix_oidc_client_id: "ChatbotToolkit-oidc-backend" # app_apisix keycloak_namespace: "keycloak" # core/keycloak chattool_keycloak_realm: "ChatbotToolkit" # app_keycloak_config -ui_domain_name: "{{ base_domain_name | default('solutions.ai') }}" # app_ui +ui_domain_name: "{{ base_domain_name | default('inteltoolkits.ai') }}" # app_ui chattool_keycloak_default_path_prefix: "{{ keycloak_path | default('/keycloak') }}" # app_keycloak_config chattool_keycloak_path_prefix: "{{ chattool_keycloak_default_path_prefix if (routing_mode | default('subdomain')) == 'path' else '' }}" # app_keycloak_config ui_keycloak_realm: "ChatbotToolkit" # app_ui diff --git a/deployment/roles/app_chat_history/defaults/main.yaml b/deployment/roles/app_chat_history/defaults/main.yaml index bfa2deda..7ca52efd 100644 --- a/deployment/roles/app_chat_history/defaults/main.yaml +++ b/deployment/roles/app_chat_history/defaults/main.yaml @@ -31,7 +31,7 @@ apisix_oidc_client_id: "ChatbotToolkit-oidc-backend" # app_apisix keycloak_namespace: "keycloak" # core/keycloak pipeline_namespace: "{{ pipeline_type | default('chatqna') }}" # app_pipeline chattool_keycloak_realm: "ChatbotToolkit" # app_keycloak_config -ui_domain_name: "{{ base_domain_name | default('solutions.ai') }}" # app_ui +ui_domain_name: "{{ base_domain_name | default('inteltoolkits.ai') }}" # app_ui chattool_keycloak_default_path_prefix: "{{ keycloak_path | default('/keycloak') }}" # app_keycloak_config chattool_keycloak_path_prefix: "{{ chattool_keycloak_default_path_prefix if (routing_mode | default('subdomain')) == 'path' else '' }}" # app_keycloak_config ui_keycloak_realm: "ChatbotToolkit" # app_ui diff --git a/deployment/roles/app_data_consistency/defaults/main.yaml b/deployment/roles/app_data_consistency/defaults/main.yaml index 8cd3743e..d005adfd 100644 --- a/deployment/roles/app_data_consistency/defaults/main.yaml +++ b/deployment/roles/app_data_consistency/defaults/main.yaml @@ -81,7 +81,7 @@ data_consistency_keycloak_url: >- # a store the component registry would not have installed is not counted. --- vector_databases_enabled: false # app_vector_databases vector_databases_namespace: "vdb" # app_vector_databases -vector_databases_vector_store: "redis-cluster" # app_vector_databases (redis-cluster | mssql | pgvector | milvus) +vector_databases_vector_store: "milvus" # app_vector_databases (milvus | redis-cluster | mssql | pgvector) chat_history_enabled: false # app_chat_history chat_history_namespace: "chat-history" # app_chat_history chat_history_helm_release_name: "chat-history" # app_chat_history diff --git a/deployment/roles/app_data_consistency/tasks/snapshot.yaml b/deployment/roles/app_data_consistency/tasks/snapshot.yaml index 271216bd..ace4aa42 100644 --- a/deployment/roles/app_data_consistency/tasks/snapshot.yaml +++ b/deployment/roles/app_data_consistency/tasks/snapshot.yaml @@ -180,8 +180,8 @@ 'reason': _dc_ch_skip_reason | trim}}) }} when: _dc_ch_skip_reason | trim | length > 0 -# --- Enterprise data platform (file rows in PostgreSQL) --- -- name: "app_data_consistency | Snapshot — data platform: check namespace" +# --- EDP (file rows in PostgreSQL) --- +- name: "app_data_consistency | Snapshot — EDP: check namespace" kubernetes.core.k8s_info: api_version: v1 kind: Namespace @@ -189,7 +189,7 @@ register: _dc_edp_ns failed_when: false -- name: "app_data_consistency | Snapshot — data platform: resolve guards" +- name: "app_data_consistency | Snapshot — EDP: resolve guards" ansible.builtin.set_fact: _dc_edp_skip_reason: >- {{ ('namespace ' ~ edp_namespace ~ ' is not present') @@ -200,10 +200,10 @@ if not (data_consistency_check_edp | bool) else '' }} -- name: "app_data_consistency | Snapshot — data platform: count files" +- name: "app_data_consistency | Snapshot — EDP: count files" when: _dc_edp_skip_reason | trim | length == 0 block: - - name: "app_data_consistency | Snapshot — data platform: resolve workload" + - name: "app_data_consistency | Snapshot — EDP: resolve workload" ansible.builtin.include_tasks: resolve_workload.yaml vars: dcw_store: edp @@ -211,7 +211,7 @@ dcw_workload: "{{ data_consistency_edp_statefulset }}" dcw_container: "{{ data_consistency_postgresql_container }}" - - name: "app_data_consistency | Snapshot — data platform: run query Job" + - name: "app_data_consistency | Snapshot — EDP: run query Job" ansible.builtin.include_tasks: query_job.yaml vars: dcj_store: edp @@ -238,19 +238,19 @@ - name: COUNT_SQL value: "{{ data_consistency_edp_count_sql }}" - - name: "app_data_consistency | Snapshot — data platform: record" + - name: "app_data_consistency | Snapshot — EDP: record" ansible.builtin.set_fact: _data_snapshot: >- {{ _data_snapshot | combine({'edp': { 'count': _dcj_count | int, 'status': 'ok', 'method': 'postgresql files table count'}}) }} rescue: - - name: "app_data_consistency | Snapshot — data platform: record failure" + - name: "app_data_consistency | Snapshot — EDP: record failure" ansible.builtin.include_tasks: record_failure.yaml vars: dcr_store: edp -- name: "app_data_consistency | Snapshot — data platform: record skip" +- name: "app_data_consistency | Snapshot — EDP: record skip" ansible.builtin.set_fact: _data_snapshot: >- {{ _data_snapshot | combine({'edp': { diff --git a/deployment/roles/app_edp/defaults/main.yaml b/deployment/roles/app_edp/defaults/main.yaml index 79b29a8a..7f922959 100644 --- a/deployment/roles/app_edp/defaults/main.yaml +++ b/deployment/roles/app_edp/defaults/main.yaml @@ -3,7 +3,7 @@ --- # ============================================================================= -# app_edp Role Defaults — Enterprise Data Platform +# app_edp Role Defaults — Enhanced Data Preparation (EDP) # ============================================================================= # --- Feature flag --- @@ -222,7 +222,7 @@ embedding_model_name: "nomic-embed" # app_inference_models (catal embedding_model_id: "nomic-ai/nomic-embed-text-v1" # app_inference_models (HuggingFace repo id) pipeline_namespace: "{{ pipeline_type | default('chatqna') }}" # app_pipeline chattool_keycloak_realm: "ChatbotToolkit" # app_keycloak_config -chattool_keycloak_domain_name: "{{ (base_domain_name | default('solutions.ai')) if (routing_mode | default('subdomain')) == 'path' else 'keycloak.' ~ (base_domain_name | default('solutions.ai')) }}" # app_keycloak_config +chattool_keycloak_domain_name: "{{ (base_domain_name | default('inteltoolkits.ai')) if (routing_mode | default('subdomain')) == 'path' else 'keycloak.' ~ (base_domain_name | default('inteltoolkits.ai')) }}" # app_keycloak_config chattool_keycloak_default_path_prefix: "{{ keycloak_path | default('/keycloak') }}" # app_keycloak_config chattool_keycloak_path_prefix: "{{ chattool_keycloak_default_path_prefix if (routing_mode | default('subdomain')) == 'path' else '' }}" # app_keycloak_config # SharePoint credentials from the Entra app registration @@ -245,7 +245,7 @@ ontap_s3_data_lif: "" ontap_s3_port: 443 ontap_s3_tls: true ontap_s3_ca_cert_file: "" -ui_domain_name: "{{ base_domain_name | default('solutions.ai') }}" # app_ui +ui_domain_name: "{{ base_domain_name | default('inteltoolkits.ai') }}" # app_ui ui_keycloak_realm: "ChatbotToolkit" # app_ui vector_databases_vector_datatype: "FLOAT32" # app_vector_databases vector_databases_vector_dims: 768 # app_vector_databases diff --git a/deployment/roles/app_edp/tasks/install.yaml b/deployment/roles/app_edp/tasks/install.yaml index 47d388ce..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.rag.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_edp/tasks/ontap_s3_derive.yaml b/deployment/roles/app_edp/tasks/ontap_s3_derive.yaml index 1a87aa95..56f20357 100644 --- a/deployment/roles/app_edp/tasks/ontap_s3_derive.yaml +++ b/deployment/roles/app_edp/tasks/ontap_s3_derive.yaml @@ -5,7 +5,7 @@ # Derives edp_storage_type from the ONTAP S3 parameters, so an ONTAP S3 deployment needs # the endpoint and the two access keys and nothing else. # -# Included from app_pre_install, which every RAG component depends on, because a role +# Included from app_pre_install, which every Chatbot Toolkit component depends on, because a role # default cannot do this: role defaults are role-scoped and app_check_pods and app_ui # each declare their own edp_storage_type, so they would keep believing 'seaweedfs' and # the health check would wait for SeaweedFS pods that do not exist. An explicit diff --git a/deployment/roles/app_edp/tasks/ontap_s3_resolve.yaml b/deployment/roles/app_edp/tasks/ontap_s3_resolve.yaml index e92165c2..1a4e160f 100644 --- a/deployment/roles/app_edp/tasks/ontap_s3_resolve.yaml +++ b/deployment/roles/app_edp/tasks/ontap_s3_resolve.yaml @@ -46,7 +46,7 @@ Storage backend is netapp-trident but EDP keeps using '{{ edp_storage_type }}'. To serve documents from ONTAP S3, set ontap_s3_data_lif plus edp_s3_compatible_access_key_id / edp_s3_compatible_secret_access_key; everything - else is derived. See docs/netapp_ontap_s3.md. + else is derived. See docs/configuration/object-store.md. when: - not (_edp_ontap_s3_active | bool) - _edp_storage_backend == 'netapp-trident' diff --git a/deployment/roles/app_edp/tasks/ontap_s3_validate.yaml b/deployment/roles/app_edp/tasks/ontap_s3_validate.yaml index a2a54e56..525eeeb0 100644 --- a/deployment/roles/app_edp/tasks/ontap_s3_validate.yaml +++ b/deployment/roles/app_edp/tasks/ontap_s3_validate.yaml @@ -37,7 +37,7 @@ endpoint for {{ _edp_ontap_s3_lif }} (found {{ _ready_addresses | default([]) }}). Service/{{ edp_ontap_s3_backend_name }} is selectorless, so nothing repopulates it: the gateway answers 503 on every upload instead of failing loudly. - Re-run: ./es_auto_installer.sh install app_edp --only --env + Re-run: ./toolkit_manager.sh install app_edp --only --env success_msg: "app_edp: ONTAP S3 endpoint {{ _edp_ontap_s3_lif }}:{{ _edp_ontap_s3_port }} present" quiet: true vars: diff --git a/deployment/roles/app_edp/tasks/seaweedfs.yaml b/deployment/roles/app_edp/tasks/seaweedfs.yaml index 6953481d..b2aaeb44 100644 --- a/deployment/roles/app_edp/tasks/seaweedfs.yaml +++ b/deployment/roles/app_edp/tasks/seaweedfs.yaml @@ -20,8 +20,8 @@ kcDomainName: "{{ chattool_keycloak_domain_name }}" keycloakRealm: "{{ ui_keycloak_realm | default('ChatbotToolkit') }}" clientId: "{{ client_id | default('ChatbotToolkit-oidc-minio') }}" - s3_host: "{{ edp_helm_values.s3ApiDomain | default((edp_helm_values.s3DomainPrefix | default('s3')) ~ '.' ~ (base_domain_name | default('solutions.ai'))) }}" - admin_host: "{{ edp_helm_values.uiBrowserDomain | default((edp_helm_values.uiBrowserDomainPrefix | default('seaweedfs')) ~ '.' ~ (base_domain_name | default('solutions.ai'))) }}" + s3_host: "{{ edp_helm_values.s3ApiDomain | default((edp_helm_values.s3DomainPrefix | default('s3')) ~ '.' ~ (base_domain_name | default('inteltoolkits.ai'))) }}" + admin_host: "{{ edp_helm_values.uiBrowserDomain | default((edp_helm_values.uiBrowserDomainPrefix | default('seaweedfs')) ~ '.' ~ (base_domain_name | default('inteltoolkits.ai'))) }}" - name: "app_edp | Define SeaweedFS S3 config" ansible.builtin.set_fact: diff --git a/deployment/roles/app_edp/tasks/validate.yaml b/deployment/roles/app_edp/tasks/validate.yaml index 76e1908a..c587b32b 100644 --- a/deployment/roles/app_edp/tasks/validate.yaml +++ b/deployment/roles/app_edp/tasks/validate.yaml @@ -50,7 +50,7 @@ KEYCLOAK_BROKER_IDP_ALIAS. SharePoint ingestion will return 404 "SharePoint integration is not configured." Re-run: - ./es_auto_installer.sh install app_edp --only --env + ./toolkit_manager.sh install app_edp --only --env success_msg: "app_edp: SharePoint credentials present" quiet: true vars: diff --git a/deployment/roles/app_edp/templates/redis-values.yaml.j2 b/deployment/roles/app_edp/templates/redis-values.yaml.j2 index 59a4f209..29661211 100644 --- a/deployment/roles/app_edp/templates/redis-values.yaml.j2 +++ b/deployment/roles/app_edp/templates/redis-values.yaml.j2 @@ -6,7 +6,7 @@ fullnameOverride: {{ edp_redis_name }} image: repository: redis - tag: "8.2.2" + tag: "8.2.11" pullPolicy: IfNotPresent auth: diff --git a/deployment/roles/app_edp/templates/values.yaml.j2 b/deployment/roles/app_edp/templates/values.yaml.j2 index 02b236ed..bd2c4607 100644 --- a/deployment/roles/app_edp/templates/values.yaml.j2 +++ b/deployment/roles/app_edp/templates/values.yaml.j2 @@ -32,7 +32,7 @@ textExtractor: embedding_model_name: &embedding_model_name {{ embedding_model_name }} -{% set base_domain_name = base_domain_name | default('solutions.ai') %} +{% set base_domain_name = base_domain_name | default('inteltoolkits.ai') %} {% set s3_prefix = edp_s3_domain_prefix if edp_s3_domain_prefix is defined else 's3' %} {% set ui_prefix = edp_ui_browser_domain_prefix if edp_ui_browser_domain_prefix is defined else 'seaweedfs' %} {% if routing_mode | default('subdomain') == 'path' %} diff --git a/deployment/roles/app_fingerprint/defaults/main.yaml b/deployment/roles/app_fingerprint/defaults/main.yaml index f448afcc..e0ac86bc 100644 --- a/deployment/roles/app_fingerprint/defaults/main.yaml +++ b/deployment/roles/app_fingerprint/defaults/main.yaml @@ -30,7 +30,7 @@ keycloak_namespace: "keycloak" # core/keycloak gmc_namespace: "system" # app_pipeline — controller runs the fingerprint KV bridge here pipeline_namespace: "{{ pipeline_type | default('chatqna') }}" # app_pipeline chattool_keycloak_realm: "ChatbotToolkit" # app_keycloak_config -ui_domain_name: "{{ base_domain_name | default('solutions.ai') }}" # app_ui +ui_domain_name: "{{ base_domain_name | default('inteltoolkits.ai') }}" # app_ui chattool_keycloak_default_path_prefix: "{{ keycloak_path | default('/keycloak') }}" # app_keycloak_config chattool_keycloak_path_prefix: "{{ chattool_keycloak_default_path_prefix if (routing_mode | default('subdomain')) == 'path' else '' }}" # app_keycloak_config ui_keycloak_realm: "ChatbotToolkit" # app_ui diff --git a/deployment/roles/app_inference_models/defaults/main.yaml b/deployment/roles/app_inference_models/defaults/main.yaml index dd91cc0e..6cb1dd9b 100644 --- a/deployment/roles/app_inference_models/defaults/main.yaml +++ b/deployment/roles/app_inference_models/defaults/main.yaml @@ -94,7 +94,7 @@ inference_undeploy_confirm_delay: 5 inference_auto_size: true # Path to the replica calculator (bundled with this repo). -inference_calc_replicas_script: "{{ playbook_dir }}/../ext/enterprise.ai-erag/deployment/scripts/calculate_replicas.py" +inference_calc_replicas_script: "{{ deployment_dir }}/scripts/calculate_replicas.py" # Baseline CPU per role — used only if env/local/models.yaml has no `cpu:` for # the matching model (the catalog values normally win). diff --git a/deployment/roles/app_inference_models/tasks/install.yaml b/deployment/roles/app_inference_models/tasks/install.yaml index 367a43f2..7db403d9 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" @@ -46,7 +46,7 @@ that: _mm_stat.stat.exists fail_msg: >- model-manager not found at {{ inference_model_manager_path }}. - Ensure enterprise.ai-inference is cloned under /ext/. + Ensure inference-toolkit is cloned under /ext/. # ----------------------------------------------------------------------------- # Replica sizing: shrink LLM CPU and cap replica count so that @@ -56,12 +56,10 @@ - name: "app_inference_models | Load model catalog" # Seeded by the first task in this file from deployment/models.yaml (force: false, - # so an operator's edits to the env copy survive) — not by es_auto_installer init, + # so an operator's edits to the env copy survive) — not by toolkit_manager.sh init, # which seeds env//models.yaml from the inference repo's catalog. - # Must match MM_CONFIG below so baseline sizing sees the same catalog the - # deploy step uses. ansible.builtin.set_fact: - _mm_catalog: "{{ lookup('file', env_dir + '/models-rag.yaml') | from_yaml }}" + _mm_catalog: "{{ lookup('file', _inference_models_mm_env.MM_CONFIG) | from_yaml }}" # Without this, a name with no catalog entry yields Undefined below and every # `_sizing_baseline..cpu | default(...)` fails on the attribute access @@ -75,7 +73,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" @@ -495,24 +493,21 @@ ) + ['--wait', '--wait-timeout', '1200'] }} - environment: - KUBECONFIG: "{{ lookup('env', 'KUBECONFIG') }}" - MM_CONFIG: "{{ env_dir }}/models-rag.yaml" - # The wrapper prompts for an env when several exist under env/ and hard-fails - # with no tty. Pass the env the installer already resolved from --env. - ES_ENV: "{{ env_dir | basename }}" - MM_CPU_POLICY: "{{ kubernetes_cpu_policy | default('nri-balloons') }}" - # Accelerator plumbing (see defaults/main.yaml). On intel-gpu: MM_VLLM_RUNTIME - # swaps the logical `vllm` runtime for vllm-xpu and MM_ACCEL_RESOURCE - # (gpu.intel.com/xe) is requested per pod; MM_ACCEL_RENDER_GID adds the host - # `render` group as a pod supplementalGroup so the non-root vLLM-XPU pod can - # enumerate the GPU. All empty on CPU (and whenever the profile leaves them - # unset), so model-manager emits none of the GPU wiring. A model's per-entry - # accelerator: (passed as --accelerator above) overrides MM_ACCELERATOR. - MM_ACCELERATOR: "{{ kubernetes_accelerator | default('cpu') }}" - MM_VLLM_RUNTIME: "{{ (inference_accelerator_profiles[kubernetes_accelerator | default('cpu')] | default({})).vllm_runtime | default('') }}" - MM_ACCEL_RESOURCE: "{{ (inference_accelerator_profiles[kubernetes_accelerator | default('cpu')] | default({})).k8s_resource | default('') }}" - MM_ACCEL_RENDER_GID: "{{ (inference_accelerator_profiles[kubernetes_accelerator | default('cpu')] | default({})).render_group_gid | default('') }}" + environment: "{{ _inference_models_mm_env | combine(_inference_models_deploy_env) }}" + vars: + _inference_models_deploy_env: + MM_CPU_POLICY: "{{ kubernetes_cpu_policy | default('nri-balloons') }}" + # Accelerator plumbing (see defaults/main.yaml). On intel-gpu: MM_VLLM_RUNTIME + # swaps the logical `vllm` runtime for vllm-xpu and MM_ACCEL_RESOURCE + # (gpu.intel.com/xe) is requested per pod; MM_ACCEL_RENDER_GID adds the host + # `render` group as a pod supplementalGroup so the non-root vLLM-XPU pod can + # enumerate the GPU. All empty on CPU (and whenever the profile leaves them + # unset), so model-manager emits none of the GPU wiring. A model's per-entry + # accelerator: (passed as --accelerator above) overrides MM_ACCELERATOR. + MM_ACCELERATOR: "{{ kubernetes_accelerator | default('cpu') }}" + MM_VLLM_RUNTIME: "{{ (inference_accelerator_profiles[kubernetes_accelerator | default('cpu')] | default({})).vllm_runtime | default('') }}" + MM_ACCEL_RESOURCE: "{{ (inference_accelerator_profiles[kubernetes_accelerator | default('cpu')] | default({})).k8s_resource | default('') }}" + MM_ACCEL_RENDER_GID: "{{ (inference_accelerator_profiles[kubernetes_accelerator | default('cpu')] | default({})).render_group_gid | default('') }}" loop: "{{ inference_models }}" loop_control: label: "{{ item.name }} ({{ item.role }})" diff --git a/deployment/roles/app_inference_models/tasks/reconcile.yaml b/deployment/roles/app_inference_models/tasks/reconcile.yaml index 455a68a0..7e3680b2 100644 --- a/deployment/roles/app_inference_models/tasks/reconcile.yaml +++ b/deployment/roles/app_inference_models/tasks/reconcile.yaml @@ -165,9 +165,7 @@ {{ inference_model_manager_path }} undeploy {{ item }} --wait --wait-timeout {{ (inference_undeploy_wait_retries | int) * (inference_undeploy_wait_delay | int) }} - environment: - KUBECONFIG: "{{ lookup('env', 'KUBECONFIG') | default('~/.kube/config', true) }}" - MM_CONFIG: "{{ env_dir }}/models-rag.yaml" + environment: "{{ _inference_models_mm_env }}" loop: "{{ _undeploy_names }}" register: _undeploy_result changed_when: "'undeployed' in (_undeploy_result.stdout | default(''))" diff --git a/deployment/roles/app_inference_models/tasks/teardown.yaml b/deployment/roles/app_inference_models/tasks/teardown.yaml index a9b05890..d75682ae 100644 --- a/deployment/roles/app_inference_models/tasks/teardown.yaml +++ b/deployment/roles/app_inference_models/tasks/teardown.yaml @@ -15,11 +15,7 @@ {{ inference_model_manager_path }} undeploy {{ item }} --wait --wait-timeout {{ (inference_undeploy_wait_retries | int) * (inference_undeploy_wait_delay | int) }} - environment: - KUBECONFIG: "{{ lookup('env', 'KUBECONFIG') | default('~/.kube/config', true) }}" - MM_CONFIG: "{{ env_dir }}/models-rag.yaml" - # See install.yaml: the wrapper can't prompt for an env under Ansible. - ES_ENV: "{{ env_dir | basename }}" + environment: "{{ _inference_models_mm_env }}" loop: "{{ _owned | list }}" register: _mm_undeploy changed_when: "'undeployed' in (_mm_undeploy.stdout | default(''))" diff --git a/deployment/roles/app_inference_models/vars/main.yaml b/deployment/roles/app_inference_models/vars/main.yaml new file mode 100644 index 00000000..f502c41a --- /dev/null +++ b/deployment/roles/app_inference_models/vars/main.yaml @@ -0,0 +1,11 @@ +# Copyright (C) 2026 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +--- +_inference_models_mm_env: + KUBECONFIG: "{{ lookup('env', 'KUBECONFIG') | default(lookup('env', 'HOME') ~ '/.kube/config', true) }}" + MM_CONFIG: "{{ env_dir }}/models-rag.yaml" + # The wrapper prompts for an env when several exist under env/ and hard-fails + # with no tty. Pass the env the installer already resolved from --env. + TKM_ENV: "{{ env_dir | basename }}" + # Pre-2.0 Toolkit Manager wrappers read ES_ENV instead. + ES_ENV: "{{ env_dir | basename }}" diff --git a/deployment/roles/app_keycloak_config/defaults/main.yaml b/deployment/roles/app_keycloak_config/defaults/main.yaml index 8f92f880..9e05ea81 100644 --- a/deployment/roles/app_keycloak_config/defaults/main.yaml +++ b/deployment/roles/app_keycloak_config/defaults/main.yaml @@ -19,7 +19,7 @@ # --- Realm + domain --- chattool_keycloak_realm: "ChatbotToolkit" -chattool_keycloak_domain_name: "{{ (base_domain_name | default('solutions.ai')) if (routing_mode | default('subdomain')) == 'path' else 'keycloak.' ~ (base_domain_name | default('solutions.ai')) }}" +chattool_keycloak_domain_name: "{{ (base_domain_name | default('inteltoolkits.ai')) if (routing_mode | default('subdomain')) == 'path' else 'keycloak.' ~ (base_domain_name | default('inteltoolkits.ai')) }}" # Must match where the platform serves Keycloak in path mode (keycloak role: keycloak_path, # default /keycloak); a different prefix breaks every issuer URL. chattool_keycloak_default_path_prefix: "{{ keycloak_path | default('/keycloak') }}" @@ -62,9 +62,9 @@ chattool_keycloak_federation_maintainer_group_ldap_filter: "(cn=chattool-maintai chattool_keycloak_federation_admin_group_ldap_filter: "(cn=chattool-admin-group)" # --- Cross-role shared defaults - Owned by other roles; declared here so this role is standalone-runnable. --- -edp_minio_domain_name: "seaweedfs.{{ base_domain_name | default('solutions.ai') }}" # app_edp +edp_minio_domain_name: "seaweedfs.{{ base_domain_name | default('inteltoolkits.ai') }}" # app_edp edp_seaweedfs_path_prefix: "" # app_edp -ui_domain_name: "{{ base_domain_name | default('solutions.ai') }}" # app_ui +ui_domain_name: "{{ base_domain_name | default('inteltoolkits.ai') }}" # app_ui rag_log_dir: "{{ log_dir }}/rag" # app_pre_install (derived from log_dir) rag_tmp_dir: "{{ tmp_dir }}/rag" # app_pre_install (derived from tmp_dir) secure_logs: true # global diff --git a/deployment/roles/app_keycloak_config/files/keycloak_configurator_job.sh b/deployment/roles/app_keycloak_config/files/keycloak_configurator_job.sh index 138f71f5..d5d923a7 100644 --- a/deployment/roles/app_keycloak_config/files/keycloak_configurator_job.sh +++ b/deployment/roles/app_keycloak_config/files/keycloak_configurator_job.sh @@ -14,9 +14,9 @@ KEYCLOAK_DEFAULT_REALM=master KEYCLOAK_USER="${KEYCLOAK_ADMIN_USER:-admin}" ADMIN_PASSWORD="${KEYCLOAK_ADMIN_PASSWORD}" KEYCLOAK_URL="${KEYCLOAK_URL:-http://keycloak-service:8080}" -MINIO_DOMAIN="${MINIO_DOMAIN:-minio.solutions.ai}" +MINIO_DOMAIN="${MINIO_DOMAIN:-minio.inteltoolkits.ai}" MINIO_PATH_PREFIX="${MINIO_PATH_PREFIX:-}" -UI_DOMAIN="${UI_DOMAIN:-solutions.ai}" +UI_DOMAIN="${UI_DOMAIN:-inteltoolkits.ai}" CREDENTIALS_SECRET_NAME="${CREDENTIALS_SECRET_NAME:-chattool-credentials}" CREDENTIALS_SECRET_NAMESPACE="${CREDENTIALS_SECRET_NAMESPACE:-auth}" 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 e3de8e47..4ec1881c 100644 --- a/deployment/roles/app_keycloak_config/tasks/assert_oidc_config.yaml +++ b/deployment/roles/app_keycloak_config/tasks/assert_oidc_config.yaml @@ -4,7 +4,7 @@ --- - name: "app_keycloak_config | Assert external OIDC configuration is complete" vars: - _erag_oidc_empty_vars: >- + _chattool_oidc_empty_vars: >- {{ {'chattool_keycloak_oidc_endpoint': chattool_keycloak_oidc_endpoint | default('', true) | string | trim, 'chattool_keycloak_oidc_alias': chattool_keycloak_oidc_alias | default('', true) | string | trim, 'chattool_keycloak_oidc_client_id': chattool_keycloak_oidc_client_id | default('', true) | string | trim, @@ -13,12 +13,12 @@ block: - name: "app_keycloak_config | Assert Single Sign-On configuration is complete" ansible.builtin.assert: - that: _erag_oidc_empty_vars | length == 0 + that: _chattool_oidc_empty_vars | length == 0 fail_msg: >- Incomplete Single Sign-On configuration: chattool_keycloak_oidc_endpoint is set but - {{ _erag_oidc_empty_vars | join(', ') }} - {{ 'is' if _erag_oidc_empty_vars | length == 1 else 'are' }} empty. - Set them in env//config.rag.yaml, or clear chattool_keycloak_oidc_endpoint + {{ _chattool_oidc_empty_vars | join(', ') }} + {{ 'is' if _chattool_oidc_empty_vars | length == 1 else 'are' }} empty. + 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,13 +33,13 @@ 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.rag.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 vars: _sp_missing: >- - {{ _erag_oidc_empty_vars | intersect(['chattool_keycloak_oidc_endpoint', + {{ _chattool_oidc_empty_vars | intersect(['chattool_keycloak_oidc_endpoint', 'chattool_keycloak_oidc_client_id', 'chattool_keycloak_oidc_client_secret']) }} when: chattool_keycloak_oidc_tenant_id | default('', true) | string | trim | length > 0 diff --git a/deployment/roles/app_keycloak_config/tasks/teardown.yaml b/deployment/roles/app_keycloak_config/tasks/teardown.yaml index 79d5e491..86759cc2 100644 --- a/deployment/roles/app_keycloak_config/tasks/teardown.yaml +++ b/deployment/roles/app_keycloak_config/tasks/teardown.yaml @@ -63,6 +63,14 @@ name: keycloak-configurator namespace: "{{ keycloak_namespace }}" + # A teardown may run where no install created the work directories + # (app_pre_install), so this cannot assume the directory is already there. + - name: "app_keycloak_config | Ensure the work directory exists" + ansible.builtin.file: + path: "{{ rag_tmp_dir }}" + state: directory + mode: "0755" + - name: "app_keycloak_config | Generate teardown Job manifest" ansible.builtin.template: src: teardown-job.yaml.j2 diff --git a/deployment/roles/app_keycloak_config/tasks/validate.yaml b/deployment/roles/app_keycloak_config/tasks/validate.yaml index 911267eb..a5fe7156 100644 --- a/deployment/roles/app_keycloak_config/tasks/validate.yaml +++ b/deployment/roles/app_keycloak_config/tasks/validate.yaml @@ -46,7 +46,7 @@ No successful Keycloak configurator Job found in {{ keycloak_namespace }}, so identity provider '{{ chattool_keycloak_oidc_alias }}' may be missing from realm '{{ chattool_keycloak_realm }}'. Re-run: - ./es_auto_installer.sh install app_keycloak_config --only --env + ./toolkit_manager.sh install app_keycloak_config --only --env success_msg: "app_keycloak_config: identity provider '{{ chattool_keycloak_oidc_alias }}' configured" quiet: true when: chattool_keycloak_oidc_endpoint | default('', true) | string | trim | length > 0 diff --git a/deployment/roles/app_mcp_gateway/defaults/main.yaml b/deployment/roles/app_mcp_gateway/defaults/main.yaml index 5a43b84e..28ab6df4 100644 --- a/deployment/roles/app_mcp_gateway/defaults/main.yaml +++ b/deployment/roles/app_mcp_gateway/defaults/main.yaml @@ -79,11 +79,11 @@ mcp_enabled: false # pipelines//config. edp_enabled: false # app_edp edp_namespace: "edp" # app_edp routing_mode: "subdomain" # global -ui_domain_name: "{{ base_domain_name | default('solutions.ai') }}" # app_ui +ui_domain_name: "{{ base_domain_name | default('inteltoolkits.ai') }}" # app_ui keycloak_namespace: "keycloak" # core/keycloak credentials_secret_name: "chattool-credentials" # app_keycloak_config chattool_keycloak_realm: "ChatbotToolkit" # app_keycloak_config -chattool_keycloak_domain_name: "{{ (base_domain_name | default('solutions.ai')) if (routing_mode | default('subdomain')) == 'path' else 'keycloak.' ~ (base_domain_name | default('solutions.ai')) }}" # app_keycloak_config +chattool_keycloak_domain_name: "{{ (base_domain_name | default('inteltoolkits.ai')) if (routing_mode | default('subdomain')) == 'path' else 'keycloak.' ~ (base_domain_name | default('inteltoolkits.ai')) }}" # app_keycloak_config chattool_keycloak_default_path_prefix: "{{ keycloak_path | default('/keycloak') }}" # app_keycloak_config chattool_keycloak_path_prefix: "{{ chattool_keycloak_default_path_prefix if (routing_mode | default('subdomain')) == 'path' else '' }}" # app_keycloak_config rag_tmp_dir: "{{ tmp_dir }}/rag" # app_pre_install (derived from tmp_dir) diff --git a/deployment/roles/app_pipeline/defaults/main.yaml b/deployment/roles/app_pipeline/defaults/main.yaml index 717b905a..188fca62 100644 --- a/deployment/roles/app_pipeline/defaults/main.yaml +++ b/deployment/roles/app_pipeline/defaults/main.yaml @@ -66,11 +66,11 @@ nats_namespace: "nats" # app_nats keycloak_namespace: "keycloak" # core/keycloak chattool_keycloak_realm: "ChatbotToolkit" # app_keycloak_config vector_databases_enabled: false # app_vector_databases -ui_domain_name: "{{ base_domain_name | default('solutions.ai') }}" # app_ui +ui_domain_name: "{{ base_domain_name | default('inteltoolkits.ai') }}" # app_ui chattool_keycloak_default_path_prefix: "{{ keycloak_path | default('/keycloak') }}" # app_keycloak_config chattool_keycloak_path_prefix: "{{ chattool_keycloak_default_path_prefix if (routing_mode | default('subdomain')) == 'path' else '' }}" # app_keycloak_config ui_keycloak_realm: "ChatbotToolkit" # app_ui -vector_databases_vector_store: "redis-cluster" # app_vector_databases +vector_databases_vector_store: "milvus" # app_vector_databases vector_databases_vector_datatype: "FLOAT32" # app_vector_databases vector_databases_vector_dims: 768 # app_vector_databases istio_enabled: false # global 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 b9d54f23..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.rag.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/defaults/main.yaml b/deployment/roles/app_post_install/defaults/main.yaml index 29cb9b1e..ec3cd9b8 100644 --- a/deployment/roles/app_post_install/defaults/main.yaml +++ b/deployment/roles/app_post_install/defaults/main.yaml @@ -20,11 +20,11 @@ data_consistency_no_fail: false data_consistency_install_report: true # --- Cross-role shared defaults - Owned by other roles; declared here so this role is standalone-runnable. --- -edp_minio_domain_name: "seaweedfs.{{ base_domain_name | default('solutions.ai') }}" # app_edp -chattool_keycloak_domain_name: "{{ (base_domain_name | default('solutions.ai')) if (routing_mode | default('subdomain')) == 'path' else 'keycloak.' ~ (base_domain_name | default('solutions.ai')) }}" # app_keycloak_config +edp_minio_domain_name: "seaweedfs.{{ base_domain_name | default('inteltoolkits.ai') }}" # app_edp +chattool_keycloak_domain_name: "{{ (base_domain_name | default('inteltoolkits.ai')) if (routing_mode | default('subdomain')) == 'path' else 'keycloak.' ~ (base_domain_name | default('inteltoolkits.ai')) }}" # app_keycloak_config chattool_keycloak_default_path_prefix: "{{ keycloak_path | default('/keycloak') }}" # app_keycloak_config chattool_keycloak_path_prefix: "{{ chattool_keycloak_default_path_prefix if (routing_mode | default('subdomain')) == 'path' else '' }}" # app_keycloak_config -ui_domain_name: "{{ base_domain_name | default('solutions.ai') }}" # app_ui +ui_domain_name: "{{ base_domain_name | default('inteltoolkits.ai') }}" # app_ui rag_tmp_dir: "{{ tmp_dir }}/rag" # app_pre_install (derived from tmp_dir) rag_log_dir: "{{ log_dir }}/rag" chat_history_namespace: "chat-history" # app_chat_history diff --git a/deployment/roles/app_post_install/tasks/data_consistency.yaml b/deployment/roles/app_post_install/tasks/data_consistency.yaml index fb47572f..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: @@ -61,14 +61,14 @@ # Before the gate below, so a refused run is not also the run that leaves the # directory behind. -- name: "app_post_install | Remove RAG temporary work directory" +- name: "app_post_install | Remove the Chatbot Toolkit temporary work directory" ansible.builtin.file: path: "{{ rag_tmp_dir }}" state: absent - 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_post_install/tasks/install.yaml b/deployment/roles/app_post_install/tasks/install.yaml index b9603ba2..a3f2b664 100644 --- a/deployment/roles/app_post_install/tasks/install.yaml +++ b/deployment/roles/app_post_install/tasks/install.yaml @@ -20,12 +20,12 @@ ansible.builtin.debug: msg: | ====================================================== - RAG Deployment — INSTALL {{ 'SUCCEEDED' if check_pods_healthy | default(false) | bool else 'COMPLETED' }} + Chatbot Toolkit — INSTALL {{ 'SUCCEEDED' if check_pods_healthy | default(false) | bool else 'COMPLETED' }} ====================================================== UI: https://{{ ui_domain_name }} Keycloak: https://{{ chattool_keycloak_domain_name }}{{ chattool_keycloak_path_prefix }} {% if telemetry_enabled | default(false) %} - Grafana: https://{{ telemetry_domain_name | default('grafana.solutions.ai') }} + Grafana: https://{{ telemetry_domain_name | default('grafana.inteltoolkits.ai') }} {% endif %} Namespaces: {{ enabled_namespaces | unique | join(', ') }} diff --git a/deployment/roles/app_post_install/vars/openshift.yaml b/deployment/roles/app_post_install/vars/openshift.yaml index 874d131a..39109280 100644 --- a/deployment/roles/app_post_install/vars/openshift.yaml +++ b/deployment/roles/app_post_install/vars/openshift.yaml @@ -18,6 +18,10 @@ _post_install_metrics_exceptions: namespace: "{{ nats_namespace }}" pods: {app.kubernetes.io/name: nats, app.kubernetes.io/instance: nats} port: 7777 + - name: milvus + namespace: "{{ vector_databases_namespace }}" + pods: {app.kubernetes.io/name: milvus, app.kubernetes.io/instance: milvus} + port: 9091 - name: redis-cluster namespace: "{{ vector_databases_namespace }}" pods: {app.kubernetes.io/name: redis-cluster, app.kubernetes.io/instance: vdb} 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/defaults/main.yaml b/deployment/roles/app_pre_install/defaults/main.yaml index 971a71a3..8eaf78b6 100644 --- a/deployment/roles/app_pre_install/defaults/main.yaml +++ b/deployment/roles/app_pre_install/defaults/main.yaml @@ -18,12 +18,12 @@ reranking_model_name: "" # app_inference_models # "auto-detect", and load_settings.yaml keys the detection gate off that. # --- Cross-role shared defaults - declared here for standalone runs. --- -ui_domain_name: "{{ base_domain_name | default('solutions.ai') }}" # app_ui -chattool_keycloak_domain_name: "{{ (base_domain_name | default('solutions.ai')) if (routing_mode | default('subdomain')) == 'path' else 'keycloak.' ~ (base_domain_name | default('solutions.ai')) }}" # app_keycloak_config +ui_domain_name: "{{ base_domain_name | default('inteltoolkits.ai') }}" # app_ui +chattool_keycloak_domain_name: "{{ (base_domain_name | default('inteltoolkits.ai')) if (routing_mode | default('subdomain')) == 'path' else 'keycloak.' ~ (base_domain_name | default('inteltoolkits.ai')) }}" # app_keycloak_config chattool_keycloak_default_path_prefix: "{{ keycloak_path | default('/keycloak') }}" # app_keycloak_config chattool_keycloak_path_prefix: "{{ chattool_keycloak_default_path_prefix if (routing_mode | default('subdomain')) == 'path' else '' }}" # app_keycloak_config -edp_minio_domain_name: "seaweedfs.{{ base_domain_name | default('solutions.ai') }}" # app_edp -edp_minio_api_domain_name: "s3.{{ base_domain_name | default('solutions.ai') }}" # app_edp +edp_minio_domain_name: "seaweedfs.{{ base_domain_name | default('inteltoolkits.ai') }}" # app_edp +edp_minio_api_domain_name: "s3.{{ base_domain_name | default('inteltoolkits.ai') }}" # app_edp edp_seaweedfs_path_prefix: "" # app_edp routing_mode: subdomain # solution_config (subdomain | path) secure_logs: true # global @@ -43,7 +43,7 @@ llm_endpoint: "" # app_inference_models # owning role. --- vector_databases_namespace: "vdb" # app_vector_databases vector_databases_helm_release_name: "vdb" # app_vector_databases -vector_databases_vector_store: "redis-cluster" # app_vector_databases (redis-cluster | mssql | pgvector | milvus) +vector_databases_vector_store: "milvus" # app_vector_databases (milvus | redis-cluster | mssql | pgvector) chat_history_namespace: "chat-history" # app_chat_history chat_history_helm_release_name: "chat-history" # app_chat_history edp_namespace: "edp" # app_edp diff --git a/deployment/roles/app_pre_install/tasks/teardown.yaml b/deployment/roles/app_pre_install/tasks/teardown.yaml index 53c07574..74e5c6af 100644 --- a/deployment/roles/app_pre_install/tasks/teardown.yaml +++ b/deployment/roles/app_pre_install/tasks/teardown.yaml @@ -9,7 +9,7 @@ name: app_check_pods tasks_from: teardown.yaml -- name: "app_pre_install | Remove RAG log and work directories (credentials, certs, temp manifests)" +- name: "app_pre_install | Remove the Chatbot Toolkit log and work directories (credentials, certs, temp manifests)" ansible.builtin.file: path: "{{ item }}" state: absent 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 941c16ec..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.rag.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/roles/app_ui/defaults/main.yaml b/deployment/roles/app_ui/defaults/main.yaml index acbef183..56abf482 100644 --- a/deployment/roles/app_ui/defaults/main.yaml +++ b/deployment/roles/app_ui/defaults/main.yaml @@ -8,7 +8,7 @@ # --- Deployment target --- ui_namespace: "rag-ui" -ui_domain_name: "{{ base_domain_name | default('solutions.ai') }}" +ui_domain_name: "{{ base_domain_name | default('inteltoolkits.ai') }}" # --- Helm --- ui_helm_version: "{{ helm_version }}" @@ -36,15 +36,15 @@ ui_chat_maintenance_mode: "{{ ui_chat_no_llm_pipeline }}" ui_path_prefix: "" # --- Cross-role shared defaults - Owned by other roles; declared here so this role is standalone-runnable. --- -edp_minio_api_domain_name: "s3.{{ base_domain_name | default('solutions.ai') }}" # app_edp +edp_minio_api_domain_name: "s3.{{ base_domain_name | default('inteltoolkits.ai') }}" # app_edp edp_storage_type: "seaweedfs" # app_edp — gates UI useBearerTokenAuth (S3_SEND_BEARER_TOKEN) edp_rbac_enabled: false # app_edp — gates UI useBearerTokenAuth (S3_SEND_BEARER_TOKEN) -chattool_keycloak_domain_name: "{{ (base_domain_name | default('solutions.ai')) if (routing_mode | default('subdomain')) == 'path' else 'keycloak.' ~ (base_domain_name | default('solutions.ai')) }}" # app_keycloak_config +chattool_keycloak_domain_name: "{{ (base_domain_name | default('inteltoolkits.ai')) if (routing_mode | default('subdomain')) == 'path' else 'keycloak.' ~ (base_domain_name | default('inteltoolkits.ai')) }}" # app_keycloak_config chattool_keycloak_default_path_prefix: "{{ keycloak_path | default('/keycloak') }}" # app_keycloak_config chattool_keycloak_path_prefix: "{{ chattool_keycloak_default_path_prefix if (routing_mode | default('subdomain')) == 'path' else '' }}" # app_keycloak_config istio_enabled: false # global enforce_pss: false # global -telemetry_domain_name: "grafana.solutions.ai" # app_pre_install (solution_config) +telemetry_domain_name: "grafana.inteltoolkits.ai" # app_pre_install (solution_config) telemetry_path_prefix: "" # app_pre_install (solution_config); "/grafana" with routing_mode: path edp_s3_path_prefix: "/s3" # app_pre_install (solution_config) rag_tmp_dir: "{{ tmp_dir }}/rag" # app_pre_install (derived from tmp_dir) diff --git a/deployment/roles/app_ui/templates/values.yaml.j2 b/deployment/roles/app_ui/templates/values.yaml.j2 index 90800177..a275988b 100644 --- a/deployment/roles/app_ui/templates/values.yaml.j2 +++ b/deployment/roles/app_ui/templates/values.yaml.j2 @@ -61,7 +61,7 @@ httpRoute: name: {{ gateway_name | default('eg-gateway') }} namespace: {{ gateway_namespace | default('envoy-gateway-system') }} # Bind to the apex listener (bare base_domain_name); the wildcard listener only - # matches subdomains, so sectionName must be https-apex for solutions.ai. + # matches subdomains, so sectionName must be https-apex for inteltoolkits.ai. sectionName: https-apex hostnames: - *dname diff --git a/deployment/roles/app_vector_databases/defaults/main.yaml b/deployment/roles/app_vector_databases/defaults/main.yaml index c5a45c96..b6f5c0e9 100644 --- a/deployment/roles/app_vector_databases/defaults/main.yaml +++ b/deployment/roles/app_vector_databases/defaults/main.yaml @@ -10,7 +10,7 @@ vector_databases_namespace: "vdb" # --- Vector-store selection --- -vector_databases_vector_store: "redis-cluster" # redis-cluster | mssql | pgvector | milvus +vector_databases_vector_store: "milvus" # milvus | redis-cluster | mssql | pgvector vector_databases_vector_datatype: "FLOAT32" # vector_databases_vector_dims is auto-detected from the embedding model's # hidden_size. This default acts as a fallback when auto-detection fails @@ -38,7 +38,7 @@ vector_databases_stores: replicas: 0 image: repository: "redis" - tag: "8.2.2" + tag: "8.2.11" pullPolicy: "IfNotPresent" resources: requests: diff --git a/deployment/roles/app_vector_databases/templates/values.yaml.j2 b/deployment/roles/app_vector_databases/templates/values.yaml.j2 index f4a5c8ea..4532cbbe 100644 --- a/deployment/roles/app_vector_databases/templates/values.yaml.j2 +++ b/deployment/roles/app_vector_databases/templates/values.yaml.j2 @@ -24,6 +24,10 @@ milvus: persistence: storageClass: "{{ milvus.persistence.storageClass | default('') }}" size: "{{ milvus.persistence.size | default('10Gi') }}" +{% if not _vector_databases_fixed_uids | bool %} + # The image's files are 999:999 with no access for others; the SCC's UID gets in through the group. + supplementalGroups: [999] +{% endif %} {% endif %} {% if vector_databases_vector_store == "mssql" %} @@ -54,7 +58,7 @@ redis-cluster: redis: image: repository: {{ redis.image.repository | default('redis') }} - tag: "{{ redis.image.tag | default('8.2.2') }}" + tag: "{{ redis.image.tag | default('8.2.11') }}" pullPolicy: {{ redis.image.pullPolicy | default('IfNotPresent') }} resources: requests: diff --git a/deployment/scripts/calculate_replicas.py b/deployment/scripts/calculate_replicas.py index fab2dbfb..7cf83310 100644 --- a/deployment/scripts/calculate_replicas.py +++ b/deployment/scripts/calculate_replicas.py @@ -49,10 +49,10 @@ 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 RAG core services memory request. Covers the platform + RAG-glue namespaces + # Set core services memory request. Covers the platform + Chatbot Toolkit namespaces # that ship in every install (chatqna usvcs, istio, keycloak, envoy-gateway, kube-system, # auth-apisix, minio, postgresql, plus solutions-only additions kserve, lws-system, # cert-manager, metallb-system, envoy-ai-gateway-system, cnpg-system). @@ -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 688d6a1f..27d93761 100755 --- a/deployment/scripts/query_deployment_manifest.sh +++ b/deployment/scripts/query_deployment_manifest.sh @@ -5,9 +5,9 @@ # 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 "=== ERAG Deployment Manifest ===" +echo "=== Chatbot Toolkit Deployment Manifest ===" echo # Check if kubectl can connect to cluster 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 f6e396b5..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/deploy/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 9de225d4..32b3861b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -5,15 +5,15 @@ 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](meet/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 | Guide | What it covers | |-------|----------------| -| [Meet Intel® Chatbot Toolkit](meet/meet.md) | What it is, why it exists, when to choose it, and which repository to start from | -| [FAQ](faq.md) | Short answers to the questions that come up most | -| [Glossary](glossary.md) | Every term used in these guides, defined once | +| [Meet Intel® Chatbot Toolkit](overview/meet.md) | What it is, why it exists, when to choose it, and which repository to start from | +| [FAQ](faq-and-troubleshooting/frequently-asked-questions.md) | Short answers to the questions that come up most | +| [Glossary](reference/glossary.md) | Every term used in these guides, defined once | ## Get started @@ -21,8 +21,8 @@ Check your machine meets the bar, then deploy the stack and ingest a document. | Guide | What it covers | |-------|----------------| -| [Prerequisites](quickstart/prerequisites.md) | RAG hardware sizing, software access, and the limited single-user option | -| [Quick Start](quickstart/quickstart.md) | `init erag` to a working assistant, end to end | +| [Prerequisites](getting-started/prerequisites.md) | RAG hardware sizing and software access | +| [Quick Start](getting-started/quickstart.md) | `init chatbot` to a working assistant, end to end | ## Deploy @@ -30,9 +30,9 @@ Install the toolkit, pick a pipeline, and take it onto a partner platform. | Guide | What it covers | |-------|----------------| -| [Deploy Intel® Chatbot Toolkit](deploy/install_rag.md) | Step-by-step install, endpoints, credentials, and teardown | -| [Pipelines](deploy/pipelines.md) | The five flavours, ChatQnA variants, and how to switch between them | -| [Deploy on VMware](deploy/vmware.md) | Running the chatbot on VMware vSphere | +| [Deploy Intel® Chatbot Toolkit](deployment/install-rag.md) | Step-by-step install, endpoints, credentials, and teardown | +| [Pipelines](deployment/pipelines.md) | The five flavours, ChatQnA variants, and how to switch between them | +| [Deploy on VMware](deployment/vmware.md) | Running the chatbot on VMware vSphere | ## Customize @@ -40,14 +40,14 @@ Change models, wire up identity and external data sources, and tune every knob. | Guide | What it covers | |-------|----------------| -| [Configuration](customize/configuration.md) | Every option in `config.erag.yaml`, and how overrides resolve | -| [Models](customize/models.md) | Changing the LLM, embedding, and reranking models; multilingual and accuracy features | -| [Authentication](customize/auth.md) | Keycloak SSO with Microsoft Entra ID, multi-factor auth, and Active Directory federation | -| [SharePoint](customize/sharepoint.md) | Ingesting from SharePoint Online, scheduled sync, and per-user site filtering | -| [MCP Integration](customize/mcp.md) | Exposing retrieval and ingestion to AI agents over Model Context Protocol | -| [Object Store](customize/object_store.md) | EDP storage backends, and serving documents from NetApp ONTAP S3 | -| [AWS S3 and SQS Setup](customize/aws_s3.md) | Creating the buckets, queue, and IAM user for external S3 with the AWS CLI | -| [Building Images](customize/images.md) | Building the component images locally and pointing the deployment at your registry | +| [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 | +| [MCP Integration](configuration/mcp.md) | Exposing retrieval and ingestion to AI agents over Model Context Protocol | +| [Object Store](configuration/object-store.md) | EDP storage backends, and serving documents from NetApp ONTAP S3 | +| [AWS S3 and SQS Setup](configuration/aws-s3.md) | Creating the buckets, queue, and IAM user for external S3 with the AWS CLI | +| [Building Images](configuration/images.md) | Building the component images locally and pointing the deployment at your registry | ## Operate @@ -55,10 +55,10 @@ Watch it, tune it, and fix it once it is running. | Guide | What it covers | |-------|----------------| -| [Telemetry](operate/telemetry.md) | The RAG Grafana dashboards and where to find logs | -| [Performance](operate/performance.md) | Per-step resources, replica sizing, autoscaling, and vector-database tuning | -| [Backup and Restore](operate/backup.md) | Enabling it, running a backup or restore, what is and is not captured, and the identity realm | -| [Troubleshooting](operate/troubleshooting.md) | Common symptoms, their causes, and the debug tool | +| [Telemetry](configuration/telemetry.md) | The RAG Grafana dashboards and where to find logs | +| [Performance](configuration/performance.md) | Per-step resources, replica sizing, autoscaling, and vector-database tuning | +| [Backup and Restore](deployment/backup-and-restore.md) | Enabling it, running a backup or restore, what is and is not captured, and the identity realm | +| [Troubleshooting](faq-and-troubleshooting/troubleshooting.md) | Common symptoms, their causes, and the debug tool | ## Reference @@ -67,8 +67,9 @@ How the toolkit is built and what it exposes. | Guide | What it covers | |-------|----------------| | [Architecture](reference/architecture.md) | Components, roles, namespaces, pipeline composition, and request flow | -| [Container Images](reference/docker_images.md) | Every image the deployment pulls, with its build context | -| [Service Mesh](reference/mesh.md) | How RAG namespaces join the Istio ambient mesh, and the current mTLS posture | +| [Container Images](reference/container-images.md) | Every image the deployment pulls, with its build context | +| [Service Mesh](reference/service-mesh.md) | How RAG namespaces join the Istio ambient mesh, and the current mTLS posture | +| [Notices](reference/notices.md) | Third-party software, model card guidance, and Intel's Human Rights Principles | ## User guides diff --git a/docs/images/architecture_chatqna.svg b/docs/assets/architecture_chatqna.svg similarity index 100% rename from docs/images/architecture_chatqna.svg rename to docs/assets/architecture_chatqna.svg diff --git a/docs/images/architecture_docsum.svg b/docs/assets/architecture_docsum.svg similarity index 100% rename from docs/images/architecture_docsum.svg rename to docs/assets/architecture_docsum.svg diff --git a/docs/images/banner.png b/docs/assets/banner.png similarity index 100% rename from docs/images/banner.png rename to docs/assets/banner.png diff --git a/docs/images/keycloak/OTP_Policy.png b/docs/assets/keycloak/OTP_Policy.png similarity index 100% rename from docs/images/keycloak/OTP_Policy.png rename to docs/assets/keycloak/OTP_Policy.png diff --git a/docs/images/keycloak/authentication_browser.png b/docs/assets/keycloak/authentication_browser.png similarity index 100% rename from docs/images/keycloak/authentication_browser.png rename to docs/assets/keycloak/authentication_browser.png diff --git a/docs/images/keycloak/authentication_flow.png b/docs/assets/keycloak/authentication_flow.png similarity index 100% rename from docs/images/keycloak/authentication_flow.png rename to docs/assets/keycloak/authentication_flow.png diff --git a/docs/images/keycloak/mobile_authenticator_setup.png b/docs/assets/keycloak/mobile_authenticator_setup.png similarity index 100% rename from docs/images/keycloak/mobile_authenticator_setup.png rename to docs/assets/keycloak/mobile_authenticator_setup.png diff --git a/docs/images/keycloak/required_actions.png b/docs/assets/keycloak/required_actions.png similarity index 100% rename from docs/images/keycloak/required_actions.png rename to docs/assets/keycloak/required_actions.png diff --git a/docs/microservices_architecture.png b/docs/assets/microservices_architecture.png similarity index 100% rename from docs/microservices_architecture.png rename to docs/assets/microservices_architecture.png diff --git a/docs/images/telemetry/dashboard_01_services_details.png b/docs/assets/telemetry/dashboard_01_services_details.png similarity index 100% rename from docs/images/telemetry/dashboard_01_services_details.png rename to docs/assets/telemetry/dashboard_01_services_details.png diff --git a/docs/images/telemetry/dashboard_02_services_edp.png b/docs/assets/telemetry/dashboard_02_services_edp.png similarity index 100% rename from docs/images/telemetry/dashboard_02_services_edp.png rename to docs/assets/telemetry/dashboard_02_services_edp.png diff --git a/docs/images/telemetry/dashboard_03_hpa.png b/docs/assets/telemetry/dashboard_03_hpa.png similarity index 100% rename from docs/images/telemetry/dashboard_03_hpa.png rename to docs/assets/telemetry/dashboard_03_hpa.png diff --git a/docs/images/telemetry/dashboard_04_llm_inference.png b/docs/assets/telemetry/dashboard_04_llm_inference.png similarity index 100% rename from docs/images/telemetry/dashboard_04_llm_inference.png rename to docs/assets/telemetry/dashboard_04_llm_inference.png diff --git a/docs/images/telemetry/dashboards.png b/docs/assets/telemetry/dashboards.png similarity index 100% rename from docs/images/telemetry/dashboards.png rename to docs/assets/telemetry/dashboards.png diff --git a/docs/images/telemetry/explore_alerts.png b/docs/assets/telemetry/explore_alerts.png similarity index 100% rename from docs/images/telemetry/explore_alerts.png rename to docs/assets/telemetry/explore_alerts.png diff --git a/docs/images/telemetry/explore_logs.png b/docs/assets/telemetry/explore_logs.png similarity index 100% rename from docs/images/telemetry/explore_logs.png rename to docs/assets/telemetry/explore_logs.png diff --git a/docs/images/telemetry/login.png b/docs/assets/telemetry/login.png similarity index 100% rename from docs/images/telemetry/login.png rename to docs/assets/telemetry/login.png diff --git a/docs/images/vmware-logo.png b/docs/assets/vmware-logo.png similarity index 100% rename from docs/images/vmware-logo.png rename to docs/assets/vmware-logo.png diff --git a/docs/images/yt_thumbnail.png b/docs/assets/yt_thumbnail.png similarity index 100% rename from docs/images/yt_thumbnail.png rename to docs/assets/yt_thumbnail.png diff --git a/docs/customize/auth.md b/docs/configuration/auth.md similarity index 83% rename from docs/customize/auth.md rename to docs/configuration/auth.md index e1caa295..0636d42f 100644 --- a/docs/customize/auth.md +++ b/docs/configuration/auth.md @@ -23,7 +23,7 @@ MFA using Google Authenticator can be enabled on an already-running deployment t 3. Navigate to **Authentication → Flows**. -![Login page screenshot](../images/keycloak/authentication_flow.png) +![Login page screenshot](../assets/keycloak/authentication_flow.png) 4. Select **Browser** from the Authentication Flows list. @@ -33,7 +33,7 @@ MFA using Google Authenticator can be enabled on an already-running deployment t 6. Set **Browser Conditional OTP** and **OTP Form** to **REQUIRED**. -![Login page screenshot](../images/keycloak/authentication_browser.png) +![Login page screenshot](../assets/keycloak/authentication_browser.png) ### Configure OTP policy @@ -49,7 +49,7 @@ MFA using Google Authenticator can be enabled on an already-running deployment t 3. Click **Save**. -![Login page screenshot](../images/keycloak/OTP_Policy.png) +![Login page screenshot](../assets/keycloak/OTP_Policy.png) ### Enforce MFA for all users @@ -61,15 +61,15 @@ MFA using Google Authenticator can be enabled on an already-running deployment t 4. Click **Save**. -![Login page screenshot](../images/keycloak/required_actions.png) +![Login page screenshot](../assets/keycloak/required_actions.png) Users will be prompted to set up an OTP device the next time they log in. Follow the on-screen instructions to link Google Authenticator, which will then generate 6-digit codes for each login. -![Login page screenshot](../images/keycloak/mobile_authenticator_setup.png) +![Login page screenshot](../assets/keycloak/mobile_authenticator_setup.png) ## Related docs | Topic | Link | |-------|------| | Single Sign-On with Microsoft Entra ID | [sharepoint.md](sharepoint.md) | -| Toolkit Manager configuration | [`../../docs/customize/configuration.md`](https://github.com/intel/toolkit-manager/blob/main/docs/customize/configuration.md) | +| Toolkit Manager configuration | [`../../docs/configuration/configuration.md`](https://github.com/intel/toolkit-manager/blob/main/docs/configuration/configuration.md) | diff --git a/docs/customize/aws_s3.md b/docs/configuration/aws-s3.md similarity index 96% rename from docs/customize/aws_s3.md rename to docs/configuration/aws-s3.md index 4721d700..5b23b211 100644 --- a/docs/customize/aws_s3.md +++ b/docs/configuration/aws-s3.md @@ -71,7 +71,7 @@ POLICY_NAME=edp-s3-access-policy-$SUFFIX bucket_arns() { local path=$1; shift; printf '%s\n' "$@" | jq -R -s -c --arg path "$path" 'split("\n") | map(select(length > 0) | "arn:aws:s3:::" + . + $path)'; } ``` -`https://solutions.ai` in the CORS rule below is the default UI address (`base_domain_name` in `env//global_config.yaml`). Replace it if your deployment uses a different domain. +`https://inteltoolkits.ai` in the CORS rule below is the default UI address (`base_domain_name` in `env//global_config.yaml`). Replace it if your deployment uses a different domain. ### Using More Buckets `READ_WRITE_BUCKETS` and `READ_ONLY_BUCKETS` are space-separated lists of bucket names, and EDP processes documents from every bucket it can access. To create more buckets, add their names to the lists before running the steps below, keeping `$SUFFIX` in each name: @@ -109,7 +109,7 @@ for bucket in $BUCKETS; do "CORSRules": [{ "AllowedHeaders": ["*"], "AllowedMethods": ["GET", "PUT", "POST", "DELETE", "HEAD"], - "AllowedOrigins": ["https://solutions.ai"], + "AllowedOrigins": ["https://inteltoolkits.ai"], "MaxAgeSeconds": 3000 }] }' @@ -220,7 +220,7 @@ edp: Then run deployment as usual, an example for installation from the Toolkit Manager root: ```bash -./es_auto_installer.sh install erag --env +./toolkit_manager.sh install chatbot --env ``` ## Cleanup diff --git a/docs/customize/configuration.md b/docs/configuration/configuration.md similarity index 82% rename from docs/customize/configuration.md rename to docs/configuration/configuration.md index 2aadd05d..a2a74fb1 100644 --- a/docs/customize/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,12 +10,12 @@ RAG-specific settings in `env//config.erag.yaml`. This is the file you edi ## Overview ```bash -./es_auto_installer.sh init erag --env local # seeds config.erag.yaml -vi env/local/config.erag.yaml # (optional) customize -./es_auto_installer.sh install erag --env local # deploys +./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. +Defaults: ChatQnA base, all components enabled, three models (LLM, embedding, reranking), Milvus vector store. Edit when: @@ -38,7 +38,7 @@ Edit when: Types: **chatqna** (RAG with retrieval/rerank/LLM), **docsum** (TextExtractor → TextCompression → TextSplitter → LLM → DocSum), **translation** (ALMA models, preview), **audioqna** (ChatQnA + ASR/TTS). -Variants: **base** (full), **retrieve-rerank** (no LLM, retrieval-only), **upload** (embedding-only, ingestion). See [pipelines.md](../deploy/pipelines.md). +Variants: **base** (full), **retrieve-rerank** (no LLM, retrieval-only), **upload** (embedding-only, ingestion). See [pipelines.md](../deployment/pipelines.md). ## Component enablement @@ -58,7 +58,7 @@ Variants: **base** (full), **retrieve-rerank** (no LLM, retrieval-only), **uploa | `backup_enabled` | `false` | Arms this toolkit's backup profile. Also needs the platform's `velero_enabled: true` and `storage_backend: nfs` or `ceph` — both switches are independent, and either off makes a run a no-op | | `upgrade_backup_max_age_hours` | `6` | How fresh a backup of the installed release an upgrade demands; `install … --force` runs without one, recorded as forced | -See [Backup and Restore](../operate/backup.md) for what is captured, how to run it, and the identity +See [Backup and Restore](../deployment/backup-and-restore.md) for what is captured, how to run it, and the identity realm. ## Inference models @@ -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. @@ -86,13 +86,13 @@ See [models.md](models.md). | Setting | Default | Options | |---------|---------|---------| | `vector_databases_namespace` | `vdb` | | -| `vector_databases_vector_store` | `redis-cluster` | `redis-cluster` \| `mssql` \| `milvus` | +| `vector_databases_vector_store` | `milvus` | `milvus` \| `redis-cluster` \| `mssql` | | `vector_databases_vector_datatype` | `FLOAT32` | | | `vector_databases_vector_dims` | `768` | Auto-detected; override if detection fails | -Backends: **redis-cluster** (production, 1M+ vectors, HA, scalable), **mssql** (SQL Server; RBAC unsupported; EULA prompt on deploy), **milvus**. +Backends: **milvus** (default; standalone, purpose-built vector search), **redis-cluster** (production, 1M+ vectors, HA, scalable), **mssql** (SQL Server; RBAC unsupported; EULA prompt on deploy). -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] @@ -136,7 +136,7 @@ See [`src/comps/vectorstores/CONTRIBUTING.md`](../../src/comps/vectorstores/CONT | `edp_rbac_enabled` | `false` | Enables retrieval RBAC for Redis or Milvus; must be `false` for ONTAP S3 and MSSQL | | `edp_scheduled_sync_enabled` | `false` | For S3-compatible sans SQS | -Backends: **seaweedfs** (in-cluster), **s3** (AWS + SQS), **s3compatible** (ONTAP S3, external MinIO). See [object_store.md](object_store.md). +Backends: **seaweedfs** (in-cluster), **s3** (AWS + SQS), **s3compatible** (ONTAP S3, external MinIO). See [object-store.md](object-store.md). ## Authentication and SSO @@ -175,7 +175,7 @@ See [images.md](images.md). ## Horizontal Pod Autoscaling -`hpa_enabled: true` (default). Scales the guardrails and EDP on Prometheus custom metrics; see [Performance › Horizontal Pod Autoscaling](../operate/performance.md#horizontal-pod-autoscaling). Disable for: fixed workload, manual scaling, resource-constrained. +`hpa_enabled: true` (default). Scales the guardrails and EDP on Prometheus custom metrics; see [Performance › Horizontal Pod Autoscaling](performance.md#horizontal-pod-autoscaling). Disable for: fixed workload, manual scaling, resource-constrained. ## UI @@ -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 @@ -237,7 +237,7 @@ inference_models: # edp_s3_compatible_access_key_id: "" # edp_s3_compatible_secret_access_key: "" # vector_databases_namespace: "vdb" -# vector_databases_vector_store: "redis-cluster" +# vector_databases_vector_store: "milvus" # vector_databases_vector_datatype: "FLOAT32" # vector_databases_vector_dims: 768 # chattool_keycloak_oidc_endpoint: "" @@ -252,10 +252,10 @@ inference_models: ## Changing values -Edit `env//config.erag.yaml` and re-install, or override: `./es_auto_installer.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 -[models.md](models.md) (models, multilingual, tuning), [auth.md](auth.md)/[sharepoint.md](sharepoint.md) (SSO, MFA, AD), [mcp.md](mcp.md) (MCP gateway), [object_store.md](object_store.md) (ONTAP S3), [images.md](images.md) (build images), [pipelines.md](../deploy/pipelines.md) (variants), [performance.md](../operate/performance.md) (tuning), [backup.md](../operate/backup.md) (backup and restore), [platform config](https://github.com/intel/toolkit-manager/blob/main/docs/customize/configuration.md). +[models.md](models.md) (models, multilingual, tuning), [auth.md](auth.md)/[sharepoint.md](sharepoint.md) (SSO, MFA, AD), [mcp.md](mcp.md) (MCP gateway), [object-store.md](object-store.md) (ONTAP S3), [images.md](images.md) (build images), [pipelines.md](../deployment/pipelines.md) (variants), [performance.md](performance.md) (tuning), [backup-and-restore.md](../deployment/backup-and-restore.md) (backup and restore), [platform config](https://github.com/intel/toolkit-manager/blob/main/docs/configuration/configuration.md). diff --git a/docs/customize/images.md b/docs/configuration/images.md similarity index 94% rename from docs/customize/images.md rename to docs/configuration/images.md index e2694af2..a2bd51cb 100644 --- a/docs/customize/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" @@ -126,4 +126,4 @@ This uploads all built images to the registry specified during setup. | Topic | Link | |-------|------| | Image registry map and Dockerfiles | `deployment/images.yaml` | -| Toolkit Manager configuration | [`../../docs/customize/configuration.md`](https://github.com/intel/toolkit-manager/blob/main/docs/customize/configuration.md) | +| Toolkit Manager configuration | [`../../docs/configuration/configuration.md`](https://github.com/intel/toolkit-manager/blob/main/docs/configuration/configuration.md) | diff --git a/docs/customize/mcp.md b/docs/configuration/mcp.md similarity index 97% rename from docs/customize/mcp.md rename to docs/configuration/mcp.md index e1f4b117..c3b0ff39 100644 --- a/docs/customize/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 @@ -316,4 +316,4 @@ The Keycloak admin console is at `https://keycloak.` in `subdo | Topic | Link | |-------|------| | MCP gateway source code and service-level env vars | [`src/mcp_gateway/README.md`](../../src/mcp_gateway/README.md) | -| Pipeline variants | [`../deploy/pipelines.md`](../deploy/pipelines.md) | +| Pipeline variants | [`../deployment/pipelines.md`](../deployment/pipelines.md) | diff --git a/docs/customize/models.md b/docs/configuration/models.md similarity index 88% rename from docs/customize/models.md rename to docs/configuration/models.md index 84ead77c..8a59e3d3 100644 --- a/docs/customize/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 -./es_auto_installer.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 - ./es_auto_installer.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: @@ -200,7 +200,7 @@ Run `./model-manager --help` for the full list of flags and environment variable | Topic | Link | |-------|------| -| Model catalog structure and runtime settings | [`ext/enterprise.ai-inference/docs/configuration/catalog.md`](https://github.com/intel/inference-toolkit/blob/main/docs/configuration/catalog.md) | -| Supported serving runtimes (vLLM, OpenVINO) | [`ext/enterprise.ai-inference/docs/configuration/runtimes.md`](https://github.com/intel/inference-toolkit/blob/main/docs/configuration/runtimes.md) | -| Performance tuning and sizing | [`../operate/performance.md`](../operate/performance.md) | -| Pipeline variants and flavours | [`../deploy/pipelines.md`](../deploy/pipelines.md) | +| Model catalog structure and runtime settings | [`ext/inference-toolkit/docs/configuration/catalog.md`](https://github.com/intel/inference-toolkit/blob/main/docs/configuration/catalog.md) | +| Supported serving runtimes (vLLM, OpenVINO) | [`ext/inference-toolkit/docs/configuration/runtimes.md`](https://github.com/intel/inference-toolkit/blob/main/docs/configuration/runtimes.md) | +| Performance tuning and sizing | [`performance.md`](performance.md) | +| Pipeline variants and flavours | [`../deployment/pipelines.md`](../deployment/pipelines.md) | diff --git a/docs/customize/object_store.md b/docs/configuration/object-store.md similarity index 94% rename from docs/customize/object_store.md rename to docs/configuration/object-store.md index ea4b88b4..792a9047 100644 --- a/docs/customize/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 | |---------|-------------| @@ -45,7 +45,7 @@ edp_s3_sqs_event_queue_url: "https://sqs.us-east-1.amazonaws.com/123456789012/my edp_s3_bucket_name_regex_filter: "" # optional: restrict which buckets EDP tracks ``` -Requires SQS event notifications configured on the S3 bucket for automatic ingestion. To create the buckets, the queue, and the IAM user with the AWS CLI, see [AWS S3 and SQS Setup](aws_s3.md). +Requires SQS event notifications configured on the S3 bucket for automatic ingestion. To create the buckets, the queue, and the IAM user with the AWS CLI, see [AWS S3 and SQS Setup](aws-s3.md). ### S3-compatible (without SQS) @@ -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 -./es_auto_installer.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 @@ -189,7 +189,7 @@ The scheduled task polls buckets for changes at the specified interval and inges | Topic | Link | |-------|------| -| AWS S3 and SQS setup with the AWS CLI | [aws_s3.md](aws_s3.md) | +| AWS S3 and SQS setup with the AWS CLI | [aws-s3.md](aws-s3.md) | | SharePoint integration (another EDP storage source) | [sharepoint.md](sharepoint.md) | -| NetApp ONTAP persistent volumes | [NetApp ONTAP and Trident](https://github.com/intel/toolkit-manager/blob/main/docs/deploy/netapp_ontap.md) | +| NetApp ONTAP persistent volumes | [NetApp ONTAP and Trident](https://github.com/intel/toolkit-manager/blob/main/docs/deployment/netapp-ontap.md) | | EDP source code and detailed settings | [`src/edp/README.md`](../../src/edp/README.md) | diff --git a/docs/operate/performance.md b/docs/configuration/performance.md similarity index 92% rename from docs/operate/performance.md rename to docs/configuration/performance.md index f68f0eca..e774e6be 100644 --- a/docs/operate/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,15 +28,15 @@ 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 vector_databases_namespace: vdb -vector_databases_vector_store: redis-cluster # redis-cluster | mssql | milvus +vector_databases_vector_store: milvus # milvus | redis-cluster | mssql ``` -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 @@ -291,7 +291,7 @@ kubernetes_cpu_policy: nri-balloons # Options: nri-balloons | kubelet-static | `nri-balloons` (default) provides NUMA-aware pinning via the NRI plugin. The installer generates per-node `BalloonsPolicy` CRs based on the topology. -For configuration details see [NRI CPU Balloons](https://github.com/intel/toolkit-manager/blob/main/docs/customize/nri_cpu_balloons.md) in Toolkit Manager docs. +For configuration details see [NRI CPU Balloons](https://github.com/intel/toolkit-manager/blob/main/docs/configuration/nri-cpu-balloons.md) in Toolkit Manager docs. ## Monitoring and Validation diff --git a/docs/customize/sharepoint.md b/docs/configuration/sharepoint.md similarity index 97% rename from docs/customize/sharepoint.md rename to docs/configuration/sharepoint.md index 09e870d7..924b9f19 100644 --- a/docs/customize/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 -./es_auto_installer.sh install erag --env +./toolkit_manager.sh install chatbot --env ``` Re-check the configuration against the live cluster: ```bash -./es_auto_installer.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 @@ -244,4 +244,4 @@ With RBAC disabled, every tracked site is returned to every caller. | Topic | Link | |-------|------| | Single Sign-On setup (required for SharePoint) | [Authentication](auth.md) (Part 1) | -| EDP storage configuration | [object_store.md](object_store.md) | +| EDP storage configuration | [object-store.md](object-store.md) | diff --git a/docs/operate/telemetry.md b/docs/configuration/telemetry.md similarity index 92% rename from docs/operate/telemetry.md rename to docs/configuration/telemetry.md index 236960bc..06762492 100644 --- a/docs/operate/telemetry.md +++ b/docs/configuration/telemetry.md @@ -4,9 +4,9 @@ Intel® Chatbot Toolkit services emit metrics, logs, and traces to the platform ## Login -Visit `https://grafana.` (default: `https://grafana.solutions.ai`). +Visit `https://grafana.` (default: `https://grafana.inteltoolkits.ai`). -![login screenshot](../images/telemetry/login.png) +![login screenshot](../assets/telemetry/login.png) Two sign-in methods: @@ -28,7 +28,7 @@ On the Grafana login page, select **Sign in with Keycloak** and sign in with you Click **Dashboards** in the left pane. Dashboards prefixed with `Chatbot Toolkit` are tailored to Intel® Chatbot Toolkit services. The Grafana instance also provides standard Kubernetes, Node Exporter, and Prometheus Overview dashboards for cluster-level monitoring. -![dashboard](../images/telemetry/dashboards.png) +![dashboard](../assets/telemetry/dashboards.png) Eight dashboards ship with this toolkit, each provisioned by the component that owns it: @@ -51,7 +51,7 @@ The three most-used ones are described below. Overview of resource usage and service activity for selected namespace and services. -![Dashboard Chatbot Toolkit / Services / Details](../images/telemetry/dashboard_01_services_details.png) +![Dashboard Chatbot Toolkit / Services / Details](../assets/telemetry/dashboard_01_services_details.png) Key panels: - **System Resource Utilization**: CPU and memory usage per service @@ -63,7 +63,7 @@ Key panels: Metrics from the Enhanced Data Preparation (EDP) service: ingested documents, links, chunks, and processing statuses. -![Dashboard Chatbot Toolkit / Services / EDP](../images/telemetry/dashboard_02_services_edp.png) +![Dashboard Chatbot Toolkit / Services / EDP](../assets/telemetry/dashboard_02_services_edp.png) Key panels: - **General**: Total ingested files and links, chunks, blocked documents (unsafe content), files in error state @@ -77,7 +77,7 @@ See [EDP documentation](../../src/edp/README.md) for service details. Horizontal Pod Autoscaler activity: replica count, scaling actions over time, and the metrics used for scaling decisions (current value + threshold). -![Dashboard Chatbot Toolkit / HPA](../images/telemetry/dashboard_03_hpa.png) +![Dashboard Chatbot Toolkit / HPA](../assets/telemetry/dashboard_03_hpa.png) The top panel shows current replica count for each HPA-managed service. Below, each service has a section with replica changes over time and the scaling metric. @@ -87,7 +87,7 @@ See [Horizontal Pod Autoscaling](performance.md#horizontal-pod-autoscaling). Intel® Chatbot Toolkit relies on the **Intel® Inference Toolkit** component for LLM model serving. Models are served on vLLM or OpenVINO backends; Grafana provides dashboards for the backend in use. All AI Inference dashboards are tagged with `modelserving`, making them easy to find by filtering dashboards using that tag. -![EnterpriseAIInference / ModelServing / vLLM](../images/telemetry/dashboard_04_llm_inference.png) +![EnterpriseAIInference / ModelServing / vLLM](../assets/telemetry/dashboard_04_llm_inference.png) Example dashboard: `EnterpriseAIInference / ModelServing / vLLM` @@ -101,7 +101,7 @@ Typical panels: In the left panel, select **Explore -> Logs** to access Grafana's integrated log exploration feature. View, search, and filter logs with advanced filtering, real-time streaming, and contextual log inspection. -![Logs Drilldown View](../images/telemetry/explore_logs.png) +![Logs Drilldown View](../assets/telemetry/explore_logs.png) For more on using this feature see [Grafana Logs Drilldown documentation](https://grafana.com/docs/grafana-cloud/visualizations/simplified-exploration/logs/get-started/). diff --git a/docs/operate/backup.md b/docs/deployment/backup-and-restore.md similarity index 92% rename from docs/operate/backup.md rename to docs/deployment/backup-and-restore.md index 32d1e2a8..c35de36a 100644 --- a/docs/operate/backup.md +++ b/docs/deployment/backup-and-restore.md @@ -7,7 +7,7 @@ through the platform's Velero-based backup mechanism. Opt-in and off by default. The platform provides the mechanism (Velero, CSI volume snapshots, the profile-driven engine). This toolkit declares what its own data is and drives that engine against it. See [Toolkit Manager](https://github.com/intel/toolkit-manager)'s -`docs/customize/configuration.md` for the platform settings (`velero_enabled`, +`docs/configuration/configuration.md` for the platform settings (`velero_enabled`, `storage_backend`). ## Enabling it @@ -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 @@ -93,7 +93,7 @@ Or drive the round trip through the three lifecycle stages, which assert what a restore does not otherwise prove: ```bash -cd ext/enterprise.ai-erag/src +cd ext/chatbot-toolkit/src SCENARIO=backup-restore CLUSTER_STATE=before-backup tox -e e2e-scenario # … run the backup above … SCENARIO=backup-restore CLUSTER_STATE=after-backup tox -e e2e-scenario @@ -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](../deploy/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 @@ -223,6 +221,6 @@ pass that check with `--force`: the run would create a second, empty Keycloak re ## Related docs -[Configuration](../customize/configuration.md#backup-and-restore) (`backup_enabled` and the upgrade -gate settings), the platform's `docs/customize/configuration.md` (`velero_enabled`, -`storage_backend`), [Troubleshooting](troubleshooting.md) (issues unrelated to backup specifically). +[Configuration](../configuration/configuration.md#backup-and-restore) (`backup_enabled` and the upgrade +gate settings), the platform's `docs/configuration/configuration.md` (`velero_enabled`, +`storage_backend`), [Troubleshooting](../faq-and-troubleshooting/troubleshooting.md) (issues unrelated to backup specifically). diff --git a/docs/deploy/install_rag.md b/docs/deployment/install-rag.md similarity index 62% rename from docs/deploy/install_rag.md rename to docs/deployment/install-rag.md index 3d3c0f7f..9d78bbf1 100644 --- a/docs/deploy/install_rag.md +++ b/docs/deployment/install-rag.md @@ -10,17 +10,17 @@ One command installs: model servers, vector database, NATS, Enhanced Data Prepar ## Prerequisites -The platform and Intel® Inference Toolkit must be installed first: [Platform Quickstart](https://github.com/intel/toolkit-manager/blob/main/docs/quickstart/quickstart.md). Hardware: [Prerequisites](../quickstart/prerequisites.md). +The platform and Intel® Inference Toolkit must be installed first: [Platform Quickstart](https://github.com/intel/toolkit-manager/blob/main/docs/getting-started/quickstart.md). Hardware: [Prerequisites](../getting-started/prerequisites.md). ## Deployment workflow > [!IMPORTANT] -> Run every command from the **Toolkit Manager** repo root, not from this repository. `init erag` clones this repository into `ext/enterprise.ai-erag` 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 -./es_auto_installer.sh init erag [--env ] [--flavour ] +./toolkit_manager.sh init chatbot [--env ] [--flavour ] ``` | Flavour | Use case | @@ -31,27 +31,27 @@ 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 | |---------|---------|---------| | `pipeline_type` | `chatqna` \| `docsum` \| `translation` | `chatqna` | | `pipeline_variant` | `base` \| `query-rewrite` \| `output_guard` \| `retrieve-rerank` \| `upload` | `base` | | `inference_models` | List: `name` + `role` (`llm` \| `embedding` \| `reranking`) | `llama3-8b-awq`, `nomic-embed`, `bge-reranker-v2-m3` | -| `vector_databases_vector_store` | `redis-cluster` \| `mssql` \| `milvus` | `redis-cluster` | +| `vector_databases_vector_store` | `milvus` \| `redis-cluster` \| `mssql` | `milvus` | | `mcp_enabled` | `true` \| `false` | `false` | | `hpa_enabled` | `true` \| `false` | `true` | -Gated models: `export HF_TOKEN="hf_..."`. Minimum hardware (≤60 cores / 128 GB): [Prerequisites - Deploying on Minimum Hardware](../quickstart/prerequisites.md#deploying-on-minimum-hardware). +Gated models: `export HF_TOKEN="hf_..."`. ### Step 3 - Deploy ```bash -./es_auto_installer.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 @@ -75,14 +75,14 @@ Gateway binds ports 80/443 on the cluster node via `hostPort`. **On cluster node:** ```bash -echo "127.0.0.1 solutions.ai grafana.solutions.ai keycloak.solutions.ai s3.solutions.ai seaweedfs.solutions.ai" | sudo tee -a /etc/hosts +echo "127.0.0.1 inteltoolkits.ai grafana.inteltoolkits.ai keycloak.inteltoolkits.ai s3.inteltoolkits.ai seaweedfs.inteltoolkits.ai" | sudo tee -a /etc/hosts ``` -Base domain from `base_domain_name` in `env//global_config.yaml` (default: `solutions.ai`). Each subdomain explicit - wildcards unsupported in `/etc/hosts`. +Base domain from `base_domain_name` in `env//global_config.yaml` (default: `inteltoolkits.ai`). Each subdomain explicit - wildcards unsupported in `/etc/hosts`. **From another machine:** `ssh -L 443:localhost:443 user@`, then add same line to local `/etc/hosts`. -URLs: `https://solutions.ai` (RAG UI), `https://keycloak.solutions.ai`, `https://grafana.solutions.ai`, `https://seaweedfs.solutions.ai`, `https://s3.solutions.ai`. +URLs: `https://inteltoolkits.ai` (RAG UI), `https://keycloak.inteltoolkits.ai`, `https://grafana.inteltoolkits.ai`, `https://seaweedfs.inteltoolkits.ai`, `https://s3.inteltoolkits.ai`. > [!IMPORTANT] > With the default self-signed certificates, visit `https://s3.` in your browser and accept the warning **before** ingesting documents. Without it, uploads fail in the browser with no error from the cluster. @@ -109,15 +109,15 @@ Secure credentials: `ansible-vault encrypt env//logs/rag/default_credentia ## Configure the deployment -Edit `env//config.erag.yaml` and re-run `./es_auto_installer.sh install erag --env `. Updates only affected components. See: [Pipeline Configuration](pipelines.md), [Advanced Configuration Guide](../customize/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 -Use **Data Ingestion** tab in **Admin Panel** (admin only; ChatQnA and AudioQnA only). User guides: [AudioQnA](../Intel_Chatbot_Toolkit_AudioQnA_User_Guide.pdf), [ChatQnA](../Intel_Chatbot_Toolkit_ChatQnA_User_Guide.pdf), [DocSum](../Intel_Chatbot_Toolkit_DocSum_User_Guide.pdf). Telemetry: [Telemetry Guide](../operate/telemetry.md). +Use **Data Ingestion** tab in **Admin Panel** (admin only; ChatQnA and AudioQnA only). User guides: [AudioQnA](../Intel_Chatbot_Toolkit_AudioQnA_User_Guide.pdf), [ChatQnA](../Intel_Chatbot_Toolkit_ChatQnA_User_Guide.pdf), [DocSum](../Intel_Chatbot_Toolkit_DocSum_User_Guide.pdf). Telemetry: [Telemetry Guide](../configuration/telemetry.md). ## 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,41 +127,41 @@ chattool_keycloak_oidc_client_secret: "" chattool_keycloak_oidc_tenant_id: "" # additionally enables SharePoint ``` -All empty = disabled. Partial config rejected. Apply: `./es_auto_installer.sh install erag --env `. Full procedure: [Single Sign-On and SharePoint Integration](../customize/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 -./es_auto_installer.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 | Issue | Resolution | |-------|------------| -| **Test deployment** | ChatQnA: `cd .../ext/enterprise.ai-erag/deployment && ./scripts/test_connection.sh`. DocSum: `./scripts/test_docsum.sh`. Translation: `./scripts/test_translation.sh`. | -| **Debug tool** | [Debug Tool Guide](../operate/troubleshooting.md) collects diagnostics. | -| **Status check** | `./es_auto_installer.sh status --env ` | -| **Pods stuck pending** | `kubectl describe pod -n `. Minimum hardware: verify [tuning steps](../quickstart/prerequisites.md#deploying-on-minimum-hardware). | +| **Test deployment** | ChatQnA: `cd .../ext/chatbot-toolkit/deployment && ./scripts/test_connection.sh`. DocSum: `./scripts/test_docsum.sh`. Translation: `./scripts/test_translation.sh`. | +| **Debug tool** | [Debug Tool Guide](../faq-and-troubleshooting/troubleshooting.md) collects diagnostics. | +| **Status check** | `./toolkit_manager.sh status --env ` | +| **Pods stuck pending** | `kubectl describe pod -n `. | | **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 -[Prerequisites](../quickstart/prerequisites.md), [Quickstart](../quickstart/quickstart.md), [Pipeline Configuration](pipelines.md), [Configuration Reference](../customize/configuration.md), [Platform Documentation](https://github.com/intel/toolkit-manager/blob/main/docs/README.md). +[Prerequisites](../getting-started/prerequisites.md), [Quickstart](../getting-started/quickstart.md), [Pipeline Configuration](pipelines.md), [Configuration Reference](../configuration/configuration.md), [Platform Documentation](https://github.com/intel/toolkit-manager/blob/main/docs/README.md). diff --git a/docs/deploy/pipelines.md b/docs/deployment/pipelines.md similarity index 81% rename from docs/deploy/pipelines.md rename to docs/deployment/pipelines.md index cad94d67..04cce023 100644 --- a/docs/deploy/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,27 +33,27 @@ 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: `./es_auto_installer.sh install erag --env `. +Deploy: `./toolkit_manager.sh install chatbot --env `. ## Pipeline architecture **ChatQnA (base):** Embedding → Retriever → Reranking → PromptTemplate → LLMGuardInput → LLM. Models (llm-inference ns): `llama3-8b-awq`, `nomic-embed`, `bge-reranker-v2-m3`.
- Intel® Chatbot Toolkit ChatQnA pipeline: the query is embedded, candidate documents are retrieved from the vector database and reranked, input guardrails and prompt templating are applied, and the LLM returns a grounded answer + Intel® Chatbot Toolkit ChatQnA pipeline: the query is embedded, candidate documents are retrieved from the vector database and reranked, input guardrails and prompt templating are applied, and the LLM returns a grounded answer
**DocSum:** TextExtractor → TextCompression → TextSplitter → LLM → DocSum.
- Intel® Chatbot Toolkit DocSum pipeline: an uploaded document is extracted, compressed, and split before the LLM produces a summary + Intel® Chatbot Toolkit DocSum pipeline: an uploaded document is extracted, compressed, and split before the LLM produces a summary
**Translation:** LanguageDetection → PromptTemplate → LLM. Model: `alma-7b-r`. @@ -79,20 +79,20 @@ inference_models: mcp_enabled: false ``` -Deploy: `./es_auto_installer.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: `./es_auto_installer.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 @@ -116,7 +116,7 @@ inference_models: | **Keep embedding model consistent** | Changing embedding changes vector dims; index not auto-rebuilt. Re-ingest all documents. | > [!WARNING] -> Changing the embedding model invalidates the existing vector index. Retrieval will return nothing useful until every document is re-ingested. See [Models](../customize/models.md#what-changes-the-embedding-model). +> Changing the embedding model invalidates the existing vector index. Retrieval will return nothing useful until every document is re-ingested. See [Models](../configuration/models.md#what-changes-the-embedding-model). **When to use variants:** @@ -127,4 +127,4 @@ inference_models: ## Related documentation -[Install RAG Guide](install_rag.md), [Configuration Reference](../customize/configuration.md), [Modular Pipelines Reference](../../deployment/pipelines/README.md). +[Install RAG Guide](install-rag.md), [Configuration Reference](../configuration/configuration.md), [Modular Pipelines Reference](../../deployment/pipelines/README.md). diff --git a/docs/deploy/vmware.md b/docs/deployment/vmware.md similarity index 87% rename from docs/deploy/vmware.md rename to docs/deployment/vmware.md index 152e7397..089ed185 100644 --- a/docs/deploy/vmware.md +++ b/docs/deployment/vmware.md @@ -3,10 +3,10 @@ [← Docs Index](../README.md)

- VMware by Broadcom + VMware by Broadcom

-This guide covers deploying Intel® Chatbot Toolkit onto virtual machines running on VMware vSphere: how many VMs to size, what the hypervisor has to expose for Intel AMX to be usable inside the guests, and the install steps that differ from a bare-metal deployment. The general install flow is unchanged, so read [Deploy Intel® Chatbot Toolkit](install_rag.md) alongside it. +This guide covers deploying Intel® Chatbot Toolkit onto virtual machines running on VMware vSphere: how many VMs to size, what the hypervisor has to expose for Intel AMX to be usable inside the guests, and the install steps that differ from a bare-metal deployment. The general install flow is unchanged, so read [Deploy Intel® Chatbot Toolkit](install-rag.md) alongside it. ## Capacity Requirements @@ -76,29 +76,29 @@ SSH into one of the VMs (for example vm3), clone Toolkit Manager, and let it pre git clone https://github.com/intel/toolkit-manager.git cd toolkit-manager -./es_auto_installer.sh configure -./es_auto_installer.sh init erag +./toolkit_manager.sh configure +./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 -Describe the VMs in `env/local/nodes.yaml` and `env/local/inventory/hosts.yaml`, then let the installer provision the cluster. See the Toolkit Manager [Multi-Node and BYO Cluster guide](https://github.com/intel/toolkit-manager/blob/main/docs/deploy/topologies.md). +Describe the VMs in `env/local/nodes.yaml` and `env/local/inventory/hosts.yaml`, then let the installer provision the cluster. See the Toolkit Manager [Multi-Node and BYO Cluster guide](https://github.com/intel/toolkit-manager/blob/main/docs/deployment/multi-node.md). If vSphere already provides the cluster, set `existing_kubernetes` in `env/local/global_config.yaml` to its kubeconfig path instead. ### 3. Deploy Intel® Chatbot Toolkit ```bash -./es_auto_installer.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). +This pulls in the `infrastructure`, `platform`, and `inference` installer targets first. Full walkthrough → [Deploy Intel® Chatbot Toolkit](install-rag.md). ## Debugging Commands -For comprehensive debugging guidance, see [Troubleshooting](../operate/troubleshooting.md). +For comprehensive debugging guidance, see [Troubleshooting](../faq-and-troubleshooting/troubleshooting.md). | Command | What it does | |---|---| diff --git a/docs/faq.md b/docs/faq-and-troubleshooting/frequently-asked-questions.md similarity index 55% rename from docs/faq.md rename to docs/faq-and-troubleshooting/frequently-asked-questions.md index 768840ba..db142139 100644 --- a/docs/faq.md +++ b/docs/faq-and-troubleshooting/frequently-asked-questions.md @@ -1,8 +1,8 @@ # Frequently Asked Questions -[← Docs Index](README.md) +[← Docs Index](../README.md) -Short answers with links to the full detail. New here? Read [Meet Intel® Chatbot Toolkit](meet/meet.md) first. +Short answers with links to the full detail. New here? Read [Meet Intel® Chatbot Toolkit](../overview/meet.md) first. --- @@ -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](meet/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/enterprise.ai-erag` 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](quickstart/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? @@ -26,15 +26,15 @@ Intel® Chatbot Toolkit itself takes 20 to 30 minutes once the platform is up. A ### What hardware do I need? -On top of the platform: 60 logical cores, 128 GB RAM, and 200 GB disk for a multi-user workload. A limited single-user configuration runs on 32 logical cores and 64 GB RAM for evaluation only, and requires tuning. See [Prerequisites](quickstart/prerequisites.md). +On top of the platform: 60 logical cores, 128 GB RAM, and 200 GB disk for a multi-user workload. See [Prerequisites](../getting-started/prerequisites.md). ### Do I need a GPU or an accelerator? -No. Model serving is tuned for Intel® Xeon® CPUs, including NUMA-aware CPU pinning. +No. It runs on CPUs and is tuned for Intel® Platforms (for example, Intel® Xeon® processors), including NUMA-aware CPU pinning. ### Do I need internet access? -Yes, for container images and model weights. Proxy settings are configured in the platform's `global_config.yaml`. To deploy from your own registry instead, see [Building Images](customize/images.md). +Yes, for container images and model weights. Proxy settings are configured in the platform's `global_config.yaml`. To deploy from your own registry instead, see [Building Images](../configuration/images.md). ### Do I need a Hugging Face token? @@ -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](deploy/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? @@ -54,35 +54,35 @@ A **flavour** is the preset that `init erag --flavour ` seeds your configu ### Can I run more than one pipeline at the same time? -No. One pipeline is deployed at a time. Switching re-composes the service graph and tears down the previous pipeline; the vector store lives in its own namespace and is preserved. See [Pipelines](deploy/pipelines.md#switching-pipelines). +No. One pipeline is deployed at a time. Switching re-composes the service graph and tears down the previous pipeline; the vector store lives in its own namespace and is preserved. See [Pipelines](../deployment/pipelines.md#switching-pipelines). ### 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? -`redis-cluster` (default), `mssql` and `milvus`, selected with `vector_databases_vector_store`. See [Configuration](customize/configuration.md). +`milvus` (default), `redis-cluster` and `mssql`, selected with `vector_databases_vector_store`. See [Configuration](../configuration/configuration.md). ### 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](customize/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? -Embedding dimensions change and the existing index is not rebuilt automatically, so retrieval will return nothing useful. Re-ingest your documents after the change. See [Pipelines - best practices](deploy/pipelines.md#best-practices). +Embedding dimensions change and the existing index is not rebuilt automatically, so retrieval will return nothing useful. Re-ingest your documents after the change. See [Pipelines - best practices](../deployment/pipelines.md#best-practices). ### 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](customize/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? @@ -94,11 +94,11 @@ Yes. Each `--env ` has its own configuration, credentials, and kubeconfig. ### Where are the credentials after installing? -In `env//logs/rag/default_credentials.yaml`. They are one-time passwords; change them after first login. A few service credentials live in Kubernetes secrets instead, listed in [Install](deploy/install_rag.md#credentials). +In `env//logs/rag/default_credentials.yaml`. They are one-time passwords; change them after first login. A few service credentials live in Kubernetes secrets instead, listed in [Install](../deployment/install-rag.md#credentials). ### How do I open the UI? -The gateway binds ports 80 and 443 on the cluster node. Add the base domain and its subdomains to `/etc/hosts` on the machine with the browser, forwarding with `ssh -L 443:localhost:443` if that machine is not the cluster node. See [Install - access the UI](deploy/install_rag.md#access-the-ui). +The gateway binds ports 80 and 443 on the cluster node. Add the base domain and its subdomains to `/etc/hosts` on the machine with the browser, forwarding with `ssh -L 443:localhost:443` if that machine is not the cluster node. See [Install - access the UI](../deployment/install-rag.md#access-the-ui). ### Why does the browser warn about the certificate? @@ -106,19 +106,19 @@ Self-signed certificates are the default. Visit `https://s3.` ### Can I use our corporate identity provider? -Yes. Keycloak federates to Microsoft Entra ID, with multi-factor authentication and Active Directory federation. See [Authentication](customize/auth.md). The same Entra ID app registration also enables SharePoint ingestion. +Yes. Keycloak federates to Microsoft Entra ID, with multi-factor authentication and Active Directory federation. See [Authentication](../configuration/auth.md). The same Entra ID app registration also enables SharePoint ingestion. ### Can it ingest from SharePoint or an object store? -Yes. SharePoint Online with scheduled sync is covered in [SharePoint](customize/sharepoint.md); S3-compatible and NetApp ONTAP S3 backends are covered in [Object Store](customize/object_store.md). +Yes. SharePoint Online with scheduled sync is covered in [SharePoint](../configuration/sharepoint.md); S3-compatible and NetApp ONTAP S3 backends are covered in [Object Store](../configuration/object-store.md). ### Is traffic between services encrypted? -Chatbot namespaces join the platform's Istio ambient mesh, which provides mutual TLS without sidecars. The current posture and its limits are documented in [Mesh](reference/mesh.md). +Chatbot namespaces join the platform's Istio ambient mesh, which provides mutual TLS without sidecars. The current posture and its limits are documented in [Mesh](../reference/service-mesh.md). ### Can AI agents use the retrieval and ingestion capabilities? -Yes, through the Model Context Protocol gateway. It is off by default; set `mcp_enabled: true`. See [MCP](customize/mcp.md). +Yes, through the Model Context Protocol gateway. It is off by default; set `mcp_enabled: true`. See [MCP](../configuration/mcp.md). --- @@ -126,15 +126,15 @@ Yes, through the Model Context Protocol gateway. It is off by default; set `mcp_ ### How do I check that the deployment is healthy? -`./es_auto_installer.sh status --env ` for namespaces, pods, and endpoints, and `./es_auto_installer.sh validate erag --env ` for health checks. The pipeline test scripts under `ext/enterprise.ai-erag/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](operate/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? -Dashboards for per-service traffic, the ingestion pipeline, autoscaling, and LLM inference, alongside the platform dashboards. See [Telemetry](operate/telemetry.md). +Dashboards for per-service traffic, the ingestion pipeline, autoscaling, and LLM inference, alongside the platform dashboards. See [Telemetry](../configuration/telemetry.md). ### An install failed halfway. Can I just re-run it? @@ -142,11 +142,11 @@ Yes. Installs are idempotent, so re-running continues rather than duplicating wo ### How does it scale under load? -Horizontal Pod Autoscaling is enabled by default (`hpa_enabled: true`) and disabled for minimum-hardware deployments. Per-step resources, replica sizing, and vector-database tuning are in [Performance](operate/performance.md). +Horizontal Pod Autoscaling is enabled by default (`hpa_enabled: true`). Per-step resources, replica sizing, and vector-database tuning are in [Performance](../configuration/performance.md). ### 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,8 +154,12 @@ 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](customize/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. -Start with [Troubleshooting](operate/troubleshooting.md), which maps symptoms to causes and includes the debug collection tool. If you need further support, access supporttickets.intel.com +Start with [Troubleshooting](troubleshooting.md), which maps symptoms to causes and includes the debug collection tool. If you need further support, access supporttickets.intel.com + +--- + +*Intel, the Intel logo, and Xeon are trademarks of Intel Corporation or its subsidiaries.* diff --git a/docs/operate/troubleshooting.md b/docs/faq-and-troubleshooting/troubleshooting.md similarity index 83% rename from docs/operate/troubleshooting.md rename to docs/faq-and-troubleshooting/troubleshooting.md index 400a7a5e..0f7cb175 100644 --- a/docs/operate/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 `./es_auto_installer.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`. | @@ -30,8 +30,8 @@ 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](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). | +| 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.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](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](../customize/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 @@ -68,14 +68,14 @@ Common symptoms, causes, and fixes for Intel® Chatbot Toolkit deployments. | Service can't reach another service (connection timeout) | Not in the mesh, or Istio port 15008 blocked by NetworkPolicy. Verify pod has `ambient.istio.io/redirection: enabled` annotation. Check ztunnel logs: `kubectl logs -n istio-system -l app=ztunnel | grep `. | | Ztunnel logs show "policy rejection" | `STRICT` mTLS enforced but source isn't presenting a cert. Verify source pod is in the mesh. If the source can't join the mesh, consider adding a port-level `PERMISSIVE` exception in `PeerAuthentication`. | -See [Mesh](../reference/mesh.md) for troubleshooting Istio issues. +See [Mesh](../reference/service-mesh.md) for troubleshooting Istio issues. ## Debug Tool For comprehensive diagnostics, use the debug tool: ```bash -cd /ext/enterprise.ai-erag/deployment +cd /ext/chatbot-toolkit/deployment python tools/debug_tool.py --config-dir /path/to/env// [--output-dir ] ``` @@ -85,10 +85,10 @@ This collects pod logs, resource descriptions, config files (redacted), and Helm ```bash # Status of all installed components -./es_auto_installer.sh status --env +./toolkit_manager.sh status --env # Validate Intel® Chatbot Toolkit -./es_auto_installer.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 new file mode 100644 index 00000000..b9a0abd4 --- /dev/null +++ b/docs/getting-started/prerequisites.md @@ -0,0 +1,66 @@ +# Prerequisites + +[← Docs Index](../README.md) + +Everything you need before Toolkit Manager installs Intel® Chatbot Toolkit on the platform. + +--- + +## Platform prerequisites + +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: +> - [Platform Prerequisites](https://github.com/intel/toolkit-manager/blob/main/docs/getting-started/prerequisites.md) for base requirements (OS, hardware, tooling, credentials) +> - [Multi-Node & BYO Cluster](https://github.com/intel/toolkit-manager/blob/main/docs/deployment/multi-node.md) for multi-node and bring-your-own-Kubernetes setups + +--- + +## Hardware requirements for RAG + +These are **additional** requirements on top of the platform. Sizing below assumes the platform and Intel® Inference Toolkit are already running. + +### CPU-only deployment + +To deploy Intel® Chatbot Toolkit on CPUs only (for example, Intel® Xeon® processors): + +| Configuration | CPU cores | RAM | Disk | Notes | +|---|---|---|---|---| +| Standard minimum | 60 logical cores | 128 GB | 200 GB | Multi-user production workload | + +> [!NOTE] +> Logical cores = hardware threads (vCPUs), not physical cores. + +--- + +## 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 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. + +- **Multi-node clusters require ReadWriteMany (RWX) storage:** If deploying across multiple nodes, a CSI driver supporting `ReadWriteMany` access mode is required. Toolkit Manager can provision NFS (`storage_backend: nfs`) or NetApp Trident (`storage_backend: netapp-trident`). Single-node deployments use `local-path` by default. See [Platform Storage Documentation](https://github.com/intel/toolkit-manager/blob/main/docs/configuration/configuration.md#storage) for configuration. + +--- + +## Cluster provisioning and storage + +Cluster provisioning, operating system requirements, Kubernetes versions, storage backends, and node topology are owned by **Toolkit Manager**. + +For those topics, see: +- [Platform Prerequisites](https://github.com/intel/toolkit-manager/blob/main/docs/getting-started/prerequisites.md) - OS, tooling, hardware minimums for the platform +- [Platform Quickstart](https://github.com/intel/toolkit-manager/blob/main/docs/getting-started/quickstart.md) - installing the cluster +- [Multi-Node & BYO Cluster](https://github.com/intel/toolkit-manager/blob/main/docs/deployment/multi-node.md) - multi-node and bring-your-own-Kubernetes setups +- [Storage Configuration](https://github.com/intel/toolkit-manager/blob/main/docs/configuration/configuration.md#storage) - NFS, Ceph, NetApp Trident + +--- + +## Next steps + +Once prerequisites are met, proceed to [Quickstart](quickstart.md) to deploy Intel® Chatbot Toolkit. + +--- + +*Intel, the Intel logo, and Xeon are trademarks of Intel Corporation or its subsidiaries.* diff --git a/docs/quickstart/quickstart.md b/docs/getting-started/quickstart.md similarity index 56% rename from docs/quickstart/quickstart.md rename to docs/getting-started/quickstart.md index 5b10f7fd..f81ae8c6 100644 --- a/docs/quickstart/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 @@ -22,43 +22,43 @@ Run from the Toolkit Manager repo root: ```bash git clone https://github.com/intel/toolkit-manager.git cd toolkit-manager -./es_auto_installer.sh configure +./toolkit_manager.sh configure ``` ## 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: ```bash -./es_auto_installer.sh install inference --env local +./toolkit_manager.sh install inference --env local ``` -For multi-node or bring-your-own-Kubernetes, see the [Platform Quickstart](https://github.com/intel/toolkit-manager/blob/main/docs/quickstart/quickstart.md). +For multi-node or bring-your-own-Kubernetes, see the [Platform Quickstart](https://github.com/intel/toolkit-manager/blob/main/docs/getting-started/quickstart.md). ## Step 3 - Initialize the chatbot ```bash -./es_auto_installer.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 -./es_auto_installer.sh init erag --env local --flavour docsum # document summarization -./es_auto_installer.sh init erag --env local --flavour audioqna # voice-enabled ChatQnA -./es_auto_installer.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](../deploy/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: @@ -76,12 +76,10 @@ For gated models (Llama, Mistral, Gemma): export HF_TOKEN="hf_your_token_here" ``` -For the limited single-user deployment (32 cores / 64 GB RAM), see [Prerequisites - Deploying on Minimum Hardware](prerequisites.md#deploying-on-minimum-hardware). - ## Step 5 - Deploy ```bash -./es_auto_installer.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. @@ -91,13 +89,13 @@ Installs: model servers, vector database, RAG microservices, EDP pipeline, UI, K ```bash export KUBECONFIG=$(pwd)/env/local/kubeconfig.yaml kubectl get pods -n llm-inference; kubectl get pods -n chatqna; kubectl get pods -n edp -./es_auto_installer.sh status --env local +./toolkit_manager.sh status --env local ``` Test the pipeline: ```bash -cd ext/enterprise.ai-erag/deployment +cd ext/chatbot-toolkit/deployment ./scripts/test_connection.sh # ChatQnA ./scripts/test_docsum.sh # DocSum ./scripts/test_translation.sh # Translation @@ -110,11 +108,11 @@ Ports 80/443 bind on the cluster node via `hostPort`. **On the cluster node:** ```bash -echo "127.0.0.1 solutions.ai grafana.solutions.ai keycloak.solutions.ai s3.solutions.ai seaweedfs.solutions.ai" | sudo tee -a /etc/hosts +echo "127.0.0.1 inteltoolkits.ai grafana.inteltoolkits.ai keycloak.inteltoolkits.ai s3.inteltoolkits.ai seaweedfs.inteltoolkits.ai" | sudo tee -a /etc/hosts ``` > [!IMPORTANT] -> Every subdomain must be listed explicitly. Wildcards do not work in `/etc/hosts`, and a missing entry shows up as a connection failure in the browser rather than as an error from the cluster. Replace `solutions.ai` with your `base_domain_name` if you changed it. +> Every subdomain must be listed explicitly. Wildcards do not work in `/etc/hosts`, and a missing entry shows up as a connection failure in the browser rather than as an error from the cluster. Replace `inteltoolkits.ai` with your `base_domain_name` if you changed it. **From another machine:** @@ -126,9 +124,9 @@ Then add the same line to your local `/etc/hosts`. **URLs:** -- RAG UI: `https://solutions.ai` -- Keycloak: `https://keycloak.solutions.ai` -- Grafana: `https://grafana.solutions.ai` +- RAG UI: `https://inteltoolkits.ai` +- Keycloak: `https://keycloak.inteltoolkits.ai` +- Grafana: `https://grafana.inteltoolkits.ai` **Credentials:** `env/local/logs/rag/default_credentials.txt` for the UI accounts and `default_credentials.yaml` for the services (one-time passwords; change after first login). @@ -138,21 +136,21 @@ Then add the same line to your local `/etc/hosts`. kubectl -n keycloak get secret platform-bootstrap-admin -o jsonpath='{.data.value}' | base64 -d; echo ``` -The local `admin` signs in on the same login form; see [Telemetry](../operate/telemetry.md#login). +The local `admin` signs in on the same login form; see [Telemetry](../configuration/telemetry.md#login). ## Next steps -- [Install RAG Guide](../deploy/install_rag.md) - full deployment options and troubleshooting -- [Pipeline Configuration](../deploy/pipelines.md) - switch pipelines and variants -- [Configuration Reference](../customize/configuration.md) - model selection, multi-node, external endpoints -- [Data Ingestion](../deploy/install_rag.md#data-ingestion-ui-and-telemetry) - add documents -- [Teardown](../deploy/install_rag.md#remove-the-installation) - clean removal +- [Install RAG Guide](../deployment/install-rag.md) - full deployment options and troubleshooting +- [Pipeline Configuration](../deployment/pipelines.md) - switch pipelines and variants +- [Configuration Reference](../configuration/configuration.md) - model selection, multi-node, external endpoints +- [Data Ingestion](../deployment/install-rag.md#data-ingestion-ui-and-telemetry) - add documents +- [Teardown](../deployment/install-rag.md#remove-the-installation) - clean removal ## Troubleshooting | Issue | Fix | |-------|-----| -| Pods stuck pending | `kubectl describe pod -n `. For minimum hardware, verify [tuning steps](prerequisites.md#deploying-on-minimum-hardware). | +| Pods stuck pending | `kubectl describe pod -n `. | | 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/meet/meet.md b/docs/overview/meet.md similarity index 70% rename from docs/meet/meet.md rename to docs/overview/meet.md index c6af9558..dde77be3 100644 --- a/docs/meet/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 @@ -20,12 +20,12 @@ A working RAG system is not one model call. It is roughly twenty moving parts: a Teams that assemble this themselves spend their first months on plumbing rather than on their use case, and typically stop short of the parts that production actually requires: mutual TLS between services, per-user access control, an upgrade path, and dashboards that show why a query was slow. -This project is that plumbing, already assembled and tuned for Intel® Xeon® processors, with the parts you are likely to change exposed as configuration rather than code. +This project is that plumbing, already assembled and tuned for Intel® Platforms such as Intel® Xeon® processors, with the parts you are likely to change exposed as configuration rather than code. ## Why you would use it - **You keep your data.** Documents, embeddings, and the models all stay on infrastructure you control. Nothing is sent to a hosted API. -- **It runs on CPUs you already own.** Serving is tuned for Xeon, with NUMA-aware CPU pinning and autoscaling. No accelerator is required. +- **It runs on CPUs you already own.** Serving is tuned for Intel® CPUs such as Intel® Xeon® processors, with NUMA-aware CPU pinning and autoscaling. No accelerator is required. - **It is production-shaped from the start.** Keycloak SSO, role-based access, mutual TLS between services, and a Grafana and Prometheus stack are part of the default install, not a later project. - **It is modular where it matters.** Swap the LLM, the embedding model, or the vector database through configuration. Add or remove a pipeline step by selecting a different variant. - **More than chat.** The same deployment covers conversational retrieval, document summarization, translation, and voice, and can expose retrieval to AI agents over Model Context Protocol. @@ -37,36 +37,40 @@ You clone **one** repository and run every command from its root. The installer ``` github.com/intel/toolkit-manager <- start here; run all commands from this root | - |-- es_auto_installer.sh the single entry point (configure / init / install / teardown) + |-- toolkit_manager.sh the single entry point (configure / init / install / teardown) |-- env// your configuration, kubeconfig, credentials, and logs - `-- ext/ cloned automatically by `init erag` - |-- enterprise.ai-inference model serving: KServe, vLLM, OpenVINO Model Server - `-- enterprise.ai-erag this repo: RAG pipelines, ingestion, UI + `-- 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 `./es_auto_installer.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 observability ``` -You choose what the application does by selecting a **flavour** at init time: conversational retrieval (`chatqna`, the default), document summarization (`docsum`), translation (`translation`), voice (`audioqna`), or Polish-language retrieval (`pl_chatqna`). Flavours and their variants are described in [Pipelines](../deploy/pipelines.md). +You choose what the application does by selecting a **flavour** at init time: conversational retrieval (`chatqna`, the default), document summarization (`docsum`), translation (`translation`), voice (`audioqna`), or Polish-language retrieval (`pl_chatqna`). Flavours and their variants are described in [Pipelines](../deployment/pipelines.md). ## Start here | You want to | Go to | |---|---| -| Check whether your hardware qualifies | [Prerequisites](../quickstart/prerequisites.md) | -| Deploy it now | [Quick Start](../quickstart/quickstart.md) | +| Check whether your hardware qualifies | [Prerequisites](../getting-started/prerequisites.md) | +| Deploy it now | [Quick Start](../getting-started/quickstart.md) | | Understand the components before deploying | [Architecture](../reference/architecture.md) | -| Know what a term means | [Glossary](../glossary.md) | -| Skim common questions | [FAQ](../faq.md) | +| Know what a term means | [Glossary](../reference/glossary.md) | +| Skim common questions | [FAQ](../faq-and-troubleshooting/frequently-asked-questions.md) | + +--- + +*Intel, the Intel logo, and Xeon are trademarks of Intel Corporation or its subsidiaries.* diff --git a/docs/quickstart/prerequisites.md b/docs/quickstart/prerequisites.md deleted file mode 100644 index 13e6fbb4..00000000 --- a/docs/quickstart/prerequisites.md +++ /dev/null @@ -1,121 +0,0 @@ -# Prerequisites - -[← Docs Index](../README.md) - -Everything you need before Toolkit Manager installs Intel® Chatbot Toolkit on the platform. - ---- - -## 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. - -> [!NOTE] -> The platform prerequisites (OS, storage backends, node configuration, and SSH setup) are owned by Toolkit Manager. See: -> - [Platform Prerequisites](https://github.com/intel/toolkit-manager/blob/main/docs/quickstart/prerequisites.md) for base requirements (OS, hardware, tooling, credentials) -> - [Multi-Node & BYO Cluster](https://github.com/intel/toolkit-manager/blob/main/docs/deploy/topologies.md) for multi-node and bring-your-own-Kubernetes setups - ---- - -## Hardware requirements for RAG - -These are **additional** requirements on top of the platform. Sizing below assumes the platform and Intel® Inference Toolkit are already running. - -### Xeon-only deployment - -To deploy Intel® Chatbot Toolkit using Xeon only: - -| Configuration | CPU cores | RAM | Disk | Notes | -|---|---|---|---|---| -| Standard minimum | 60 logical cores | 128 GB | 200 GB | Multi-user production workload | -| Limited single-user | 32 logical cores | 64 GB | 200 GB | Evaluation or dev use only; requires config tuning | - -> [!NOTE] -> Logical cores = hardware threads (vCPUs), not physical cores. - -The **limited single-user deployment** (32 cores / 64 GB RAM) is suitable only for evaluation, development, or single-user testing. It requires tuning model resource limits and disabling autoscaling. See [Deploying on Minimum Hardware](#deploying-on-minimum-hardware) below. - ---- - -## 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`. - -- **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. - -- **Multi-node clusters require ReadWriteMany (RWX) storage:** If deploying across multiple nodes, a CSI driver supporting `ReadWriteMany` access mode is required. Toolkit Manager can provision NFS (`storage_backend: nfs`) or NetApp Trident (`storage_backend: netapp-trident`). Single-node deployments use `local-path` by default. See [Platform Storage Documentation](https://github.com/intel/toolkit-manager/blob/main/docs/customize/configuration.md#storage) for configuration. - ---- - -## Cluster provisioning and storage - -Cluster provisioning, operating system requirements, Kubernetes versions, storage backends, and node topology are owned by **Toolkit Manager**. - -For those topics, see: -- [Platform Prerequisites](https://github.com/intel/toolkit-manager/blob/main/docs/quickstart/prerequisites.md) - OS, tooling, hardware minimums for the platform -- [Platform Quickstart](https://github.com/intel/toolkit-manager/blob/main/docs/quickstart/quickstart.md) - installing the cluster -- [Multi-Node & BYO Cluster](https://github.com/intel/toolkit-manager/blob/main/docs/deploy/topologies.md) - multi-node and bring-your-own-Kubernetes setups -- [Storage Configuration](https://github.com/intel/toolkit-manager/blob/main/docs/customize/configuration.md#storage) - NFS, Ceph, NetApp Trident - ---- - -## Deploying on Minimum Hardware - -When deploying on the minimum hardware configuration (60 logical cores / 128 GB RAM) or the limited single-user configuration (32 logical cores / 64 GB RAM), additional tuning is required. - -### KV cache reduction (required) - -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`): - -```bash -nano env//models-rag.yaml -``` - -Find the models you will deploy and reduce their `VLLM_CPU_KVCACHE_SPACE` setting from `"10"` to `"1"`: - -```yaml - - name: llama3-8b-awq - model_id: casperhansen/llama-3-8b-instruct-awq - category: llm - runtime: vllm - server_version: "0.24.0" - cpu: 32 - memory: 24Gi - env: - VLLM_CPU_KVCACHE_SPACE: "1" # reduced from "10" - args: [--max-num-seqs, "32", ...] -``` - -Repeat for every model in `inference_models` (LLM, embedding, reranking). - -> [!IMPORTANT] -> Reducing the KV cache from `10` GB to `1` GB significantly lowers vLLM memory usage but reduces the number of concurrent requests the model can cache. This trade-off is acceptable for evaluation and single-user deployments. - -### 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`: - -```yaml -hpa_enabled: false # disable Horizontal Pod Autoscaling -kubernetes_cpu_policy: best-effort # disable NRI CPU pinning -``` - -Additionally, reduce the model server CPU and memory limits in `env//models-rag.yaml`: - -```yaml - - name: llama3-8b-awq - cpu: 16 # reduced from 32 - memory: 16Gi # reduced from 24Gi - replicas: 1 # single replica only - env: - VLLM_CPU_KVCACHE_SPACE: "1" -``` - ---- - -## Next steps - -Once prerequisites are met, proceed to [Quickstart](quickstart.md) to deploy Intel® Chatbot Toolkit. diff --git a/docs/reference/architecture.md b/docs/reference/architecture.md index 035d2105..bbdd81d8 100644 --- a/docs/reference/architecture.md +++ b/docs/reference/architecture.md @@ -1,43 +1,43 @@ # 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. ## Integration with Toolkit Manager -Toolkit Manager clones this repo into its own `ext/enterprise.ai-erag/` at runtime and auto-discovers its contributions: +Toolkit Manager clones this repo into its own `ext/chatbot-toolkit/` at runtime and auto-discovers its contributions: | 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) -./es_auto_installer.sh init erag --env myenv +./toolkit_manager.sh init chatbot --env myenv # Install Intel® Chatbot Toolkit (requires Intel® Inference Toolkit already installed) -./es_auto_installer.sh install erag --env myenv +./toolkit_manager.sh install chatbot --env myenv # Check status -./es_auto_installer.sh status --env myenv -./es_auto_installer.sh validate erag --env myenv +./toolkit_manager.sh status --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 | |-----------|-------------------|------------|---------| @@ -79,7 +79,7 @@ Each step of a RAG answer is its own service, which is what lets you swap a rera 20 FastAPI microservices in `src/comps/`, packaged as Docker images and deployed via Helm. That is 17 top-level services plus the three `guardrails` sub-services. `src/comps/cores/` and `src/comps/vectorstores/` are shared libraries the services import, not deployed services of their own.
- Intel® Chatbot Toolkit microservices map: every microservice in the stack grouped by role - ingestion and data preparation services feeding the vector database, retrieval and reranking services, guardrail services on the query and response paths, and the pipeline router connecting them - with Intel® Inference Toolkit shown beneath + Intel® Chatbot Toolkit microservices map: every microservice in the stack grouped by role - ingestion and data preparation services feeding the vector database, retrieval and reranking services, guardrail services on the query and response paths, and the pipeline router connecting them - with Intel® Inference Toolkit shown beneath
| Service | Purpose | Namespace (default) | @@ -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 @@ -188,7 +188,7 @@ Enabled via `mcp_enabled: true` in `config.erag.yaml`. Requires `app_edp` and `a | `keycloak` | Platform | Keycloak | | `monitoring` | Platform | Prometheus, Grafana, Loki, Tempo | -All RAG namespaces join the Istio ambient mesh via `istio.io/dataplane-mode: ambient` label. On OpenShift they join the cluster's Service Mesh 3 with sidecars instead ([Mesh](mesh.md#openshift-sidecars)). +All RAG namespaces join the Istio ambient mesh via `istio.io/dataplane-mode: ambient` label. On OpenShift they join the cluster's Service Mesh 3 with sidecars instead ([Mesh](service-mesh.md#openshift-sidecars)). ## Istio Mesh Integration @@ -196,7 +196,7 @@ The platform (`roles/istio/`) deploys Istio ambient mesh. Chatbot namespaces joi Current mTLS posture: `STRICT` via `PeerAuthentication` in each namespace. **Authorization policies are not currently deployed** - the deployment ships zero `AuthorizationPolicy` resources. Only mutual TLS is enforced; service-to-service authorization is not configured. -See [Mesh](mesh.md) for how to add a new service to the mesh. +See [Mesh](service-mesh.md) for how to add a new service to the mesh. ## Storage @@ -205,7 +205,7 @@ See [Mesh](mesh.md) for how to add a new service to the mesh. - **PostgreSQL**: CNPG-managed volumes (8Gi per cluster by default) - **Model weights**: Intel® Inference Toolkit model-store PVC (shared with this toolkit) - **Backup and restore**: opt-in, Velero-based CSI volume snapshots of the namespaces above plus the - identity realm — see [Backup and Restore](../operate/backup.md) + identity realm — see [Backup and Restore](../deployment/backup-and-restore.md) ## Telemetry @@ -218,11 +218,11 @@ Additionally, Intel® Inference Toolkit dashboards (`modelserving` tag) show vLL Logs flow to Loki via OpenTelemetry; traces go to Tempo. Access via `https://grafana.`. -See [Telemetry](../operate/telemetry.md) for login and dashboard details. +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 @@ -241,7 +241,7 @@ At `install erag`: ## Related -- [Telemetry](../operate/telemetry.md) - Grafana dashboards, log queries -- [Performance](../operate/performance.md) - Tuning model sizing, HPA, Redis vector index settings -- [Docker Images](docker_images.md) - Published images and Dockerfiles -- [Mesh](mesh.md) - Istio integration and mTLS posture +- [Telemetry](../configuration/telemetry.md) - Grafana dashboards, log queries +- [Performance](../configuration/performance.md) - Tuning model sizing, HPA, Redis vector index settings +- [Docker Images](container-images.md) - Published images and Dockerfiles +- [Mesh](service-mesh.md) - Istio integration and mTLS posture diff --git a/docs/reference/docker_images.md b/docs/reference/container-images.md similarity index 99% rename from docs/reference/docker_images.md rename to docs/reference/container-images.md index 053f2753..d55e3a71 100644 --- a/docs/reference/docker_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/glossary.md b/docs/reference/glossary.md similarity index 80% rename from docs/glossary.md rename to docs/reference/glossary.md index 434c2875..3431cf36 100644 --- a/docs/glossary.md +++ b/docs/reference/glossary.md @@ -1,18 +1,18 @@ # Glossary -[← Docs Index](README.md) +[← Docs Index](../README.md) Terms used across this documentation, in alphabetical order. --- -**Ambient mesh.** The sidecar-free mode of Istio used by the platform. Traffic between services is encrypted with mutual TLS by a per-node proxy (ztunnel) instead of a proxy container in every pod. See [Mesh](reference/mesh.md). +**Ambient mesh.** The sidecar-free mode of Istio used by the platform. Traffic between services is encrypted with mutual TLS by a per-node proxy (ztunnel) instead of a proxy container in every pod. See [Mesh](service-mesh.md). **APISIX.** The API gateway in front of the RAG services. It terminates client requests to the pipeline and applies the access rules tied to your Keycloak session. **Chunking.** Splitting a document into passages small enough to embed and retrieve individually. Chunk size and overlap decide how much context a single retrieval hit carries. -**Component.** One unit the installer deploys, backed by an Ansible role. RAG components are named `app_*`, for example `app_pipeline`, `app_edp`, `app_ui`. Listed in [Architecture](reference/architecture.md). +**Component.** One unit the installer deploys, backed by an Ansible role. RAG components are named `app_*`, for example `app_pipeline`, `app_edp`, `app_ui`. Listed in [Architecture](architecture.md). **EDP (Enhanced Data Preparation).** The ingestion pipeline: it watches an object store or SharePoint, extracts text from PDF and Office documents, chunks it, embeds it, and writes the vectors to the vector database. @@ -20,27 +20,27 @@ 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](deploy/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. **Guardrails.** Scanning steps around the LLM. The input guardrail inspects the prompt before generation, the output guardrail inspects the answer before it reaches the user. -**HPA (Horizontal Pod Autoscaler).** The Kubernetes controller that adds and removes replicas of a service under load. Enabled by default via `hpa_enabled`, and disabled for minimum-hardware deployments. See [Performance](operate/performance.md). +**HPA (Horizontal Pod Autoscaler).** The Kubernetes controller that adds and removes replicas of a service under load. Enabled by default via `hpa_enabled`. See [Performance](../configuration/performance.md). -**Intel® Inference Toolkit.** Serves the models over an OpenAI-compatible endpoint using KServe with vLLM or OpenVINO™ Model Server. Toolkit Manager clones it into `ext/enterprise.ai-inference`. The installer target is `inference`. +**Intel® Inference Toolkit.** Serves the models over an OpenAI-compatible endpoint using KServe with vLLM or OpenVINO™ Model Server. Toolkit Manager clones it into `ext/inference-toolkit`. The installer target is `inference`. **Ingestion.** Getting documents into the system so they can be retrieved: upload or sync, extract, chunk, embed, index. Handled by EDP. -**Keycloak.** The identity provider. It issues the tokens the gateway checks on every request, and can federate to Microsoft Entra ID or Active Directory. See [Authentication](customize/auth.md). +**Keycloak.** The identity provider. It issues the tokens the gateway checks on every request, and can federate to Microsoft Entra ID or Active Directory. See [Authentication](../configuration/auth.md). **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](customize/mcp.md). +**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,10 +60,10 @@ 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](deploy/pipelines.md#pipeline-variants). +**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). -**Vector database.** The store that holds embeddings and answers similarity queries. Selectable with `vector_databases_vector_store`: `redis-cluster` (default), `mssql`, or `milvus`. +**Vector database.** The store that holds embeddings and answers similarity queries. Selectable with `vector_databases_vector_store`: `milvus` (default), `redis-cluster`, or `mssql`. **ztunnel.** The per-node proxy that carries mutual TLS traffic in an Istio ambient mesh. diff --git a/docs/reference/notices.md b/docs/reference/notices.md new file mode 100644 index 00000000..0fd87cb9 --- /dev/null +++ b/docs/reference/notices.md @@ -0,0 +1,21 @@ +# Notices + +[← Docs Index](../README.md) + +## Third-party software + +This distribution includes third-party software governed by separate license terms. This third-party software, even if included with the distribution of the Intel software, may be governed by separate license terms, including without limitation, third-party license terms, other Intel software license terms, and open-source software license terms. These separate license terms govern your use of the third-party programs as set forth in the "[THIRD-PARTY-PROGRAMS](../../THIRD-PARTY-PROGRAMS)" file. + +Please note: component(s) depend on software subject to non-open source licenses. If you use or redistribute this software, it is your sole responsibility to ensure compliance with such licenses. + +## Model card guidance + +You, not Intel, are responsible for determining model suitability for your use case. For information regarding model limitations, safety considerations, biases, or other information consult the model cards (if any) for models you use, typically found in the repository where the model is available for download. Contact the model provider with questions. Intel does not provide model cards for third party models. + +## Intel's Human Rights Principles + +Intel is committed to respecting human rights and avoiding complicity in human rights abuses. See Intel's [Global Human Rights Principles](https://www.intel.com/content/www/us/en/policy/policy-human-rights.html). Intel's products and software are intended only to be used in applications that do not cause or contribute to a violation of an internationally recognized human right. + +## Security + +To report a vulnerability, follow the [Security Policy](../../SECURITY.md). diff --git a/docs/reference/mesh.md b/docs/reference/service-mesh.md similarity index 99% rename from docs/reference/mesh.md rename to docs/reference/service-mesh.md index ab16c8f3..dd0f3aed 100644 --- a/docs/reference/mesh.md +++ b/docs/reference/service-mesh.md @@ -140,7 +140,7 @@ For Istio installation, version, and cluster-wide configuration see the Toolkit - [Namespace Security Labels](https://github.com/intel/toolkit-manager/blob/main/docs/reference/labels.md) - [Platform Architecture](https://github.com/intel/toolkit-manager/blob/main/docs/reference/architecture.md) -- [Network Architecture](https://github.com/intel/toolkit-manager/blob/main/docs/deploy/networking.md) +- [Network Architecture](https://github.com/intel/toolkit-manager/blob/main/docs/reference/networking.md) Istio troubleshooting guides: - https://istio.io/latest/docs/ambient/usage/troubleshoot-ztunnel/ diff --git a/src/comps/asr/impl/microservice/Dockerfile b/src/comps/asr/impl/microservice/Dockerfile index 7718bc66..2c54fd82 100644 --- a/src/comps/asr/impl/microservice/Dockerfile +++ b/src/comps/asr/impl/microservice/Dockerfile @@ -3,9 +3,7 @@ ARG python_version=3.11 ARG python_image_version=${python_version}-slim-trixie -# Pinned by digest so the base (and its OpenSSL) only changes when bumped here, -# keeping it in step with the openssl pin below. -ARG python_image_digest=sha256:bab1b7ef4b450c81002278d035eff85ebe394ae94df904f7a3ba14f7e16e487b +ARG python_image_digest=sha256:7032841967d07aa3353905945dc186901c89b6b319c61425f4439f677a4a8a34 FROM python:${python_image_version}@${python_image_digest} COPY --from=ghcr.io/astral-sh/uv:0.9.1 /uv /uvx /bin/ @@ -13,10 +11,7 @@ COPY --from=ghcr.io/astral-sh/uv:0.9.1 /uv /uvx /bin/ ENV LANG=C.UTF-8 ARG python_version -RUN apt-get update -y && \ - apt-get install -y --no-install-recommends --only-upgrade openssl=3.5.7-1~deb13u3 libssl3t64=3.5.7-1~deb13u3 openssl-provider-legacy=3.5.7-1~deb13u3 && \ - apt-get clean && rm -rf /var/lib/apt/lists/* && rm -rf /var/cache/apk/* && \ - rm -f /usr/bin/dmesg /usr/bin/base64 /usr/bin/perl && \ +RUN rm -f /usr/bin/dmesg /usr/bin/base64 /usr/bin/perl && \ rm -rf /home/user/.local/lib/python${python_version}/site-packages/* && \ rm -rf /usr/local/lib/python${python_version}/site-packages/* diff --git a/src/comps/asr/impl/microservice/compliance-conf.yml b/src/comps/asr/impl/microservice/compliance-conf.yml index 8051f8a9..9b6b6340 100644 --- a/src/comps/asr/impl/microservice/compliance-conf.yml +++ b/src/comps/asr/impl/microservice/compliance-conf.yml @@ -11,13 +11,3 @@ manual: - name: astral-sh/uv origin: github license: MIT -# openssl, openssl-provider-legacy and libssl added due to manual security updates - - name: openssl - origin: apt - license: Apache 2.0 - - name: libssl - origin: apt - license: Apache 2.0 - - name: openssl-provider-legacy - origin: apt - license: Apache 2.0 diff --git a/src/comps/asr/impl/model_server/vllm/docker/Dockerfile b/src/comps/asr/impl/model_server/vllm/docker/Dockerfile index 0b46a23a..2d69f978 100644 --- a/src/comps/asr/impl/model_server/vllm/docker/Dockerfile +++ b/src/comps/asr/impl/model_server/vllm/docker/Dockerfile @@ -1,9 +1,9 @@ # Copyright (C) 2024-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -ARG vllm_version=0.22.1 +ARG vllm_version=0.34.0 -FROM public.ecr.aws/q9t5s3a7/vllm-cpu-release-repo:v${vllm_version} +FROM vllm/vllm-openai-cpu:v${vllm_version} RUN apt-get clean && \ rm -rf /var/lib/apt/lists/* && rm -rf /var/cache/apk/* @@ -18,7 +18,6 @@ RUN pip install --no-cache "vllm[audio]==${vllm_version}" && \ # Fix known Python package CVEs RUN pip install --no-cache-dir --upgrade \ - "setuptools==82.0.1" \ "wheel==0.46.2" USER 1000 diff --git a/src/comps/asr/impl/model_server/vllm/docker/compliance-conf.yml b/src/comps/asr/impl/model_server/vllm/docker/compliance-conf.yml index dfacc036..706be846 100644 --- a/src/comps/asr/impl/model_server/vllm/docker/compliance-conf.yml +++ b/src/comps/asr/impl/model_server/vllm/docker/compliance-conf.yml @@ -2,87 +2,8 @@ dockerfile: "Dockerfile" docker_context: "./../../" dependencies: - - apt - pip-manual - - manual pip-manual: packages: -# git/vllm-project/vllm/requirements/common.txt - - regex - - cachetools - - psutil - - sentencepiece - - numpy - - requests - - tqdm - - blake3 - - py-cpuinfo - - transformers - - tokenizers - - protobuf - - fastapi[standard] - - aiohttp - - openai - - pydantic - - prometheus_client - - pillow - - prometheus-fastapi-instrumentator - - tiktoken - - lm-format-enforcer - - llguidance - - outlines_core - - diskcache - - lark - - xgrammar - - typing_extensions - - filelock - - partial-json-parser - - pyzmq - - msgspec - - gguf - - mistral_common[image] - - opencv-python-headless - - pyyaml - - six - - setuptools - - einops - - compressed-tensors - - depyf - - cloudpickle - - watchfiles - - python-json-logger - - ninja - - pybase64 - - cbor2 - - ijson - - setproctitle - - openai-harmony - - anthropic - - model-hosting-container-standards - - mcp - - grpcio - - grpcio-reflection -# git/vllm-project/vllm/requirements/cpu.txt - - setuptools - - numba - - torch - - torchaudio - - torchvision - - intel-openmp - - py-cpuinfo -# git/vllm-project/vllm/requirements/cpu-build.txt - - cmake - - ninja - - packaging - - setuptools - - setuptools-scm - - torch + - vllm[audio] - wheel - - jinja2 - - regex -manual: - packages: -# Added because of manual copy from UV image in Dockerfile - - name: astral-sh/uv - origin: github - license: MIT diff --git a/src/comps/chat_history/impl/microservice/Dockerfile b/src/comps/chat_history/impl/microservice/Dockerfile index e1b6a1af..0f9e09e9 100644 --- a/src/comps/chat_history/impl/microservice/Dockerfile +++ b/src/comps/chat_history/impl/microservice/Dockerfile @@ -3,9 +3,7 @@ ARG python_version=3.11 ARG python_image_version=${python_version}-slim-trixie -# Pinned by digest so the base (and its OpenSSL) only changes when bumped here, -# keeping it in step with the openssl pin below. -ARG python_image_digest=sha256:bab1b7ef4b450c81002278d035eff85ebe394ae94df904f7a3ba14f7e16e487b +ARG python_image_digest=sha256:7032841967d07aa3353905945dc186901c89b6b319c61425f4439f677a4a8a34 FROM python:${python_image_version}@${python_image_digest} COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ @@ -13,10 +11,6 @@ COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ ENV LANG=C.UTF-8 ARG python_version -RUN apt-get update -y && \ - apt-get install -y --no-install-recommends --only-upgrade openssl=3.5.7-1~deb13u3 libssl3t64=3.5.7-1~deb13u3 openssl-provider-legacy=3.5.7-1~deb13u3 && \ - apt-get clean && rm -rf /var/lib/apt/lists/* - RUN rm -f /usr/bin/dmesg /usr/bin/base64 /usr/bin/perl RUN rm -rf /home/user/.local/lib/python${python_version}/site-packages/* RUN rm -rf /usr/local/lib/python${python_version}/site-packages/* diff --git a/src/comps/chat_history/impl/microservice/compliance-conf.yml b/src/comps/chat_history/impl/microservice/compliance-conf.yml index 8051f8a9..9b6b6340 100644 --- a/src/comps/chat_history/impl/microservice/compliance-conf.yml +++ b/src/comps/chat_history/impl/microservice/compliance-conf.yml @@ -11,13 +11,3 @@ manual: - name: astral-sh/uv origin: github license: MIT -# openssl, openssl-provider-legacy and libssl added due to manual security updates - - name: openssl - origin: apt - license: Apache 2.0 - - name: libssl - origin: apt - license: Apache 2.0 - - name: openssl-provider-legacy - origin: apt - license: Apache 2.0 diff --git a/src/comps/cores/utils/utils.py b/src/comps/cores/utils/utils.py index ee15fb14..1c9790d8 100644 --- a/src/comps/cores/utils/utils.py +++ b/src/comps/cores/utils/utils.py @@ -44,3 +44,11 @@ def sanitize_env(value: Optional[str]) -> Optional[str]: elif value.startswith('\'') and value.endswith('\''): value = value[1:-1] return value + + +def document_title(metadata: Optional[dict]) -> str: + metadata = metadata or {} + if metadata.get("file_title"): + return metadata["file_title"] + name = metadata.get("filename") or metadata.get("object_name") + return os.path.splitext(os.path.basename(name))[0] if name else "" diff --git a/src/comps/docsum/impl/microservice/Dockerfile b/src/comps/docsum/impl/microservice/Dockerfile index 25c4db80..19609529 100644 --- a/src/comps/docsum/impl/microservice/Dockerfile +++ b/src/comps/docsum/impl/microservice/Dockerfile @@ -3,20 +3,14 @@ ARG python_version=3.11 ARG python_image_version=${python_version}-slim-trixie -# Pinned by digest so the base (and its OpenSSL) only changes when bumped here, -# keeping it in step with the openssl pin below. -ARG python_image_digest=sha256:bab1b7ef4b450c81002278d035eff85ebe394ae94df904f7a3ba14f7e16e487b +ARG python_image_digest=sha256:7032841967d07aa3353905945dc186901c89b6b319c61425f4439f677a4a8a34 FROM python:${python_image_version}@${python_image_digest} COPY --from=ghcr.io/astral-sh/uv:0.9.1 /uv /uvx /bin/ ENV LANG=C.UTF-8 ARG python_version -RUN apt-get update -y && \ - apt-get install -y --no-install-recommends --only-upgrade openssl=3.5.7-1~deb13u3 libssl3t64=3.5.7-1~deb13u3 openssl-provider-legacy=3.5.7-1~deb13u3 && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/* && rm -rf /var/cache/apk/* && \ - rm -f /usr/bin/dmesg /usr/bin/base64 /usr/bin/perl && \ +RUN rm -f /usr/bin/dmesg /usr/bin/base64 /usr/bin/perl && \ rm -rf /home/user/.local/lib/python${python_version}/site-packages/* && \ rm -rf /usr/local/lib/python${python_version}/site-packages/* diff --git a/src/comps/docsum/impl/microservice/compliance-conf.yml b/src/comps/docsum/impl/microservice/compliance-conf.yml index 8051f8a9..9b6b6340 100644 --- a/src/comps/docsum/impl/microservice/compliance-conf.yml +++ b/src/comps/docsum/impl/microservice/compliance-conf.yml @@ -11,13 +11,3 @@ manual: - name: astral-sh/uv origin: github license: MIT -# openssl, openssl-provider-legacy and libssl added due to manual security updates - - name: openssl - origin: apt - license: Apache 2.0 - - name: libssl - origin: apt - license: Apache 2.0 - - name: openssl-provider-legacy - origin: apt - license: Apache 2.0 diff --git a/src/comps/embeddings/impl/microservice/Dockerfile b/src/comps/embeddings/impl/microservice/Dockerfile index 9b3745ba..917184a2 100644 --- a/src/comps/embeddings/impl/microservice/Dockerfile +++ b/src/comps/embeddings/impl/microservice/Dockerfile @@ -3,9 +3,7 @@ ARG python_version=3.11 ARG python_image_version=${python_version}-slim-trixie -# Pinned by digest so the base (and its OpenSSL) only changes when bumped here, -# keeping it in step with the openssl pin below. -ARG python_image_digest=sha256:bab1b7ef4b450c81002278d035eff85ebe394ae94df904f7a3ba14f7e16e487b +ARG python_image_digest=sha256:7032841967d07aa3353905945dc186901c89b6b319c61425f4439f677a4a8a34 FROM python:${python_image_version}@${python_image_digest} COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ @@ -14,7 +12,6 @@ ENV LANG=C.UTF-8 ARG python_version RUN apt-get update -y && \ - apt-get install -y --no-install-recommends --only-upgrade openssl=3.5.7-1~deb13u3 libssl3t64=3.5.7-1~deb13u3 openssl-provider-legacy=3.5.7-1~deb13u3 && \ apt-get install -y --no-install-recommends --fix-missing \ libjemalloc-dev && \ apt-get clean && rm -rf /var/lib/apt/lists/* diff --git a/src/comps/embeddings/impl/microservice/compliance-conf.yml b/src/comps/embeddings/impl/microservice/compliance-conf.yml index 8051f8a9..9b6b6340 100644 --- a/src/comps/embeddings/impl/microservice/compliance-conf.yml +++ b/src/comps/embeddings/impl/microservice/compliance-conf.yml @@ -11,13 +11,3 @@ manual: - name: astral-sh/uv origin: github license: MIT -# openssl, openssl-provider-legacy and libssl added due to manual security updates - - name: openssl - origin: apt - license: Apache 2.0 - - name: libssl - origin: apt - license: Apache 2.0 - - name: openssl-provider-legacy - origin: apt - license: Apache 2.0 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/guardrails/llm_guard_dataprep_guardrail/impl/microservice/Dockerfile b/src/comps/guardrails/llm_guard_dataprep_guardrail/impl/microservice/Dockerfile index 3b70bca6..745400d2 100644 --- a/src/comps/guardrails/llm_guard_dataprep_guardrail/impl/microservice/Dockerfile +++ b/src/comps/guardrails/llm_guard_dataprep_guardrail/impl/microservice/Dockerfile @@ -5,20 +5,13 @@ ARG python_version=3.11 ARG python_image_version=${python_version}-slim-trixie -# Pinned by digest so the base (and its OpenSSL) only changes when bumped here, -# keeping it in step with the openssl pin below. -ARG python_image_digest=sha256:bab1b7ef4b450c81002278d035eff85ebe394ae94df904f7a3ba14f7e16e487b +ARG python_image_digest=sha256:7032841967d07aa3353905945dc186901c89b6b319c61425f4439f677a4a8a34 FROM python:${python_image_version}@${python_image_digest} COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ ARG python_version -# Install system packages needed for building -RUN apt-get update -y && \ - apt-get install -y --no-install-recommends --only-upgrade openssl=3.5.7-1~deb13u3 libssl3t64=3.5.7-1~deb13u3 openssl-provider-legacy=3.5.7-1~deb13u3 && \ - apt-get clean && rm -rf /var/lib/apt/lists/* - RUN rm -f /usr/bin/dmesg /usr/bin/base64 /usr/bin/perl RUN rm -rf /home/user/.local/lib/python${python_version}/site-packages/* RUN rm -rf /usr/local/lib/python${python_version}/site-packages/* diff --git a/src/comps/guardrails/llm_guard_dataprep_guardrail/impl/microservice/compliance-conf.yml b/src/comps/guardrails/llm_guard_dataprep_guardrail/impl/microservice/compliance-conf.yml index 36908c41..ff087530 100644 --- a/src/comps/guardrails/llm_guard_dataprep_guardrail/impl/microservice/compliance-conf.yml +++ b/src/comps/guardrails/llm_guard_dataprep_guardrail/impl/microservice/compliance-conf.yml @@ -11,16 +11,6 @@ manual: - name: astral-sh/uv origin: github license: MIT -# openssl, openssl-provider-legacy and libssl added due to manual security updates - - name: openssl - origin: apt - license: Apache 2.0 - - name: libssl - origin: apt - license: Apache 2.0 - - name: openssl-provider-legacy - origin: apt - license: Apache 2.0 # Added because archived lib has been incorporated - name: protectai/llm-guard origin: github diff --git a/src/comps/guardrails/llm_guard_dataprep_guardrail/impl/microservice/uv.lock b/src/comps/guardrails/llm_guard_dataprep_guardrail/impl/microservice/uv.lock index 6f8a2c88..73fe489e 100644 --- a/src/comps/guardrails/llm_guard_dataprep_guardrail/impl/microservice/uv.lock +++ b/src/comps/guardrails/llm_guard_dataprep_guardrail/impl/microservice/uv.lock @@ -994,11 +994,11 @@ wheels = [ [[package]] name = "pip" -version = "26.2.2" +version = "26.3" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/fa/e8/0842d757e483e895e670f655084cfe8b8c72580c6769a76b30b2789a0608/pip-26.2.2.tar.gz", hash = "sha256:3a8e5c800492787f33a4114ef54444546c340df428974ebba17e0fd47e11af2f", size = 1863336, upload-time = "2026-10-20T16:36:29.008Z" } +sdist = { url = "https://files.pythonhosted.org/packages/53/c7/f8d9e2e0e7c1ed8a22a10eeb3b5bf7860bc07d8446c7a978a882c5c8214b/pip-26.3.tar.gz", hash = "sha256:6c36ae7da8695be67e3cd9f7d87919667ced53f57ce2ede75d89b5912ed2bc4c", size = 1934348, upload-time = "2026-11-02T20:34:27.738Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/3f/06/3e4420302363fbb71be3c7f35ce042f54bfca330e3e66b3a2e3c4cca579f/pip-26.2.2-py3-none-any.whl", hash = "sha256:fd7f4dfa8190e014013b9f08f3e973f4e4c26ffd179a204895533a7254813a70", size = 1819850, upload-time = "2026-10-20T16:36:27.046Z" }, + { url = "https://files.pythonhosted.org/packages/07/25/ee8c38ae72d66b844ce8eb9711ba905dba21ca1a8a0c960057c41cd23337/pip-26.3-py3-none-any.whl", hash = "sha256:f3b60b20ffaadd4415ed7957212a38ac63fa4c5fa375bd0f4a797777940fad13", size = 1950951, upload-time = "2026-11-02T20:34:25.728Z" }, ] [[package]] diff --git a/src/comps/guardrails/llm_guard_input_guardrail/impl/microservice/Dockerfile b/src/comps/guardrails/llm_guard_input_guardrail/impl/microservice/Dockerfile index 17dbc3ad..ed8e36c8 100644 --- a/src/comps/guardrails/llm_guard_input_guardrail/impl/microservice/Dockerfile +++ b/src/comps/guardrails/llm_guard_input_guardrail/impl/microservice/Dockerfile @@ -5,20 +5,13 @@ ARG python_version=3.11 ARG python_image_version=${python_version}-slim-trixie -# Pinned by digest so the base (and its OpenSSL) only changes when bumped here, -# keeping it in step with the openssl pin below. -ARG python_image_digest=sha256:bab1b7ef4b450c81002278d035eff85ebe394ae94df904f7a3ba14f7e16e487b +ARG python_image_digest=sha256:7032841967d07aa3353905945dc186901c89b6b319c61425f4439f677a4a8a34 FROM python:${python_image_version}@${python_image_digest} COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ ARG python_version -# Install system packages needed for building -RUN apt-get update -y && \ - apt-get install -y --no-install-recommends --only-upgrade openssl=3.5.7-1~deb13u3 libssl3t64=3.5.7-1~deb13u3 openssl-provider-legacy=3.5.7-1~deb13u3 && \ - apt-get clean && rm -rf /var/lib/apt/lists/* - RUN rm -f /usr/bin/dmesg /usr/bin/base64 /usr/bin/perl RUN rm -rf /home/user/.local/lib/python${python_version}/site-packages/* RUN rm -rf /usr/local/lib/python${python_version}/site-packages/* diff --git a/src/comps/guardrails/llm_guard_input_guardrail/impl/microservice/compliance-conf.yml b/src/comps/guardrails/llm_guard_input_guardrail/impl/microservice/compliance-conf.yml index 96d73143..a4adf10e 100644 --- a/src/comps/guardrails/llm_guard_input_guardrail/impl/microservice/compliance-conf.yml +++ b/src/comps/guardrails/llm_guard_input_guardrail/impl/microservice/compliance-conf.yml @@ -16,16 +16,6 @@ manual: - name: astral-sh/uv origin: github license: MIT -# openssl, openssl-provider-legacy and libssl added due to manual security updates - - name: openssl - origin: apt - license: Apache 2.0 - - name: libssl - origin: apt - license: Apache 2.0 - - name: openssl-provider-legacy - origin: apt - license: Apache 2.0 # Added because archived lib has been incorporated - name: protectai/llm-guard origin: github diff --git a/src/comps/guardrails/llm_guard_input_guardrail/impl/microservice/uv.lock b/src/comps/guardrails/llm_guard_input_guardrail/impl/microservice/uv.lock index 624dd7a4..deb6dc65 100644 --- a/src/comps/guardrails/llm_guard_input_guardrail/impl/microservice/uv.lock +++ b/src/comps/guardrails/llm_guard_input_guardrail/impl/microservice/uv.lock @@ -1123,11 +1123,11 @@ wheels = [ [[package]] name = "pip" -version = "26.2.2" +version = "26.3" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/fa/e8/0842d757e483e895e670f655084cfe8b8c72580c6769a76b30b2789a0608/pip-26.2.2.tar.gz", hash = "sha256:3a8e5c800492787f33a4114ef54444546c340df428974ebba17e0fd47e11af2f", size = 1863336, upload-time = "2026-10-20T16:36:29.008Z" } +sdist = { url = "https://files.pythonhosted.org/packages/53/c7/f8d9e2e0e7c1ed8a22a10eeb3b5bf7860bc07d8446c7a978a882c5c8214b/pip-26.3.tar.gz", hash = "sha256:6c36ae7da8695be67e3cd9f7d87919667ced53f57ce2ede75d89b5912ed2bc4c", size = 1934348, upload-time = "2026-11-02T20:34:27.738Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/3f/06/3e4420302363fbb71be3c7f35ce042f54bfca330e3e66b3a2e3c4cca579f/pip-26.2.2-py3-none-any.whl", hash = "sha256:fd7f4dfa8190e014013b9f08f3e973f4e4c26ffd179a204895533a7254813a70", size = 1819850, upload-time = "2026-10-20T16:36:27.046Z" }, + { url = "https://files.pythonhosted.org/packages/07/25/ee8c38ae72d66b844ce8eb9711ba905dba21ca1a8a0c960057c41cd23337/pip-26.3-py3-none-any.whl", hash = "sha256:f3b60b20ffaadd4415ed7957212a38ac63fa4c5fa375bd0f4a797777940fad13", size = 1950951, upload-time = "2026-11-02T20:34:25.728Z" }, ] [[package]] diff --git a/src/comps/guardrails/llm_guard_output_guardrail/impl/microservice/Dockerfile b/src/comps/guardrails/llm_guard_output_guardrail/impl/microservice/Dockerfile index 430fe80d..f38746b0 100644 --- a/src/comps/guardrails/llm_guard_output_guardrail/impl/microservice/Dockerfile +++ b/src/comps/guardrails/llm_guard_output_guardrail/impl/microservice/Dockerfile @@ -5,19 +5,13 @@ ARG python_version=3.11 ARG python_image_version=${python_version}-slim-trixie -# Pinned by digest so the base (and its OpenSSL) only changes when bumped here, -# keeping it in step with the openssl pin below. -ARG python_image_digest=sha256:bab1b7ef4b450c81002278d035eff85ebe394ae94df904f7a3ba14f7e16e487b +ARG python_image_digest=sha256:7032841967d07aa3353905945dc186901c89b6b319c61425f4439f677a4a8a34 FROM python:${python_image_version}@${python_image_digest} COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ ARG python_version -RUN apt-get update -y && \ - apt-get install -y --no-install-recommends --only-upgrade openssl=3.5.7-1~deb13u3 libssl3t64=3.5.7-1~deb13u3 openssl-provider-legacy=3.5.7-1~deb13u3 && \ - apt-get clean && rm -rf /var/lib/apt/lists/* - RUN rm -f /usr/bin/dmesg /usr/bin/base64 /usr/bin/perl RUN rm -rf /home/user/.local/lib/python${python_version}/site-packages/* RUN rm -rf /usr/local/lib/python${python_version}/site-packages/* diff --git a/src/comps/guardrails/llm_guard_output_guardrail/impl/microservice/compliance-conf.yml b/src/comps/guardrails/llm_guard_output_guardrail/impl/microservice/compliance-conf.yml index 96d73143..a4adf10e 100644 --- a/src/comps/guardrails/llm_guard_output_guardrail/impl/microservice/compliance-conf.yml +++ b/src/comps/guardrails/llm_guard_output_guardrail/impl/microservice/compliance-conf.yml @@ -16,16 +16,6 @@ manual: - name: astral-sh/uv origin: github license: MIT -# openssl, openssl-provider-legacy and libssl added due to manual security updates - - name: openssl - origin: apt - license: Apache 2.0 - - name: libssl - origin: apt - license: Apache 2.0 - - name: openssl-provider-legacy - origin: apt - license: Apache 2.0 # Added because archived lib has been incorporated - name: protectai/llm-guard origin: github diff --git a/src/comps/guardrails/llm_guard_output_guardrail/impl/microservice/uv.lock b/src/comps/guardrails/llm_guard_output_guardrail/impl/microservice/uv.lock index 7d725308..0ea0efb7 100644 --- a/src/comps/guardrails/llm_guard_output_guardrail/impl/microservice/uv.lock +++ b/src/comps/guardrails/llm_guard_output_guardrail/impl/microservice/uv.lock @@ -1157,11 +1157,11 @@ wheels = [ [[package]] name = "pip" -version = "26.2.2" +version = "26.3" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/fa/e8/0842d757e483e895e670f655084cfe8b8c72580c6769a76b30b2789a0608/pip-26.2.2.tar.gz", hash = "sha256:3a8e5c800492787f33a4114ef54444546c340df428974ebba17e0fd47e11af2f", size = 1863336, upload-time = "2026-10-20T16:36:29.008Z" } +sdist = { url = "https://files.pythonhosted.org/packages/53/c7/f8d9e2e0e7c1ed8a22a10eeb3b5bf7860bc07d8446c7a978a882c5c8214b/pip-26.3.tar.gz", hash = "sha256:6c36ae7da8695be67e3cd9f7d87919667ced53f57ce2ede75d89b5912ed2bc4c", size = 1934348, upload-time = "2026-11-02T20:34:27.738Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/3f/06/3e4420302363fbb71be3c7f35ce042f54bfca330e3e66b3a2e3c4cca579f/pip-26.2.2-py3-none-any.whl", hash = "sha256:fd7f4dfa8190e014013b9f08f3e973f4e4c26ffd179a204895533a7254813a70", size = 1819850, upload-time = "2026-10-20T16:36:27.046Z" }, + { url = "https://files.pythonhosted.org/packages/07/25/ee8c38ae72d66b844ce8eb9711ba905dba21ca1a8a0c960057c41cd23337/pip-26.3-py3-none-any.whl", hash = "sha256:f3b60b20ffaadd4415ed7957212a38ac63fa4c5fa375bd0f4a797777940fad13", size = 1950951, upload-time = "2026-11-02T20:34:25.728Z" }, ] [[package]] diff --git a/src/comps/ingestion/impl/microservice/Dockerfile b/src/comps/ingestion/impl/microservice/Dockerfile index ada1870a..f4c7cc60 100644 --- a/src/comps/ingestion/impl/microservice/Dockerfile +++ b/src/comps/ingestion/impl/microservice/Dockerfile @@ -3,9 +3,7 @@ ARG python_version=3.11 ARG python_image_version=${python_version}-slim-trixie -# Pinned by digest so the base (and its OpenSSL) only changes when bumped here, -# keeping it in step with the openssl pin below. -ARG python_image_digest=sha256:bab1b7ef4b450c81002278d035eff85ebe394ae94df904f7a3ba14f7e16e487b +ARG python_image_digest=sha256:7032841967d07aa3353905945dc186901c89b6b319c61425f4439f677a4a8a34 FROM python:${python_image_version}@${python_image_digest} COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ @@ -13,10 +11,6 @@ COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ ENV LANG=C.UTF-8 ARG python_version -RUN apt-get -y update && \ - apt-get install -y --no-install-recommends --only-upgrade openssl=3.5.7-1~deb13u3 libssl3t64=3.5.7-1~deb13u3 openssl-provider-legacy=3.5.7-1~deb13u3 && \ - apt-get clean && rm -rf /var/lib/apt/lists/* - ARG ACCEPT_MSSQL_EULA=Y ENV ACCEPT_EULA=${ACCEPT_MSSQL_EULA} RUN apt-get -y update && \ diff --git a/src/comps/ingestion/impl/microservice/compliance-conf.yml b/src/comps/ingestion/impl/microservice/compliance-conf.yml index e475a9e4..6763d94a 100644 --- a/src/comps/ingestion/impl/microservice/compliance-conf.yml +++ b/src/comps/ingestion/impl/microservice/compliance-conf.yml @@ -17,13 +17,3 @@ manual: - name: msodbcsql18 origin: apt license: MIT -# openssl, openssl-provider-legacy and libssl added due to manual security updates - - name: openssl - origin: apt - license: Apache 2.0 - - name: libssl - origin: apt - license: Apache 2.0 - - name: openssl-provider-legacy - origin: apt - license: Apache 2.0 diff --git a/src/comps/language_detection/impl/microservice/Dockerfile b/src/comps/language_detection/impl/microservice/Dockerfile index 07c9ccab..3c57d991 100644 --- a/src/comps/language_detection/impl/microservice/Dockerfile +++ b/src/comps/language_detection/impl/microservice/Dockerfile @@ -6,9 +6,7 @@ ARG python_version=3.11 ARG python_image_version=${python_version}-slim-trixie -# Pinned by digest so the base (and its OpenSSL) only changes when bumped here, -# keeping it in step with the openssl pin below. -ARG python_image_digest=sha256:bab1b7ef4b450c81002278d035eff85ebe394ae94df904f7a3ba14f7e16e487b +ARG python_image_digest=sha256:7032841967d07aa3353905945dc186901c89b6b319c61425f4439f677a4a8a34 FROM python:${python_image_version}@${python_image_digest} COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ @@ -16,7 +14,6 @@ ENV LANG=C.UTF-8 ARG python_version RUN apt-get update -y && \ - apt-get install -y --no-install-recommends --only-upgrade openssl=3.5.7-1~deb13u3 libssl3t64=3.5.7-1~deb13u3 openssl-provider-legacy=3.5.7-1~deb13u3 && \ apt-get install -y --no-install-recommends build-essential && \ apt-get clean && rm -rf /var/lib/apt/lists/* diff --git a/src/comps/language_detection/impl/microservice/compliance-conf.yml b/src/comps/language_detection/impl/microservice/compliance-conf.yml index 8051f8a9..9b6b6340 100644 --- a/src/comps/language_detection/impl/microservice/compliance-conf.yml +++ b/src/comps/language_detection/impl/microservice/compliance-conf.yml @@ -11,13 +11,3 @@ manual: - name: astral-sh/uv origin: github license: MIT -# openssl, openssl-provider-legacy and libssl added due to manual security updates - - name: openssl - origin: apt - license: Apache 2.0 - - name: libssl - origin: apt - license: Apache 2.0 - - name: openssl-provider-legacy - origin: apt - license: Apache 2.0 diff --git a/src/comps/llms/impl/microservice/Dockerfile b/src/comps/llms/impl/microservice/Dockerfile index 2cae5152..f39a30fd 100644 --- a/src/comps/llms/impl/microservice/Dockerfile +++ b/src/comps/llms/impl/microservice/Dockerfile @@ -6,19 +6,13 @@ ARG python_version=3.11 ARG python_image_version=${python_version}-slim-trixie -# Pinned by digest so the base (and its OpenSSL) only changes when bumped here, -# keeping it in step with the openssl pin below. -ARG python_image_digest=sha256:bab1b7ef4b450c81002278d035eff85ebe394ae94df904f7a3ba14f7e16e487b +ARG python_image_digest=sha256:7032841967d07aa3353905945dc186901c89b6b319c61425f4439f677a4a8a34 FROM python:${python_image_version}@${python_image_digest} COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ ENV LANG=C.UTF-8 ARG python_version -RUN apt-get update -y && \ - apt-get install -y --no-install-recommends --only-upgrade openssl=3.5.7-1~deb13u3 libssl3t64=3.5.7-1~deb13u3 openssl-provider-legacy=3.5.7-1~deb13u3 && \ - apt-get clean && rm -rf /var/lib/apt/lists/* - RUN rm -f /usr/bin/dmesg /usr/bin/base64 /usr/bin/perl RUN rm -rf /home/user/.local/lib/python${python_version}/site-packages/* RUN rm -rf /usr/local/lib/python${python_version}/site-packages/* diff --git a/src/comps/llms/impl/microservice/compliance-conf.yml b/src/comps/llms/impl/microservice/compliance-conf.yml index 8051f8a9..9b6b6340 100644 --- a/src/comps/llms/impl/microservice/compliance-conf.yml +++ b/src/comps/llms/impl/microservice/compliance-conf.yml @@ -11,13 +11,3 @@ manual: - name: astral-sh/uv origin: github license: MIT -# openssl, openssl-provider-legacy and libssl added due to manual security updates - - name: openssl - origin: apt - license: Apache 2.0 - - name: libssl - origin: apt - license: Apache 2.0 - - name: openssl-provider-legacy - origin: apt - license: Apache 2.0 diff --git a/src/comps/namespace_status_watcher/impl/microservice/Dockerfile b/src/comps/namespace_status_watcher/impl/microservice/Dockerfile index 66225306..fbc38fac 100644 --- a/src/comps/namespace_status_watcher/impl/microservice/Dockerfile +++ b/src/comps/namespace_status_watcher/impl/microservice/Dockerfile @@ -3,9 +3,7 @@ ARG python_version=3.11 ARG python_image_version=${python_version}-slim-trixie -# Pinned by digest so the base (and its OpenSSL) only changes when bumped here, -# keeping it in step with the openssl pin below. -ARG python_image_digest=sha256:bab1b7ef4b450c81002278d035eff85ebe394ae94df904f7a3ba14f7e16e487b +ARG python_image_digest=sha256:7032841967d07aa3353905945dc186901c89b6b319c61425f4439f677a4a8a34 FROM python:${python_image_version}@${python_image_digest} COPY --from=ghcr.io/astral-sh/uv:0.9.1 /uv /uvx /bin/ @@ -13,11 +11,7 @@ COPY --from=ghcr.io/astral-sh/uv:0.9.1 /uv /uvx /bin/ ENV LANG=C.UTF-8 ARG python_version -RUN apt-get update -y && \ - apt-get install -y --no-install-recommends --only-upgrade openssl=3.5.7-1~deb13u3 libssl3t64=3.5.7-1~deb13u3 openssl-provider-legacy=3.5.7-1~deb13u3 && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/* && rm -rf /var/cache/apk/* && \ - rm -f /usr/bin/dmesg /usr/bin/base64 /usr/bin/perl && \ +RUN rm -f /usr/bin/dmesg /usr/bin/base64 /usr/bin/perl && \ rm -rf /home/user/.local/lib/python${python_version}/site-packages/* && \ rm -rf /usr/local/lib/python${python_version}/site-packages/* diff --git a/src/comps/namespace_status_watcher/impl/microservice/compliance-conf.yml b/src/comps/namespace_status_watcher/impl/microservice/compliance-conf.yml index 8051f8a9..9b6b6340 100644 --- a/src/comps/namespace_status_watcher/impl/microservice/compliance-conf.yml +++ b/src/comps/namespace_status_watcher/impl/microservice/compliance-conf.yml @@ -11,13 +11,3 @@ manual: - name: astral-sh/uv origin: github license: MIT -# openssl, openssl-provider-legacy and libssl added due to manual security updates - - name: openssl - origin: apt - license: Apache 2.0 - - name: libssl - origin: apt - license: Apache 2.0 - - name: openssl-provider-legacy - origin: apt - license: Apache 2.0 diff --git a/src/comps/prompt_template/impl/microservice/Dockerfile b/src/comps/prompt_template/impl/microservice/Dockerfile index eeadb12f..2cb5df38 100644 --- a/src/comps/prompt_template/impl/microservice/Dockerfile +++ b/src/comps/prompt_template/impl/microservice/Dockerfile @@ -6,18 +6,13 @@ ARG python_version=3.11 ARG python_image_version=${python_version}-slim-trixie -# Pinned by digest so the base (and its OpenSSL) only changes when bumped here, -# keeping it in step with the openssl pin below. -ARG python_image_digest=sha256:bab1b7ef4b450c81002278d035eff85ebe394ae94df904f7a3ba14f7e16e487b +ARG python_image_digest=sha256:7032841967d07aa3353905945dc186901c89b6b319c61425f4439f677a4a8a34 FROM python:${python_image_version}@${python_image_digest} COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ ENV LANG=C.UTF-8 ARG python_version -RUN apt-get update -y && \ - apt-get install -y --no-install-recommends --only-upgrade openssl=3.5.7-1~deb13u3 libssl3t64=3.5.7-1~deb13u3 openssl-provider-legacy=3.5.7-1~deb13u3 && \ - apt-get clean && rm -rf /var/lib/apt/lists/* RUN rm -rf /home/user/.local/lib/python${python_version}/site-packages/* RUN rm -rf /usr/local/lib/python${python_version}/site-packages/* diff --git a/src/comps/prompt_template/impl/microservice/compliance-conf.yml b/src/comps/prompt_template/impl/microservice/compliance-conf.yml index 8051f8a9..9b6b6340 100644 --- a/src/comps/prompt_template/impl/microservice/compliance-conf.yml +++ b/src/comps/prompt_template/impl/microservice/compliance-conf.yml @@ -11,13 +11,3 @@ manual: - name: astral-sh/uv origin: github license: MIT -# openssl, openssl-provider-legacy and libssl added due to manual security updates - - name: openssl - origin: apt - license: Apache 2.0 - - name: libssl - origin: apt - license: Apache 2.0 - - name: openssl-provider-legacy - origin: apt - license: Apache 2.0 diff --git a/src/comps/prompt_template/utils/erag_prompt_template.py b/src/comps/prompt_template/utils/erag_prompt_template.py index e3c12c08..b83166bc 100644 --- a/src/comps/prompt_template/utils/erag_prompt_template.py +++ b/src/comps/prompt_template/utils/erag_prompt_template.py @@ -8,6 +8,7 @@ import comps.prompt_template.utils.languages # noqa: F401 — trigger registration from comps.cores.mega.logger import get_erag_logger from comps.cores.proto.docarray import LLMParamsDoc, LLMPromptTemplate, PromptTemplateInput, TextDoc +from comps.cores.utils.utils import document_title from comps.prompt_template.utils.chat_history_handler import ChatHistoryHandler from comps.prompt_template.utils.language import PromptLanguage @@ -202,7 +203,7 @@ def _parse_reranked_docs(self, reranked_docs: list, header_separator=" > ") -> s logger.warning(f"Document {doc} does not contain valid source information.") # Build document title & author line ("Title" by Author OR "Title" if no author OR by Author if no title) - file_title = doc.metadata.get("file_title") or doc.metadata.get("filename", "") + file_title = document_title(doc.metadata) author = doc.metadata.get("author", "") title_author_part = "" diff --git a/src/comps/query_rewrite/impl/microservice/Dockerfile b/src/comps/query_rewrite/impl/microservice/Dockerfile index 4c27de93..797b32b9 100644 --- a/src/comps/query_rewrite/impl/microservice/Dockerfile +++ b/src/comps/query_rewrite/impl/microservice/Dockerfile @@ -3,9 +3,7 @@ ARG python_version=3.11 ARG python_image_version=${python_version}-slim-trixie -# Pinned by digest so the base (and its OpenSSL) only changes when bumped here, -# keeping it in step with the openssl pin below. -ARG python_image_digest=sha256:bab1b7ef4b450c81002278d035eff85ebe394ae94df904f7a3ba14f7e16e487b +ARG python_image_digest=sha256:7032841967d07aa3353905945dc186901c89b6b319c61425f4439f677a4a8a34 FROM python:${python_image_version}@${python_image_digest} COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ @@ -13,10 +11,6 @@ COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ ENV LANG=C.UTF-8 ARG python_version -RUN apt-get update -y && \ - apt-get install -y --no-install-recommends --only-upgrade openssl=3.5.7-1~deb13u3 libssl3t64=3.5.7-1~deb13u3 openssl-provider-legacy=3.5.7-1~deb13u3 && \ - apt-get clean && rm -rf /var/lib/apt/lists/* - RUN rm -f /usr/bin/dmesg /usr/bin/base64 /usr/bin/perl RUN rm -rf /home/user/.local/lib/python${python_version}/site-packages/* RUN rm -rf /usr/local/lib/python${python_version}/site-packages/* diff --git a/src/comps/query_rewrite/impl/microservice/compliance-conf.yml b/src/comps/query_rewrite/impl/microservice/compliance-conf.yml index 39e13433..a6de8f09 100644 --- a/src/comps/query_rewrite/impl/microservice/compliance-conf.yml +++ b/src/comps/query_rewrite/impl/microservice/compliance-conf.yml @@ -11,13 +11,3 @@ manual: - name: astral-sh/uv origin: github license: MIT -# openssl, openssl-provider-legacy and libssl added due to manual security updates - - name: openssl - origin: apt - license: Apache 2.0 - - name: libssl - origin: apt - license: Apache 2.0 - - name: openssl-provider-legacy - origin: apt - license: Apache 2.0 diff --git a/src/comps/reranks/impl/microservice/Dockerfile b/src/comps/reranks/impl/microservice/Dockerfile index a413675f..c2fe02df 100644 --- a/src/comps/reranks/impl/microservice/Dockerfile +++ b/src/comps/reranks/impl/microservice/Dockerfile @@ -6,19 +6,13 @@ ARG python_version=3.11 ARG python_image_version=${python_version}-slim-trixie -# Pinned by digest so the base (and its OpenSSL) only changes when bumped here, -# keeping it in step with the openssl pin below. -ARG python_image_digest=sha256:bab1b7ef4b450c81002278d035eff85ebe394ae94df904f7a3ba14f7e16e487b +ARG python_image_digest=sha256:7032841967d07aa3353905945dc186901c89b6b319c61425f4439f677a4a8a34 FROM python:${python_image_version}@${python_image_digest} COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ ENV LANG=C.UTF-8 ARG python_version -RUN apt-get update -y && \ - apt-get install -y --no-install-recommends --only-upgrade openssl=3.5.7-1~deb13u3 libssl3t64=3.5.7-1~deb13u3 openssl-provider-legacy=3.5.7-1~deb13u3 && \ - apt-get clean && rm -rf /var/lib/apt/lists/* - RUN rm -f /usr/bin/dmesg /usr/bin/base64 /usr/bin/perl RUN rm -rf /home/user/.local/lib/python${python_version}/site-packages/* RUN rm -rf /usr/local/lib/python${python_version}/site-packages/* diff --git a/src/comps/reranks/impl/microservice/compliance-conf.yml b/src/comps/reranks/impl/microservice/compliance-conf.yml index 8051f8a9..9b6b6340 100644 --- a/src/comps/reranks/impl/microservice/compliance-conf.yml +++ b/src/comps/reranks/impl/microservice/compliance-conf.yml @@ -11,13 +11,3 @@ manual: - name: astral-sh/uv origin: github license: MIT -# openssl, openssl-provider-legacy and libssl added due to manual security updates - - name: openssl - origin: apt - license: Apache 2.0 - - name: libssl - origin: apt - license: Apache 2.0 - - name: openssl-provider-legacy - origin: apt - license: Apache 2.0 diff --git a/src/comps/reranks/utils/erag_reranking.py b/src/comps/reranks/utils/erag_reranking.py index 7b8b853a..00b1d3d5 100644 --- a/src/comps/reranks/utils/erag_reranking.py +++ b/src/comps/reranks/utils/erag_reranking.py @@ -14,6 +14,7 @@ from comps.cores.mega.logger import get_erag_logger from comps.cores.proto.docarray import PromptTemplateInput, SearchedDoc, TextDoc +from comps.cores.utils.utils import document_title class RerankScoreItem(TypedDict): @@ -105,14 +106,11 @@ async def run(self, input: SearchedDoc) -> PromptTemplateInput: # Check if retrieved_docs is not empty and all documents have non-empty 'text' fields if input.retrieved_docs and all(doc.text for doc in input.retrieved_docs): try: - retrieved_texts = [doc.text for doc in input.retrieved_docs] - response_data = await self._async_call_reranker( - input.user_prompt, retrieved_texts - ) + response_data = await self._score_with_titles(input.user_prompt, input.retrieved_docs) logger.debug(f"Received response from reranking service: {response_data}") best_response_list = self._filter_top_n(input.top_n, response_data, score_threshold=input.rerank_score_threshold) - if len(best_response_list) != len(retrieved_texts): - logger.warning(f"Limiting the number of best responses to {len(best_response_list)} based on {len(retrieved_texts)} retrieved documents using max score of {input.rerank_score_threshold}.") + if len(best_response_list) != len(input.retrieved_docs): + logger.warning(f"Limiting the number of best responses to {len(best_response_list)} based on {len(input.retrieved_docs)} retrieved documents using max score of {input.rerank_score_threshold}.") logger.debug(f"Best responses after filtering: {best_response_list}") except TimeoutError as e: @@ -260,6 +258,31 @@ async def _async_call_reranker( logger.error(f"An error occurred while requesting to the reranking service: {e}") raise Exception(f"An error occurred while requesting to the reranking service: {e}") + async def _score_with_titles(self, user_prompt: str, docs: List[TextDoc]) -> RerankScoreResponse: + """Score the chunks and, in the same call, each distinct document title (see README).""" + titles = [document_title(doc.metadata) for doc in docs] + distinct_titles = list(dict.fromkeys(t for t in titles if t)) + scores = await self._async_call_reranker(user_prompt, [doc.text for doc in docs] + distinct_titles) + + n = len(docs) + title_scores = {distinct_titles[item["index"] - n]: item["score"] for item in scores if item["index"] >= n} + chunk_scores = [item for item in scores if item["index"] < n] + best = {} + for item in chunk_scores: + i = item["index"] + if not titles[i]: + continue + metadata = docs[i].metadata or {} + # object_name is unique only within a bucket; a chunk without file information stands alone. + file_key = (metadata.get("file_id"), metadata.get("bucket_name"), metadata.get("filename") or metadata.get("object_name")) + if not any(file_key): + file_key = (i,) + if file_key not in best or item["score"] > best[file_key]["score"]: + best[file_key] = item + for item in best.values(): + item["score"] = max(item["score"], title_scores.get(titles[item["index"]], 0.0)) + return chunk_scores + def _filter_top_n(self, top_n: int, data: RerankScoreResponse, score_threshold: float=None) -> RerankScoreResponse: """ Filter and return the top N responses based on their scores. diff --git a/src/comps/retrievers/impl/microservice/Dockerfile b/src/comps/retrievers/impl/microservice/Dockerfile index 0d8e62fa..0e814f6b 100644 --- a/src/comps/retrievers/impl/microservice/Dockerfile +++ b/src/comps/retrievers/impl/microservice/Dockerfile @@ -3,9 +3,7 @@ ARG python_version=3.11 ARG python_image_version=${python_version}-slim-trixie -# Pinned by digest so the base (and its OpenSSL) only changes when bumped here, -# keeping it in step with the openssl pin below. -ARG python_image_digest=sha256:bab1b7ef4b450c81002278d035eff85ebe394ae94df904f7a3ba14f7e16e487b +ARG python_image_digest=sha256:7032841967d07aa3353905945dc186901c89b6b319c61425f4439f677a4a8a34 FROM python:${python_image_version}@${python_image_digest} COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ @@ -13,10 +11,6 @@ COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ ENV LANG=C.UTF-8 ARG python_version -RUN apt-get -y update && \ - apt-get install -y --no-install-recommends --only-upgrade openssl=3.5.7-1~deb13u3 libssl3t64=3.5.7-1~deb13u3 openssl-provider-legacy=3.5.7-1~deb13u3 && \ - apt-get clean && rm -rf /var/lib/apt/lists/* - ARG ACCEPT_MSSQL_EULA=Y ENV ACCEPT_EULA=${ACCEPT_MSSQL_EULA} RUN apt-get -y update && \ diff --git a/src/comps/retrievers/impl/microservice/compliance-conf.yml b/src/comps/retrievers/impl/microservice/compliance-conf.yml index e930322f..c4f0a0b2 100644 --- a/src/comps/retrievers/impl/microservice/compliance-conf.yml +++ b/src/comps/retrievers/impl/microservice/compliance-conf.yml @@ -21,13 +21,3 @@ manual: - name: msodbcsql18 origin: apt license: MIT -# openssl, openssl-provider-legacy and libssl added due to manual security updates - - name: openssl - origin: apt - license: Apache 2.0 - - name: libssl - origin: apt - license: Apache 2.0 - - name: openssl-provider-legacy - origin: apt - license: Apache 2.0 diff --git a/src/comps/retrievers/impl/model_server/ovms/docker/Dockerfile b/src/comps/retrievers/impl/model_server/ovms/docker/Dockerfile index 93105b79..6164c04d 100644 --- a/src/comps/retrievers/impl/model_server/ovms/docker/Dockerfile +++ b/src/comps/retrievers/impl/model_server/ovms/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM openvino/model_server:2026.0 +FROM openvino/model_server:2026.5.0 COPY --from=ghcr.io/astral-sh/uv:0.8.2 /uv /uvx /bin/ ENV LANG=C.UTF-8 @@ -28,7 +28,7 @@ WORKDIR /home/user/ COPY ./docker/pyproject.toml pyproject.toml COPY ./docker/uv.lock uv.lock RUN uv sync --locked --no-cache -RUN rm -rf /home/ubuntu/.local/share/uv/python/cpython-3.11.13-linux-x86_64-gnu/lib/python3.11/site-packages/* +RUN rm -rf /home/ovms/.local/share/uv/python/cpython-3.11.13-linux-x86_64-gnu/lib/python3.11/site-packages/* # Set the working directory and entrypoint WORKDIR /home/ovms/ diff --git a/src/comps/system_fingerprint/impl/microservice/Dockerfile b/src/comps/system_fingerprint/impl/microservice/Dockerfile index 32b979ed..2bb4c7d8 100644 --- a/src/comps/system_fingerprint/impl/microservice/Dockerfile +++ b/src/comps/system_fingerprint/impl/microservice/Dockerfile @@ -3,9 +3,7 @@ ARG python_version=3.11 ARG python_image_version=${python_version}-slim-trixie -# Pinned by digest so the base (and its OpenSSL) only changes when bumped here, -# keeping it in step with the openssl pin below. -ARG python_image_digest=sha256:bab1b7ef4b450c81002278d035eff85ebe394ae94df904f7a3ba14f7e16e487b +ARG python_image_digest=sha256:7032841967d07aa3353905945dc186901c89b6b319c61425f4439f677a4a8a34 FROM python:${python_image_version}@${python_image_digest} COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ @@ -13,10 +11,6 @@ COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ ENV LANG=C.UTF-8 ARG python_version -RUN apt-get update -y && \ - apt-get install -y --no-install-recommends --only-upgrade openssl=3.5.7-1~deb13u3 libssl3t64=3.5.7-1~deb13u3 openssl-provider-legacy=3.5.7-1~deb13u3 && \ - apt-get clean && rm -rf /var/lib/apt/lists/* - RUN rm -f /usr/bin/dmesg /usr/bin/base64 /usr/bin/perl RUN rm -rf /home/user/.local/lib/python${python_version}/site-packages/* RUN rm -rf /usr/local/lib/python${python_version}/site-packages/* diff --git a/src/comps/system_fingerprint/impl/microservice/compliance-conf.yml b/src/comps/system_fingerprint/impl/microservice/compliance-conf.yml index 8051f8a9..9b6b6340 100644 --- a/src/comps/system_fingerprint/impl/microservice/compliance-conf.yml +++ b/src/comps/system_fingerprint/impl/microservice/compliance-conf.yml @@ -11,13 +11,3 @@ manual: - name: astral-sh/uv origin: github license: MIT -# openssl, openssl-provider-legacy and libssl added due to manual security updates - - name: openssl - origin: apt - license: Apache 2.0 - - name: libssl - origin: apt - license: Apache 2.0 - - name: openssl-provider-legacy - origin: apt - license: Apache 2.0 diff --git a/src/comps/text_compression/impl/microservice/Dockerfile b/src/comps/text_compression/impl/microservice/Dockerfile index 05384474..581c9d7a 100644 --- a/src/comps/text_compression/impl/microservice/Dockerfile +++ b/src/comps/text_compression/impl/microservice/Dockerfile @@ -3,9 +3,7 @@ ARG python_version=3.11 ARG python_image_version=${python_version}-slim-trixie -# Pinned by digest so the base (and its OpenSSL) only changes when bumped here, -# keeping it in step with the openssl pin below. -ARG python_image_digest=sha256:bab1b7ef4b450c81002278d035eff85ebe394ae94df904f7a3ba14f7e16e487b +ARG python_image_digest=sha256:7032841967d07aa3353905945dc186901c89b6b319c61425f4439f677a4a8a34 FROM python:${python_image_version}@${python_image_digest} COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ @@ -13,10 +11,6 @@ COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ ENV LANG=C.UTF-8 ARG python_version -RUN apt-get update -y && \ - apt-get install -y --no-install-recommends --only-upgrade openssl=3.5.7-1~deb13u3 libssl3t64=3.5.7-1~deb13u3 openssl-provider-legacy=3.5.7-1~deb13u3 && \ - apt-get clean && rm -rf /var/lib/apt/lists/* - RUN rm -f /usr/bin/dmesg /usr/bin/base64 /usr/bin/perl RUN rm -rf /home/user/.local/lib/python${python_version}/site-packages/* RUN rm -rf /usr/local/lib/python${python_version}/site-packages/* diff --git a/src/comps/text_compression/impl/microservice/compliance-conf.yml b/src/comps/text_compression/impl/microservice/compliance-conf.yml index 8051f8a9..9b6b6340 100644 --- a/src/comps/text_compression/impl/microservice/compliance-conf.yml +++ b/src/comps/text_compression/impl/microservice/compliance-conf.yml @@ -11,13 +11,3 @@ manual: - name: astral-sh/uv origin: github license: MIT -# openssl, openssl-provider-legacy and libssl added due to manual security updates - - name: openssl - origin: apt - license: Apache 2.0 - - name: libssl - origin: apt - license: Apache 2.0 - - name: openssl-provider-legacy - origin: apt - license: Apache 2.0 diff --git a/src/comps/text_extractor/impl/microservice/Dockerfile b/src/comps/text_extractor/impl/microservice/Dockerfile index 3b736482..0d9f1608 100644 --- a/src/comps/text_extractor/impl/microservice/Dockerfile +++ b/src/comps/text_extractor/impl/microservice/Dockerfile @@ -3,9 +3,7 @@ ARG python_version=3.11 ARG python_image_version=${python_version}-slim-trixie -# Pinned by digest so the base (and its OpenSSL) only changes when bumped here, -# keeping it in step with the openssl pin below. -ARG python_image_digest=sha256:bab1b7ef4b450c81002278d035eff85ebe394ae94df904f7a3ba14f7e16e487b +ARG python_image_digest=sha256:7032841967d07aa3353905945dc186901c89b6b319c61425f4439f677a4a8a34 FROM python:${python_image_version}@${python_image_digest} COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ @@ -14,7 +12,6 @@ ENV LANG=C.UTF-8 ARG python_version RUN apt-get -y update && \ - apt-get install -y --no-install-recommends --only-upgrade openssl=3.5.7-1~deb13u3 libssl3t64=3.5.7-1~deb13u3 openssl-provider-legacy=3.5.7-1~deb13u3 && \ apt-get install --no-install-recommends --fix-missing -y asciidoctor libreoffice libgl1 tesseract-ocr tesseract-ocr-pol libmagic1 ca-certificates && \ apt-get clean && rm -rf /var/lib/apt/lists/* diff --git a/src/comps/text_extractor/impl/microservice/compliance-conf.yml b/src/comps/text_extractor/impl/microservice/compliance-conf.yml index 8051f8a9..9b6b6340 100644 --- a/src/comps/text_extractor/impl/microservice/compliance-conf.yml +++ b/src/comps/text_extractor/impl/microservice/compliance-conf.yml @@ -11,13 +11,3 @@ manual: - name: astral-sh/uv origin: github license: MIT -# openssl, openssl-provider-legacy and libssl added due to manual security updates - - name: openssl - origin: apt - license: Apache 2.0 - - name: libssl - origin: apt - license: Apache 2.0 - - name: openssl-provider-legacy - origin: apt - license: Apache 2.0 diff --git a/src/comps/text_splitter/impl/microservice/Dockerfile b/src/comps/text_splitter/impl/microservice/Dockerfile index a7d1b534..6d06f8fd 100644 --- a/src/comps/text_splitter/impl/microservice/Dockerfile +++ b/src/comps/text_splitter/impl/microservice/Dockerfile @@ -3,9 +3,7 @@ ARG python_version=3.11 ARG python_image_version=${python_version}-slim-trixie -# Pinned by digest so the base (and its OpenSSL) only changes when bumped here, -# keeping it in step with the openssl pin below. -ARG python_image_digest=sha256:bab1b7ef4b450c81002278d035eff85ebe394ae94df904f7a3ba14f7e16e487b +ARG python_image_digest=sha256:7032841967d07aa3353905945dc186901c89b6b319c61425f4439f677a4a8a34 FROM python:${python_image_version}@${python_image_digest} COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ @@ -13,10 +11,6 @@ COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ ENV LANG=C.UTF-8 ARG python_version -RUN apt-get -y update && \ - apt-get install -y --no-install-recommends --only-upgrade openssl=3.5.7-1~deb13u3 libssl3t64=3.5.7-1~deb13u3 openssl-provider-legacy=3.5.7-1~deb13u3 && \ - apt-get clean && rm -rf /var/lib/apt/lists/* - RUN rm -f /usr/bin/dmesg /usr/bin/base64 /usr/bin/perl RUN rm -rf /home/user/.local/lib/python${python_version}/site-packages/* RUN rm -rf /usr/local/lib/python${python_version}/site-packages/* diff --git a/src/comps/text_splitter/impl/microservice/compliance-conf.yml b/src/comps/text_splitter/impl/microservice/compliance-conf.yml index 8051f8a9..9b6b6340 100644 --- a/src/comps/text_splitter/impl/microservice/compliance-conf.yml +++ b/src/comps/text_splitter/impl/microservice/compliance-conf.yml @@ -11,13 +11,3 @@ manual: - name: astral-sh/uv origin: github license: MIT -# openssl, openssl-provider-legacy and libssl added due to manual security updates - - name: openssl - origin: apt - license: Apache 2.0 - - name: libssl - origin: apt - license: Apache 2.0 - - name: openssl-provider-legacy - origin: apt - license: Apache 2.0 diff --git a/src/comps/tts/impl/microservice/Dockerfile b/src/comps/tts/impl/microservice/Dockerfile index 299535da..6299719e 100644 --- a/src/comps/tts/impl/microservice/Dockerfile +++ b/src/comps/tts/impl/microservice/Dockerfile @@ -3,19 +3,14 @@ ARG python_version=3.11 ARG python_image_version=${python_version}-slim-trixie -# Pinned by digest so the base (and its OpenSSL) only changes when bumped here, -# keeping it in step with the openssl pin below. -ARG python_image_digest=sha256:bab1b7ef4b450c81002278d035eff85ebe394ae94df904f7a3ba14f7e16e487b +ARG python_image_digest=sha256:7032841967d07aa3353905945dc186901c89b6b319c61425f4439f677a4a8a34 FROM python:${python_image_version}@${python_image_digest} COPY --from=ghcr.io/astral-sh/uv:0.9.26 /uv /uvx /bin/ ENV LANG=C.UTF-8 ARG python_version -RUN apt-get update -y && \ - apt-get install -y --no-install-recommends --only-upgrade openssl=3.5.7-1~deb13u3 libssl3t64=3.5.7-1~deb13u3 openssl-provider-legacy=3.5.7-1~deb13u3 && \ - apt-get clean && rm -rf /var/lib/apt/lists/* && rm -rf /var/cache/apk/* && \ - rm -f /usr/bin/dmesg /usr/bin/base64 /usr/bin/perl && \ +RUN rm -f /usr/bin/dmesg /usr/bin/base64 /usr/bin/perl && \ rm -rf /home/user/.local/lib/python${python_version}/site-packages/* && \ rm -rf /usr/local/lib/python${python_version}/site-packages/* diff --git a/src/comps/tts/impl/microservice/compliance-conf.yml b/src/comps/tts/impl/microservice/compliance-conf.yml index 8051f8a9..9b6b6340 100644 --- a/src/comps/tts/impl/microservice/compliance-conf.yml +++ b/src/comps/tts/impl/microservice/compliance-conf.yml @@ -11,13 +11,3 @@ manual: - name: astral-sh/uv origin: github license: MIT -# openssl, openssl-provider-legacy and libssl added due to manual security updates - - name: openssl - origin: apt - license: Apache 2.0 - - name: libssl - origin: apt - license: Apache 2.0 - - name: openssl-provider-legacy - origin: apt - license: Apache 2.0 diff --git a/src/comps/tts/impl/model_server/fastapi/docker/Dockerfile b/src/comps/tts/impl/model_server/fastapi/docker/Dockerfile index 27509fbf..99f58cbd 100644 --- a/src/comps/tts/impl/model_server/fastapi/docker/Dockerfile +++ b/src/comps/tts/impl/model_server/fastapi/docker/Dockerfile @@ -3,9 +3,7 @@ ARG python_version=3.11 ARG python_image_version=${python_version}-slim-trixie -# Pinned by digest so the base (and its OpenSSL) only changes when bumped here, -# keeping it in step with the openssl pin below. -ARG python_image_digest=sha256:bab1b7ef4b450c81002278d035eff85ebe394ae94df904f7a3ba14f7e16e487b +ARG python_image_digest=sha256:7032841967d07aa3353905945dc186901c89b6b319c61425f4439f677a4a8a34 FROM python:${python_image_version}@${python_image_digest} COPY --from=ghcr.io/astral-sh/uv:0.9.26 /uv /uvx /bin/ @@ -14,7 +12,6 @@ ENV LANG=C.UTF-8 ARG python_version RUN apt-get -y update && \ - apt-get install -y --no-install-recommends --only-upgrade openssl=3.5.7-1~deb13u3 libssl3t64=3.5.7-1~deb13u3 openssl-provider-legacy=3.5.7-1~deb13u3 libpcre2-8-0=10.46-1~deb13u3 && \ apt-get install --no-install-recommends --fix-missing -y ffmpeg curl google-perftools && \ apt-get clean && rm -rf /var/lib/apt/lists/* diff --git a/src/comps/tts/impl/model_server/fastapi/docker/compliance-conf.yml b/src/comps/tts/impl/model_server/fastapi/docker/compliance-conf.yml index 13a34b48..88874314 100644 --- a/src/comps/tts/impl/model_server/fastapi/docker/compliance-conf.yml +++ b/src/comps/tts/impl/model_server/fastapi/docker/compliance-conf.yml @@ -11,13 +11,3 @@ manual: - name: astral-sh/uv origin: github license: MIT -# openssl, openssl-provider-legacy and libssl added due to manual security updates - - name: openssl - origin: apt - license: Apache 2.0 - - name: libssl - origin: apt - license: Apache 2.0 - - name: openssl-provider-legacy - origin: apt - license: Apache 2.0 diff --git a/src/comps/vectorstores/CONTRIBUTING.md b/src/comps/vectorstores/CONTRIBUTING.md index d13d7fa5..8c21c262 100644 --- a/src/comps/vectorstores/CONTRIBUTING.md +++ b/src/comps/vectorstores/CONTRIBUTING.md @@ -96,7 +96,7 @@ You would have to: - define the deployment in a separate folder under `deployment/components/vector_databases/templates/` - it is recommended to define and mount a PersistentVolumeClaim for data storage - ensure that the initialization data (for example - root password) is referenced from a secret -- add the newly added database to [Configuration Reference › Vector database](../../../docs/customize/configuration.md#vector-database) +- add the newly added database to [Configuration Reference › Vector database](../../../docs/configuration/configuration.md#vector-database) - implement the `vector_database` ansible task in `deployment/roles/app_vector_databases/`: - create an additional block, similar to `name: Configure Redis-like vector store`, so that: - password(s) are generated and stored @@ -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/comps/vectorstores/impl/milvus/docker-compose.yml b/src/comps/vectorstores/impl/milvus/docker-compose.yml index a3c44532..947fc15d 100644 --- a/src/comps/vectorstores/impl/milvus/docker-compose.yml +++ b/src/comps/vectorstores/impl/milvus/docker-compose.yml @@ -3,7 +3,7 @@ services: milvus-vector-db: - image: milvusdb/milvus:v3.0.5 + image: milvusdb/milvus:v3.0.7 container_name: milvus-vector-db runtime: runc command: ["milvus", "run", "standalone"] diff --git a/src/comps/vectorstores/utils/connectors/connector_milvus.py b/src/comps/vectorstores/utils/connectors/connector_milvus.py index fed86611..bdff3174 100644 --- a/src/comps/vectorstores/utils/connectors/connector_milvus.py +++ b/src/comps/vectorstores/utils/connectors/connector_milvus.py @@ -4,6 +4,7 @@ import asyncio import json import os +import re from typing import Any, Dict, List, Optional, Union import urllib3 @@ -75,11 +76,11 @@ class ConnectorMilvus(VectorStoreConnector): def __init__(self, batch_size: int = 32): self.batch_size = batch_size self._pool = None - self.collection_name = str(sanitize_env(os.getenv("MILVUS_VECTOR_COLLECTION", "vdb"))) self.database_name = str(sanitize_env(os.getenv("MILVUS_DB", "default"))) self.timeout = float(sanitize_env(str(os.getenv("MILVUS_TIMEOUT", 30)))) vector_schema = self._vector_schema_from_env() self.dims = vector_schema["dims"] + self.collection_name = self._collection_name_from_env(self.dims) self.index_type = vector_schema["algorithm"] self.metric_type = vector_schema["distance_metric"] self.hnsw_params = vector_schema.get("hnsw_params", {}) @@ -93,6 +94,17 @@ def __init__(self, batch_size: int = 32): logger.error(f"Error initializing Milvus collection: {e}") raise + @staticmethod + def _collection_name_from_env(dims: int) -> str: + """Like the Redis index name, the default name carries the embedding model and the vector + dimension, so a model switch gets a fresh collection and the documents flagged for + re-ingestion are not mixed with vectors of the previous model.""" + explicit = sanitize_env(os.getenv("MILVUS_VECTOR_COLLECTION")) + if explicit: + return str(explicit) + model_name = str(sanitize_env(os.getenv("EMBEDDING_MODEL_NAME", "default"))).lower() + return re.sub(r"[^a-z0-9_]", "_", f"vdb_{model_name}_{dims}") + def _vector_schema_from_env(self): vector_schema = { "algorithm": str(sanitize_env(os.getenv("VECTOR_ALGORITHM", "FLAT"))).upper(), @@ -205,6 +217,7 @@ def _ensure_database(self) -> None: def _ensure_collection(self) -> None: state = self._post("/collections/has", self._scoped()) or {} if state.get("has"): + self._check_collection_dims() return schema = { @@ -235,6 +248,38 @@ def _ensure_collection(self) -> None: ) self._post("/collections/load", self._scoped()) + def _collection_dims(self) -> Optional[int]: + description = self._post("/collections/describe", self._scoped()) or {} + for field in description.get("fields", []): + if field.get("name") != "embedding": + continue + params = field.get("params") or [] + if isinstance(params, dict): + params = [{"key": k, "value": v} for k, v in params.items()] + for param in params: + if param.get("key") == "dim": + return int(param["value"]) + return None + + def _check_collection_dims(self) -> None: + """A collection keeps the dimension it was created with. The default name carries the + dimension, so a mismatch means MILVUS_VECTOR_COLLECTION points at a collection made for + another model: fail at startup rather than on every insert and search.""" + existing_dims = self._collection_dims() + if existing_dims is None: + logger.warning( + f"Could not read the vector dimension of Milvus collection '{self.collection_name}'; " + "skipping the dimension check." + ) + return + if existing_dims != self.dims: + raise RuntimeError( + f"Milvus collection '{self.collection_name}' (db '{self.database_name}') was created with " + f"vector dimension {existing_dims}, but VECTOR_DIMS is {self.dims} for embedding model " + f"'{os.getenv('EMBEDDING_MODEL_NAME', 'unknown')}'. Unset MILVUS_VECTOR_COLLECTION or point " + "it at a new collection, then re-ingest all documents." + ) + async def add_texts(self, texts, embeddings, metadatas=None): try: rows = [ @@ -371,8 +416,11 @@ async def _fetch_siblings(self, file_id: str, start_index: int, filter_expressio )) or [] if not rows: continue - rows.sort(key=lambda row: int((row.get("metadata") or {}).get("start_index", 0))) - sibling = self._convert_to_text_doc(rows[-1] if pick_last else rows[0]) + docs = sorted( + (self._convert_to_text_doc(row) for row in rows), + key=lambda doc: int(doc.metadata.get("start_index", 0)), + ) + sibling = docs[-1] if pick_last else docs[0] sibling.metadata["vector_distance"] = -1 siblings.append(sibling) return siblings diff --git a/src/edp/Dockerfile b/src/edp/Dockerfile index 0371b5a2..42a0f6be 100644 --- a/src/edp/Dockerfile +++ b/src/edp/Dockerfile @@ -4,16 +4,13 @@ # Use the official Python image from the Docker Hub ARG python_version=3.11 ARG python_image_version=${python_version}-slim-trixie -# Pinned by digest so the base (and its OpenSSL) only changes when bumped here, -# keeping it in step with the openssl pin below. -ARG python_image_digest=sha256:bab1b7ef4b450c81002278d035eff85ebe394ae94df904f7a3ba14f7e16e487b +ARG python_image_digest=sha256:7032841967d07aa3353905945dc186901c89b6b319c61425f4439f677a4a8a34 FROM python:${python_image_version}@${python_image_digest} COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ ARG python_version RUN apt-get update -y && \ - apt-get install -y --no-install-recommends --only-upgrade openssl=3.5.7-1~deb13u3 libssl3t64=3.5.7-1~deb13u3 openssl-provider-legacy=3.5.7-1~deb13u3 && \ apt-get install -y --no-install-recommends qpdf && \ apt-get clean && rm -rf /var/lib/apt/lists/* RUN rm -f /usr/bin/dmesg /usr/bin/base64 /usr/bin/perl diff --git a/src/edp/README.md b/src/edp/README.md index 8889826f..9c1ab958 100644 --- a/src/edp/README.md +++ b/src/edp/README.md @@ -30,11 +30,11 @@ The Intel® Chatbot Toolkit Enhanced Data Preparation (EDP) service provides adv - Python >=3.11 is required to run EDP. - A stand alone `redis` server for task management is required. -- A stand alone vector database deployed is required. List of supported databases can be found in [Configuration Reference › Vector database](../../docs/customize/configuration.md#vector-database) +- A stand alone vector database deployed is required. List of supported databases can be found in [Configuration Reference › Vector database](../../docs/configuration/configuration.md#vector-database) - A stand alone `postgresql` server for storing file and link entries is required. - A S3 compatible storage (one of the following) - A stand alone `SeaweedFS` server for storing files. This is included and optional. - - An external AWS S3 bucket. For step-by-step instructions on creating one with the AWS CLI, see [docs/customize/aws_s3.md](../../docs/customize/aws_s3.md). + - An external AWS S3 bucket. For step-by-step instructions on creating one with the AWS CLI, see [docs/configuration/aws-s3.md](../../docs/configuration/aws-s3.md). - External server compatible with the S3 API - Running application server: @@ -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: @@ -78,9 +78,9 @@ edp: bucketNameRegexFilter: ".*" ``` -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/customize/aws_s3.md](../../docs/customize/aws_s3.md). +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/deploy/install_rag.md). Deploy from the core installer root: +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 -./es_auto_installer.sh install erag --env +./toolkit_manager.sh install chatbot --env ``` After successful deployment, upload files using either WebGUI or cURL: @@ -119,7 +119,7 @@ curl -X PUT "https://localhost:9191/default/test.txt" --upload-file test.txt -H ## Storage Synchronization If the configured S3-compatible storage does not support bucket notifications, files uploaded to the storage will not be automatically registered in the EDP database, and they won't be visible in the Intel® Chatbot Toolkit UI. -To address this limitation, Enterprise DataPrep provides a pull-based synchronization mechanism. When enabled, it periodically scans the configured storage and updates the internal database accordingly. +To address this limitation, EDP provides a pull-based synchronization mechanism. When enabled, it periodically scans the configured storage and updates the internal database accordingly. To use it, edit the [deployment/components/edp/values.yaml](../../deployment/components/edp/values.yaml) file and set the `celery.config.scheduledSync.enabled` to `true`. @@ -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/edp/compliance-conf.yml b/src/edp/compliance-conf.yml index 677d93c7..280199e1 100644 --- a/src/edp/compliance-conf.yml +++ b/src/edp/compliance-conf.yml @@ -13,13 +13,3 @@ manual: - name: astral-sh/uv origin: github license: MIT -# openssl, openssl-provider-legacy and libssl added due to manual security updates - - name: openssl - origin: apt - license: Apache 2.0 - - name: libssl - origin: apt - license: Apache 2.0 - - name: openssl-provider-legacy - origin: apt - license: Apache 2.0 diff --git a/src/gmc/go.mod b/src/gmc/go.mod index 8ff20aef..169df92b 100644 --- a/src/gmc/go.mod +++ b/src/gmc/go.mod @@ -1,6 +1,6 @@ module erag.intel.com/gmc -go 1.26.9 +go 1.26.11 require ( github.com/MrAlias/otlpr v0.4.0 diff --git a/src/gmc/manager/Dockerfile b/src/gmc/manager/Dockerfile index 22be7952..c86b2fa2 100644 --- a/src/gmc/manager/Dockerfile +++ b/src/gmc/manager/Dockerfile @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # Build the manager binary -FROM golang:1.26.9 AS builder +FROM golang:1.26.11 AS builder ARG TARGETOS ARG TARGETARCH diff --git a/src/gmc/router/Dockerfile b/src/gmc/router/Dockerfile index 009f97c4..5f71eebc 100644 --- a/src/gmc/router/Dockerfile +++ b/src/gmc/router/Dockerfile @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # Build the router binary -FROM golang:1.26.9 AS builder +FROM golang:1.26.11 AS builder ARG TARGETOS ARG TARGETARCH 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/mcp_gateway/README.md b/src/mcp_gateway/README.md index a0386e25..09f6c0da 100644 --- a/src/mcp_gateway/README.md +++ b/src/mcp_gateway/README.md @@ -225,4 +225,4 @@ Every request carries its own token, including each tool-call POST. Session stat Every 401 carries `WWW-Authenticate: Bearer ..., resource_metadata=""` pointing at `/api/v1/mcp/.well-known/oauth-protected-resource` (RFC 9728), which lists the authorization server. A spec-compliant MCP client uses that to discover where to get a token and to refresh once the current one expires. `/api/v1/mcp/health` and the metadata document itself are the only unauthenticated paths. -See [`docs/mcp_integration.md`](../../docs/customize/mcp.md) for the full integration guide including deployment, routing and production client setup. +See [`../../docs/configuration/mcp.md`](../../docs/configuration/mcp.md) for the full integration guide including deployment, routing and production client setup. diff --git a/src/mcp_gateway/impl/microservice/Dockerfile b/src/mcp_gateway/impl/microservice/Dockerfile index 6313b09c..48b8b139 100644 --- a/src/mcp_gateway/impl/microservice/Dockerfile +++ b/src/mcp_gateway/impl/microservice/Dockerfile @@ -3,9 +3,7 @@ ARG python_version=3.11 ARG python_image_version=${python_version}-slim-trixie -# Pinned by digest so the base (and its OpenSSL) only changes when bumped here, -# keeping it in step with the openssl pin below. -ARG python_image_digest=sha256:bab1b7ef4b450c81002278d035eff85ebe394ae94df904f7a3ba14f7e16e487b +ARG python_image_digest=sha256:7032841967d07aa3353905945dc186901c89b6b319c61425f4439f677a4a8a34 FROM python:${python_image_version}@${python_image_digest} COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ @@ -13,10 +11,6 @@ COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /uvx /bin/ ENV LANG=C.UTF-8 ARG python_version -RUN apt-get -y update && \ - apt-get install -y --no-install-recommends --only-upgrade openssl=3.5.7-1~deb13u3 libssl3t64=3.5.7-1~deb13u3 openssl-provider-legacy=3.5.7-1~deb13u3 && \ - apt-get clean && rm -rf /var/lib/apt/lists/* - RUN rm -f /usr/bin/dmesg /usr/bin/base64 /usr/bin/perl RUN rm -rf /home/user/.local/lib/python${python_version}/site-packages/* RUN rm -rf /usr/local/lib/python${python_version}/site-packages/* diff --git a/src/mcp_gateway/impl/microservice/compliance-conf.yml b/src/mcp_gateway/impl/microservice/compliance-conf.yml index 87dd52c7..cf6f6d7d 100644 --- a/src/mcp_gateway/impl/microservice/compliance-conf.yml +++ b/src/mcp_gateway/impl/microservice/compliance-conf.yml @@ -11,13 +11,3 @@ manual: - name: astral-sh/uv origin: github license: MIT -# openssl, openssl-provider-legacy and libssl added due to manual security updates - - name: openssl - origin: apt - license: Apache 2.0 - - name: libssl - origin: apt - license: Apache 2.0 - - name: openssl-provider-legacy - origin: apt - license: Apache 2.0 diff --git a/src/tests/e2e/benchmarks/chatqna/README.md b/src/tests/e2e/benchmarks/chatqna/README.md index 545c1eb7..5699a5ef 100644 --- a/src/tests/e2e/benchmarks/chatqna/README.md +++ b/src/tests/e2e/benchmarks/chatqna/README.md @@ -1,6 +1,6 @@ # Intel® Chatbot Toolkit E2E benchmark ### Deploy Intel® Chatbot Toolkit and Adjust the parameters -Before running the E2E benchmark, ensure that Intel® Chatbot Toolkit is deployed and configured with the recommended parameters as outlined in the [Performance tuning tips](../../../../../docs/operate/performance.md) guide. +Before running the E2E benchmark, ensure that Intel® Chatbot Toolkit is deployed and configured with the recommended parameters as outlined in the [Performance tuning tips](../../../../../docs/configuration/performance.md) guide. ### Test prerequisites In order to be able to run the e2e performance benchmark you need to: @@ -8,13 +8,13 @@ In order to be able to run the e2e performance benchmark you need to: ```bash pip3 install -r requirements.txt ``` -* bash scripts assumes that Intel® Chatbot Toolkit is deployed under `solutions.ai` domain: - * if you are using the domain different than `solutions.ai` one you can overwrite it with `ERAG_DOMAIN_NAME` environmental variable +* bash scripts assumes that Intel® Chatbot Toolkit is deployed under `inteltoolkits.ai` domain: + * if you are using the domain different than `inteltoolkits.ai` one you can overwrite it with `ERAG_DOMAIN_NAME` environmental variable * this variable has the impact on all the bash helpers * for python based benchmark see the relevant section to specify your domain -* benchmark and the bash helpers rely only on https protocol and can be run from any machine with https connection to the RAG deployment, so you need to ensure that you have network (https) access to `solutions.ai` (or your own domain): - * configure `/etc/hosts`, so `solutions.ai` domain and subdomains points to your RAG deployment IP, for example: `127.0.0.1 minio.solutions.ai grafana.solutions.ai s3.solutions.ai solutions.ai keycloak.solutions.ai` - * export both `no_proxy` and `NO_PROXY` env variables, so they contain `solutions.ai` and `.solutions.ai` domains +* benchmark and the bash helpers rely only on https protocol and can be run from any machine with https connection to the RAG deployment, so you need to ensure that you have network (https) access to `inteltoolkits.ai` (or your own domain): + * configure `/etc/hosts`, so `inteltoolkits.ai` domain and subdomains points to your RAG deployment IP, for example: `127.0.0.1 minio.inteltoolkits.ai grafana.inteltoolkits.ai s3.inteltoolkits.ai inteltoolkits.ai keycloak.inteltoolkits.ai` + * export both `no_proxy` and `NO_PROXY` env variables, so they contain `inteltoolkits.ai` and `.inteltoolkits.ai` domains * export UI username and password of the account with administrative rights using `KEYCLOAK_CHATTOOL_ADMIN_USERNAME` and `KEYCLOAK_CHATTOOL_ADMIN_PASSWORD` env variables. You can read them directly from the `chattool-credentials` secret in the `keycloak` namespace: ```bash export KEYCLOAK_CHATTOOL_ADMIN_USERNAME=$(kubectl get secret -n keycloak chattool-credentials -o jsonpath='{.data.KEYCLOAK_CHATTOOL_ADMIN_USERNAME}' | base64 -d) @@ -58,7 +58,7 @@ After that, you can run the benchmark. You need to specify the following paramet * location of file with tokens `-b /tmp/uat.txt` * the tokenizer model for benchmark, which would be the same as the deployed LLM model `-m meta-llama/Llama-3.1-8B-Instruct` * (if you want to test with fixed number of input question tokens) specify the expected number of tokens `-x 512` -* (if you are running domain different than 'solutions.ai') specify the RAG url `-s "https://${ERAG_DOMAIN_NAME}/api/v1/chatqna"` +* (if you are running domain different than 'inteltoolkits.ai') specify the RAG url `-s "https://${ERAG_DOMAIN_NAME}/api/v1/chatqna"` ```bash python3 benchmark.py -f questions-pubmed.csv -d 30m -c 32 -b /tmp/uat.txt -m meta-llama/Llama-3.1-8B-Instruct ``` @@ -121,7 +121,7 @@ SWEEP_MODELS="qwen3-0-6b,llama3-8b-awq" \ Required env vars (must be exported before running): `KEYCLOAK_CHATTOOL_ADMIN_USERNAME`, `KEYCLOAK_CHATTOOL_ADMIN_PASSWORD`, `KEYCLOAK_REALM_ADMIN_USERNAME`, `KEYCLOAK_REALM_ADMIN_PASSWORD`. See the [Test prerequisites](#test-prerequisites) section above for the exact `kubectl` commands that read them out of the `keycloak` namespace secrets. Optional env vars (defaults shown): -* `ERAG_DOMAIN_NAME` – RAG deployment domain (default: `solutions.ai`) +* `ERAG_DOMAIN_NAME` – RAG deployment domain (default: `inteltoolkits.ai`) * `HF_TOKEN` – HuggingFace token, required for gated models * `BENCHMARK_DURATION` – duration per run (default: `10m`) * `UAT_FILE` – path for the generated user access tokens (default: `/tmp/uat.txt`) diff --git a/src/tests/e2e/benchmarks/chatqna/add_cert_to_ca.sh b/src/tests/e2e/benchmarks/chatqna/add_cert_to_ca.sh index 30219a2f..589c8d22 100755 --- a/src/tests/e2e/benchmarks/chatqna/add_cert_to_ca.sh +++ b/src/tests/e2e/benchmarks/chatqna/add_cert_to_ca.sh @@ -2,7 +2,7 @@ # Copyright (C) 2025 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -domain=${ERAG_DOMAIN_NAME:-solutions.ai} +domain=${ERAG_DOMAIN_NAME:-inteltoolkits.ai} # Hostnames whose self-signed certs we want as trusted CAs. # Keycloak runs on its own subdomain in the inference stack, so it diff --git a/src/tests/e2e/benchmarks/chatqna/benchmark.py b/src/tests/e2e/benchmarks/chatqna/benchmark.py index eb75b9ca..91fe7912 100644 --- a/src/tests/e2e/benchmarks/chatqna/benchmark.py +++ b/src/tests/e2e/benchmarks/chatqna/benchmark.py @@ -82,7 +82,7 @@ def __init__(self): def parse_args(): parser = argparse.ArgumentParser(description="Load testing tool.") parser.add_argument("-f", type=str, help="Question File Location") - parser.add_argument("-s", type=str, default="https://solutions.ai/api/v1/chatqna", help="Server Address format") + parser.add_argument("-s", type=str, default="https://inteltoolkits.ai/api/v1/chatqna", help="Server Address format") parser.add_argument("-c", type=int, default=32, help="Concurrency Number") parser.add_argument("-d", type=str, default="30m", help="Execute Duration, when to stop the test") parser.add_argument("-u", type=str, default="0s", help="Worker startup delay time") diff --git a/src/tests/e2e/benchmarks/chatqna/generate_uat_to_file.sh b/src/tests/e2e/benchmarks/chatqna/generate_uat_to_file.sh index 3b769807..6730f6d3 100755 --- a/src/tests/e2e/benchmarks/chatqna/generate_uat_to_file.sh +++ b/src/tests/e2e/benchmarks/chatqna/generate_uat_to_file.sh @@ -14,9 +14,9 @@ generate_uat_to_file() VITE_KEYCLOAK_REALM="ChatbotToolkit" VITE_KEYCLOAK_CLIENT_ID="ChatbotToolkit-oidc" if [[ "${ERAG_ROUTING_MODE:-subdomain}" == "path" ]]; then - VITE_KEYCLOAK_URL="https://${ERAG_DOMAIN_NAME:-solutions.ai}${KEYCLOAK_PATH:-/keycloak}" + VITE_KEYCLOAK_URL="https://${ERAG_DOMAIN_NAME:-inteltoolkits.ai}${KEYCLOAK_PATH:-/keycloak}" else - VITE_KEYCLOAK_URL="https://keycloak.${ERAG_DOMAIN_NAME:-solutions.ai}" + VITE_KEYCLOAK_URL="https://keycloak.${ERAG_DOMAIN_NAME:-inteltoolkits.ai}" fi if [[ -z "${KEYCLOAK_REALM_ADMIN_PASSWORD}" ]]; then diff --git a/src/tests/e2e/benchmarks/chatqna/prepare_1M_vectors.sh b/src/tests/e2e/benchmarks/chatqna/prepare_1M_vectors.sh index a5ebddbb..53f12b5c 100755 --- a/src/tests/e2e/benchmarks/chatqna/prepare_1M_vectors.sh +++ b/src/tests/e2e/benchmarks/chatqna/prepare_1M_vectors.sh @@ -13,7 +13,7 @@ if ! python3 -c "import defusedxml, requests, transformers, pandas" 2>/dev/null; fi # Ensure proxy bypass is configured for the Chatbot Toolkit domain -ERAG_DOMAIN="${ERAG_DOMAIN_NAME:-solutions.ai}" +ERAG_DOMAIN="${ERAG_DOMAIN_NAME:-inteltoolkits.ai}" proxy_ok=0 for proxy_var in no_proxy NO_PROXY; do if echo "${!proxy_var:-}" | grep -q "${ERAG_DOMAIN}"; then @@ -200,7 +200,7 @@ fill_with_wikipedia() } export TEMP_DIR="/tmp/ragdocumentsedp" -export EDP_URL="https://${ERAG_DOMAIN_NAME:-solutions.ai}/api/v1/edp" +export EDP_URL="https://${ERAG_DOMAIN_NAME:-inteltoolkits.ai}/api/v1/edp" export EXPECTED_VECTORS=${1:-1000000} if [ -n "$1" ]; then echo "Using non-default value for EXPECTED_VECTORS: $EXPECTED_VECTORS" diff --git a/src/tests/e2e/benchmarks/chatqna/prepare_change_max_tokens.sh b/src/tests/e2e/benchmarks/chatqna/prepare_change_max_tokens.sh index 8a34d709..0123665c 100755 --- a/src/tests/e2e/benchmarks/chatqna/prepare_change_max_tokens.sh +++ b/src/tests/e2e/benchmarks/chatqna/prepare_change_max_tokens.sh @@ -15,7 +15,7 @@ else tokens=$1 fi -url="https://${ERAG_DOMAIN_NAME:-solutions.ai}/v1/system_fingerprint/change_arguments?pipeline=chatqna&tenant=_global" +url="https://${ERAG_DOMAIN_NAME:-inteltoolkits.ai}/v1/system_fingerprint/change_arguments?pipeline=chatqna&tenant=_global" curl -H "Content-Type: application/json" -H "Authorization: Bearer ${USER_ACCESS_TOKEN}" -vkL ${url} -d '[ { "name": "llm", diff --git a/src/tests/e2e/benchmarks/chatqna/prepare_change_reranker.sh b/src/tests/e2e/benchmarks/chatqna/prepare_change_reranker.sh index aa48d5a4..53aa1748 100755 --- a/src/tests/e2e/benchmarks/chatqna/prepare_change_reranker.sh +++ b/src/tests/e2e/benchmarks/chatqna/prepare_change_reranker.sh @@ -15,7 +15,7 @@ else top_n=$1 fi -url="https://${ERAG_DOMAIN_NAME:-solutions.ai}/v1/system_fingerprint/change_arguments?pipeline=chatqna&tenant=_global" +url="https://${ERAG_DOMAIN_NAME:-inteltoolkits.ai}/v1/system_fingerprint/change_arguments?pipeline=chatqna&tenant=_global" curl -H "Content-Type: application/json" -H "Authorization: Bearer ${USER_ACCESS_TOKEN}" -vkL ${url} -d '[ { "name": "reranker", diff --git a/src/tests/e2e/benchmarks/chatqna/prepare_change_retriever.sh b/src/tests/e2e/benchmarks/chatqna/prepare_change_retriever.sh index f67b78c2..f0316b7c 100755 --- a/src/tests/e2e/benchmarks/chatqna/prepare_change_retriever.sh +++ b/src/tests/e2e/benchmarks/chatqna/prepare_change_retriever.sh @@ -15,7 +15,7 @@ else k=$1 fi -url="https://${ERAG_DOMAIN_NAME:-solutions.ai}/v1/system_fingerprint/change_arguments?pipeline=chatqna&tenant=_global" +url="https://${ERAG_DOMAIN_NAME:-inteltoolkits.ai}/v1/system_fingerprint/change_arguments?pipeline=chatqna&tenant=_global" curl -H "Content-Type: application/json" -H "Authorization: Bearer ${USER_ACCESS_TOKEN}" -vkL ${url} -d '[ { "name": "retriever", diff --git a/src/tests/e2e/benchmarks/chatqna/prepare_cleanup_vectors.sh b/src/tests/e2e/benchmarks/chatqna/prepare_cleanup_vectors.sh index 8ad4950b..fc9805de 100755 --- a/src/tests/e2e/benchmarks/chatqna/prepare_cleanup_vectors.sh +++ b/src/tests/e2e/benchmarks/chatqna/prepare_cleanup_vectors.sh @@ -31,6 +31,6 @@ delete_vectors() done < <(echo $upload_stat | jq -c '.[]') } -export EDP_URL="https://${ERAG_DOMAIN_NAME:-solutions.ai}/api/v1/edp" +export EDP_URL="https://${ERAG_DOMAIN_NAME:-inteltoolkits.ai}/api/v1/edp" refresh_uat delete_vectors diff --git a/src/tests/e2e/benchmarks/chatqna/run_benchmark_sweep.sh b/src/tests/e2e/benchmarks/chatqna/run_benchmark_sweep.sh index 8debd218..0e957787 100755 --- a/src/tests/e2e/benchmarks/chatqna/run_benchmark_sweep.sh +++ b/src/tests/e2e/benchmarks/chatqna/run_benchmark_sweep.sh @@ -15,7 +15,7 @@ # KEYCLOAK_REALM_ADMIN_PASSWORD – Realm admin password # # Optional environment variables (defaults shown): -# ERAG_DOMAIN_NAME – Chatbot Toolkit domain (default: solutions.ai) +# ERAG_DOMAIN_NAME – Chatbot Toolkit domain (default: inteltoolkits.ai) # HF_TOKEN – HuggingFace token, needed for gated models # BENCHMARK_DURATION – Duration per run (default: 10m) # UAT_FILE – Path for token storage (default: /tmp/uat.txt) @@ -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 `es_auto_installer.sh install application` +# 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 @@ -143,7 +143,7 @@ fi # ───────────────────────────────────────────────────────────────────────────── # Runtime settings (override via env vars) # ───────────────────────────────────────────────────────────────────────────── -ERAG_DOMAIN="${ERAG_DOMAIN_NAME:-solutions.ai}" +ERAG_DOMAIN="${ERAG_DOMAIN_NAME:-inteltoolkits.ai}" # Keep ERAG_DOMAIN_NAME exported so helper scripts (generate_uat_to_file.sh, # prepare_*.sh, add_cert_to_ca.sh) pick up the same domain when this script # only sets the default via ERAG_DOMAIN. @@ -154,23 +154,23 @@ TARGET_VECTORS="${TARGET_VECTORS:-1000000}" RESULTS_ROOT="${RESULTS_DIR:-}" # Auto-locate model-manager relative to this script — this file lives at -# /ext/enterprise.ai-erag/src/tests/e2e/benchmarks/chatqna/, so +# /ext/chatbot-toolkit/src/tests/e2e/benchmarks/chatqna/, so # the top-level model-manager entry-point is 7 levels up. Falls back to the -# canonical checkout under ext/enterprise.ai-inference/model_manager/. The +# canonical checkout under ext/inference-toolkit/model_manager/. The # MODEL_MANAGER env var stays as an escape hatch for non-standard layouts # but is not documented as user-facing configuration. if [[ -z "${MODEL_MANAGER:-}" ]]; then if [[ -x "${SCRIPT_DIR}/../../../../../../../model-manager" ]]; then MODEL_MANAGER="${SCRIPT_DIR}/../../../../../../../model-manager" - elif [[ -x "${SCRIPT_DIR}/../../../../../../enterprise.ai-inference/model_manager/model-manager" ]]; then - MODEL_MANAGER="${SCRIPT_DIR}/../../../../../../enterprise.ai-inference/model_manager/model-manager" + elif [[ -x "${SCRIPT_DIR}/../../../../../../inference-toolkit/model_manager/model-manager" ]]; then + MODEL_MANAGER="${SCRIPT_DIR}/../../../../../../inference-toolkit/model_manager/model-manager" else MODEL_MANAGER="${SCRIPT_DIR}/../../../../../../../model-manager" # keep for the error message below fi 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 application` 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}" @@ -318,7 +318,7 @@ check_prerequisites() { if [[ ! -x "$MODEL_MANAGER" ]]; then log_error "model-manager CLI not found. Auto-detection looked for:" log_error " ${SCRIPT_DIR}/../../../../../../../model-manager" - log_error " ${SCRIPT_DIR}/../../../../../../enterprise.ai-inference/model_manager/model-manager" + log_error " ${SCRIPT_DIR}/../../../../../../inference-toolkit/model_manager/model-manager" log_error "This script expects the Toolkit Manager repo layout." errors=$((errors + 1)) else @@ -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 'es_auto_installer.sh install application')" + 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 aa894773..cddc0898 100644 --- a/src/tests/e2e/conftest.py +++ b/src/tests/e2e/conftest.py @@ -34,8 +34,10 @@ from tests.e2e.helpers.translation_helper import TranslationHelper # List of namespaces to fetch logs from -NAMESPACES = ["auth", "auth-apisix", "chat-history", "chatqna", "docsum", "edp", "erag-gateway", "fingerprint", - "istio-system", "mcp-gateway", "rag-ui", "seaweedfs", "system", "translation", "vdb"] +NAMESPACES = ["audio", "auth", "auth-apisix", "chat-history", "chatqna", "docsum", "edp", "envoy-ai-gateway-system", + "envoy-gateway-system", "erag-gateway", "fingerprint", "istio-system", "keycloak", "kserve", + "llm-inference", "mcp-gateway", "model-manager", "postgresql", "rag-ui", "seaweedfs", "system", + "translation", "vdb"] TEST_LOGS_DIR = "test_logs" logger = logging.getLogger(__name__) @@ -87,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): @@ -112,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): @@ -434,7 +436,11 @@ def collect_k8s_logs(request): api = kr8s.api() for namespace in NAMESPACES: - pods = api.get("pods", namespace=namespace) + try: + pods = list(api.get("pods", namespace=namespace)) + except Exception as e: + logger.warning(f"Failed to list pods in namespace {namespace}: {e}") + continue for pod in pods: pod_name = pod.metadata.name diff --git a/src/tests/e2e/evals/evaluation/rag_eval/README.md b/src/tests/e2e/evals/evaluation/rag_eval/README.md index 40d48b2d..04b18661 100644 --- a/src/tests/e2e/evals/evaluation/rag_eval/README.md +++ b/src/tests/e2e/evals/evaluation/rag_eval/README.md @@ -59,7 +59,7 @@ Export the `PYTHONPATH` environment variable pointing to the `src` folder in thi ### Launch Service of RAG System -Please refer to this [guide](../../../../../../docs/deploy/install_rag.md) to launch the service of RAG system. +Please refer to this [guide](../../../../../../docs/deployment/install-rag.md) to launch the service of RAG system. > [!WARNING] > The RAG service must be accessible locally. Ensure no network restrictions or proxies block local access. @@ -67,14 +67,14 @@ Please refer to this [guide](../../../../../../docs/deploy/install_rag.md) to la If your system uses a proxy, ensure the no_proxy environment variable includes the following to allow local access without proxying: ```sh -export no_proxy=localhost,127.0.0.1,solutions.ai,s3.solutions.ai,keycloak.solutions.ai +export no_proxy=localhost,127.0.0.1,inteltoolkits.ai,s3.inteltoolkits.ai,keycloak.inteltoolkits.ai ``` > [!IMPORTANT] > **Configure /etc/hosts**: Ensure that the RAG system domains are added to your `/etc/hosts` file to resolve to localhost. > For example, the updated file content should resemble the following: > ``` -> 127.0.0.1 solutions.ai grafana.solutions.ai keycloak.solutions.ai s3.solutions.ai minio.solutions.ai +> 127.0.0.1 inteltoolkits.ai grafana.inteltoolkits.ai keycloak.inteltoolkits.ai s3.inteltoolkits.ai minio.inteltoolkits.ai > ``` ### Launch Service of LLM-as-a-Judge @@ -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) | @@ -356,7 +356,7 @@ This section outlines how to run MultiHop evaluation of the RAG pipeline using [ > ``` > This typically means your `no_proxy` environment variable is not configured correctly. Ensure it includes all required domains: > ```bash - > export no_proxy=localhost,127.0.0.1,solutions.ai,s3.solutions.ai,keycloak.solutions.ai + > export no_proxy=localhost,127.0.0.1,inteltoolkits.ai,s3.inteltoolkits.ai,keycloak.inteltoolkits.ai > ``` > Then retry the evaluation. 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/istio_helper.py b/src/tests/e2e/helpers/istio_helper.py index a25ac4dd..671559a9 100644 --- a/src/tests/e2e/helpers/istio_helper.py +++ b/src/tests/e2e/helpers/istio_helper.py @@ -221,7 +221,7 @@ def __init__(self, connection_type, namespace_name, node_name: Optional[str] = N self.namespace_name = namespace_name self.node_name = node_name if connection_type == ConnectionType.REDIS: - self.image = "redis:8.2.2" + self.image = "redis:8.2.11" elif connection_type == ConnectionType.POSTGRESQL: self.image = "postgres:16-alpine" elif connection_type == ConnectionType.MONGODB: diff --git a/src/tests/e2e/helpers/k8s_helper.py b/src/tests/e2e/helpers/k8s_helper.py index 381ec77d..0cf9cca5 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""" @@ -167,13 +167,23 @@ def wait_for_pod_ready(self, namespace, label_selector, timeout=300): ) def get_pod_logs(self, namespace, label_selector, since_seconds=None): - """Get logs from all pods matching a label selector""" + """Get logs from all pods matching a label selector. + + Pods whose container has not started yet are skipped; the log API answers them with + 400 "is waiting to start". + """ all_logs = [] for pod in kr8s.get("pods", namespace=namespace, label_selector=label_selector): kwargs = {} if since_seconds: kwargs["since_seconds"] = since_seconds - log_lines = list(pod.logs(**kwargs)) + try: + log_lines = list(pod.logs(**kwargs)) + except kr8s.ServerError as e: + if "is waiting to start" not in str(e): + raise + logger.info(f"Skipping logs of pod '{pod.name}', its container has not started yet: {e}") + continue all_logs.append({"pod": pod.name, "logs": "\n".join(log_lines)}) return all_logs diff --git a/src/tests/e2e/helpers/mcp_helper.py b/src/tests/e2e/helpers/mcp_helper.py index 301997c5..a94a15c3 100644 --- a/src/tests/e2e/helpers/mcp_helper.py +++ b/src/tests/e2e/helpers/mcp_helper.py @@ -22,6 +22,15 @@ logger = logging.getLogger(__name__) TOOL_CALL_TIMEOUT = 120 +SESSION_ATTEMPTS = 6 +SESSION_RETRY_DELAY = 15 + + +def _is_unauthorized(error: BaseException) -> bool: + """True for an HTTP 401, also when nested in an ExceptionGroup.""" + if isinstance(error, httpx.HTTPStatusError): + return error.response.status_code == 401 + return any(_is_unauthorized(exc) for exc in getattr(error, "exceptions", None) or ()) def _describe(error: BaseException) -> str: @@ -124,12 +133,7 @@ def __init__(self, credentials_file): self._token_provider = McpTokenProvider( self.token_url, self._credentials["client_id"], self._credentials["client_secret"] ) - self._loop = None - self._thread = None - self._session = None - self._error = None - self._ready = threading.Event() - self._start_session() + self._start_session_with_retry() def _load_mcp_credentials(self, credentials_file) -> dict[str, str]: """Parse MCP_CLIENT_ID and MCP_CLIENT_SECRET from the credentials file.""" @@ -173,6 +177,28 @@ def _httpx_client_factory( auth=_BearerAuth(self._token_provider.token), ) + def _start_session_with_retry(self): + """Start the MCP session, retrying 401 past the gateway's 60s JWKS refresh. + + Keycloak creates the RS384 key with the first token, so a 401 just after deploy is transient. + """ + for attempt in range(1, SESSION_ATTEMPTS + 1): + try: + self._start_session() + except RuntimeError: + if not _is_unauthorized(self._error) or attempt == SESSION_ATTEMPTS: + raise + self._thread.join(timeout=5) + self._loop.close() + logger.warning( + "MCP session attempt %d/%d got 401 Unauthorized from %s; retrying in %ds", + attempt, SESSION_ATTEMPTS, self.mcp_sse_url, SESSION_RETRY_DELAY, + ) + time.sleep(SESSION_RETRY_DELAY) + continue + logger.info("MCP session initialized on attempt %d/%d", attempt, SESSION_ATTEMPTS) + return + def _start_session(self): """Spin up background thread with an asyncio event loop running the MCP session. @@ -180,6 +206,9 @@ def _start_session(self): complete). Whatever went wrong in the background thread is re-raised here, since a bare timeout says nothing about which of token, transport or handshake failed. """ + self._session = None + self._error = None + self._ready = threading.Event() self._loop = asyncio.new_event_loop() self._thread = threading.Thread(target=self._run_session, daemon=True) self._thread.start() 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 6ef6b83e..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 `es_auto_installer.sh backup --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: ./es_auto_installer.sh backup --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 4afcef8e..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 `es_auto_installer.sh restore --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: ./es_auto_installer.sh restore --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 2dc9e389..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 `es_auto_installer.sh backup --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 6c3c1e0b..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,22 +164,22 @@ def _verify_layer(k8s_helper, layer): @allure.testcase("DSPTV-T217") -def test_uninstall_erag(k8s_helper): - """After `es_auto_installer.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") def test_uninstall_inference(k8s_helper): - """After `es_auto_installer.sh teardown inference`, the inference layer must be fully gone + """After `toolkit_manager.sh teardown inference`, the inference layer must be fully gone while the platform layer below it stays intact.""" _verify_layer(k8s_helper, "inference") @allure.testcase("DSPTV-T219") def test_uninstall_platform(k8s_helper): - """After `es_auto_installer.sh teardown platform`, the platform layer must be fully gone, + """After `toolkit_manager.sh teardown platform`, the platform layer must be fully gone, leaving only the bare Kubernetes cluster (infrastructure layer).""" _verify_layer(k8s_helper, "platform") diff --git a/src/tests/e2e/lifecycle/uninstall_layers.yaml b/src/tests/e2e/lifecycle/uninstall_layers.yaml index 569423fa..a778425e 100644 --- a/src/tests/e2e/lifecycle/uninstall_layers.yaml +++ b/src/tests/e2e/lifecycle/uninstall_layers.yaml @@ -1,9 +1,9 @@ # Copyright (C) 2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # -# Expected cluster state after an es_auto_installer.sh layered teardown. +# 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/e2e/validation/test_debug_tool.py b/src/tests/e2e/validation/test_debug_tool.py index 61ff60dc..10e44bbc 100644 --- a/src/tests/e2e/validation/test_debug_tool.py +++ b/src/tests/e2e/validation/test_debug_tool.py @@ -25,7 +25,7 @@ # Expected files in debug_bundle root EXPECTED_FILES = [ "global_config_redacted.yaml", - "config.erag_redacted.yaml", + "config.chatbot_redacted.yaml", "config.inference_redacted.yaml", "SUMMARY.json", "debug_tool_execution.log", diff --git a/src/tests/e2e/validation/test_istio.py b/src/tests/e2e/validation/test_istio.py index 20de877d..e52d2a21 100644 --- a/src/tests/e2e/validation/test_istio.py +++ b/src/tests/e2e/validation/test_istio.py @@ -166,31 +166,30 @@ } +VECTOR_DB_SERVICES = [ + ("vdb-redis-cluster-headless", 6379, ConnectionType.REDIS), + ("vdb-redis-headless", 6379, ConnectionType.REDIS), + # Milvus serves gRPC; curl only has to open the TCP connection for ztunnel to log the decision. + ("milvus", 19530, ConnectionType.HTTP), +] + + def get_vector_db_endpoints(): if not cfg.get("vector_databases_enabled"): - return [] - - # Check for redis-cluster implementation first - try: - services = list(kr8s.get("services", "vdb-redis-cluster-headless", namespace="vdb")) - if len(services) == 1: - service = services[0] - logger.info("Found redis-cluster vector DB service: %s", service.name) - return [f"{service.name}.vdb.svc.cluster.local:6379"] - except (RuntimeError, ValueError, AttributeError): - pass - - # Check for redis implementation - try: - services = list(kr8s.get("services", "vdb-redis-headless", namespace="vdb")) - if len(services) == 1: - service = services[0] - logger.info("Found redis vector DB service: %s", service.name) - return [f"{service.name}.vdb.svc.cluster.local:6379"] - except (RuntimeError, ValueError, AttributeError): - pass - - raise RuntimeError("No vector database services found with expected names (vdb-redis-cluster or vdb-redis)") + return {} + + for name, port, connection_type in VECTOR_DB_SERVICES: + try: + services = list(kr8s.get("services", name, namespace="vdb")) + if len(services) == 1: + service = services[0] + logger.info("Found vector DB service: %s", service.name) + return {connection_type: [f"{service.name}.vdb.svc.cluster.local:{port}"]} + except (RuntimeError, ValueError, AttributeError): + continue + + names = ", ".join(name for name, _, _ in VECTOR_DB_SERVICES) + raise RuntimeError(f"No vector database services found with expected names ({names})") def get_edp_redis_endpoints(): @@ -203,9 +202,9 @@ def get_edp_redis_endpoints(): def prepare_tests(istio_helper): logger.info("============= Prepare Istio Authorization tests =====================") - # Dynamically populate redis endpoints redis_endpoints.extend(get_edp_redis_endpoints()) - redis_endpoints.extend(get_vector_db_endpoints()) + for connection_type, endpoints in get_vector_db_endpoints().items(): + istio_test_data[connection_type].extend(endpoints) istio_helper.create_namespace(inmesh=True) endpoints = {endpoint: connection_type for connection_type, endpoint_list in istio_test_data.items() for endpoint in endpoint_list} diff --git a/src/tests/unit/cores/test_utils.py b/src/tests/unit/cores/test_utils.py new file mode 100644 index 00000000..ff332c02 --- /dev/null +++ b/src/tests/unit/cores/test_utils.py @@ -0,0 +1,17 @@ +# Copyright (C) 2024-2026 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +import pytest + +from comps.cores.utils.utils import document_title + + +@pytest.mark.parametrize("metadata, expected", [ + ({"file_title": "Annual Report v1.2", "filename": "report.pdf"}, "Annual Report v1.2"), + ({"filename": "Veldrix Tormanheim - Project Nexus.txt"}, "Veldrix Tormanheim - Project Nexus"), + ({"bucket_name": "default", "object_name": "folder/Project Nexus.txt"}, "Project Nexus"), + ({"url": "https://example.com/"}, ""), + ({}, ""), +]) +def test_document_title(metadata, expected): + assert document_title(metadata) == expected diff --git a/src/tests/unit/fingerprint_invariants/test_guard_deployment.py b/src/tests/unit/fingerprint_invariants/test_guard_deployment.py index 5567ba82..2cfe0be5 100644 --- a/src/tests/unit/fingerprint_invariants/test_guard_deployment.py +++ b/src/tests/unit/fingerprint_invariants/test_guard_deployment.py @@ -93,6 +93,37 @@ def test_get_gmconnector_propagates_other_api_errors(): K8sHelper().get_gmconnector("chatqna") +def _pod(name, lines=(), error=None): + pod = MagicMock() + pod.name = name + pod.logs.side_effect = error + pod.logs.return_value = iter(lines) + return pod + + +def test_get_pod_logs_skips_a_pod_whose_container_has_not_started(): + """A replica the autoscaler has just added has no logs yet; the other pods are still read.""" + starting = _pod("extractor-b", error=kr8s.ServerError( + 'container "edp-text-extractor" in pod "extractor-b" is waiting to start: ContainerCreating')) + pods = [_pod("extractor-a", ["start fetch", "Saved file"]), starting] + + with patch("tests.e2e.helpers.k8s_helper.kr8s.get", return_value=iter(pods)): + logs = K8sHelper().get_pod_logs("edp", "app.kubernetes.io/name=edp-text-extractor", since_seconds=60) + + assert logs == [{"pod": "extractor-a", "logs": "start fetch\nSaved file"}] + + +def test_get_pod_logs_propagates_other_api_errors(): + """A denied log read is a cluster problem to surface, not a pod that is still starting.""" + denied = _pod("extractor-a", error=kr8s.ServerError( + 'pods "extractor-a" is forbidden: cannot get resource "pods/log"', + response=MagicMock(status_code=403))) + + with patch("tests.e2e.helpers.k8s_helper.kr8s.get", return_value=iter([denied])): + with pytest.raises(kr8s.ServerError): + K8sHelper().get_pod_logs("edp", "app.kubernetes.io/name=edp-text-extractor") + + def test_setup_skips_a_guard_that_is_not_deployed(): fingerprint = MagicMock() guard_helper = GuardHelper(MagicMock(), fingerprint, deployed_guards=(GuardType.INPUT,)) diff --git a/src/tests/unit/prompt_template/test_utils_erag_prompt_template.py b/src/tests/unit/prompt_template/test_utils_erag_prompt_template.py index 0278962e..a6df91e4 100644 --- a/src/tests/unit/prompt_template/test_utils_erag_prompt_template.py +++ b/src/tests/unit/prompt_template/test_utils_erag_prompt_template.py @@ -697,3 +697,14 @@ async def test_contextual_templates_survive_fingerprint_default(test_class): assert "Search results" not in system_msg.content expected_system = template_system_english_no_context.format().strip() assert system_msg.content == expected_system + + +@pytest.mark.parametrize("metadata, expected_title", [ + ({"object_name": "folder/Veldrix Tormanheim - Project Nexus.txt", "bucket_name": "default"}, '"Veldrix Tormanheim - Project Nexus"'), + ({"filename": "report.pdf", "object_name": "report.pdf", "bucket_name": "default"}, '"report"'), + ({"file_title": "Annual Report v1.2", "object_name": "report.pdf", "bucket_name": "default"}, '"Annual Report v1.2"'), +]) +def test_parse_reranked_docs_title_from_file_name(test_class, metadata, expected_title): + doc = TextDoc(text="Body", metadata={**metadata, "citation_id": "1"}) + result = test_class._parse_reranked_docs(DocList([doc])) + assert result.startswith(f"[1] ({metadata['bucket_name']}/{metadata['object_name']}) {expected_title}\n") diff --git a/src/tests/unit/reranks/test_utils_erag_reranking.py b/src/tests/unit/reranks/test_utils_erag_reranking.py index ea0a1279..32ca7d64 100644 --- a/src/tests/unit/reranks/test_utils_erag_reranking.py +++ b/src/tests/unit/reranks/test_utils_erag_reranking.py @@ -1,7 +1,7 @@ # Copyright (C) 2024-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from unittest.mock import patch #, AsyncMock +from unittest.mock import AsyncMock, patch import pytest @@ -370,3 +370,55 @@ async def test_async_call_reranker_vllm_normalises_data_wrapper(vllm_reranker): result = await vllm_reranker._async_call_reranker("What is DL?", ["DL is not...", "DL is..."]) assert result == [{"index": 1, "score": 0.9}, {"index": 0, "score": 0.3}] + + +def _doc(text, **metadata): + return TextDoc(text=text, metadata=metadata) + + +async def _score(reranker, docs, scores): + with patch.object(reranker, "_async_call_reranker", AsyncMock(return_value=scores)) as call: + result = await reranker._score_with_titles("question", docs) + return call.call_args.args[1], result + + +@pytest.mark.asyncio +async def test_score_with_titles_lifts_only_the_best_chunk_of_each_file(test_class): + docs = [_doc("a1", object_name="a.txt"), _doc("a2", object_name="a.txt"), _doc("b1", object_name="b.txt"), _doc("link", url="https://example.com/")] + scores = [{"index": 0, "score": 0.01}, {"index": 1, "score": 0.015}, {"index": 2, "score": 0.9}, {"index": 3, "score": 0.3}, + {"index": 4, "score": 0.6}, {"index": 5, "score": 0.1}] + texts, result = await _score(test_class, docs, scores) + assert texts == ["a1", "a2", "b1", "link", "a", "b"] + assert result == [{"index": 0, "score": 0.01}, {"index": 1, "score": 0.6}, {"index": 2, "score": 0.9}, {"index": 3, "score": 0.3}] + + +@pytest.mark.asyncio +async def test_score_with_titles_lifts_each_file_sharing_a_title(test_class): + docs = [_doc("x", bucket_name="one", object_name="report.pdf"), _doc("y", bucket_name="two", object_name="report.pdf")] + _, result = await _score(test_class, docs, [{"index": 0, "score": 0.01}, {"index": 1, "score": 0.001}, {"index": 2, "score": 0.5}]) + assert result == [{"index": 0, "score": 0.5}, {"index": 1, "score": 0.5}] + + +@pytest.mark.asyncio +async def test_score_with_titles_never_lowers_a_score(test_class): + _, result = await _score(test_class, [_doc("x", object_name="a.txt")], [{"index": 0, "score": 0.5}, {"index": 1, "score": 0.001}]) + assert result == [{"index": 0, "score": 0.5}] + + +@pytest.mark.asyncio +async def test_run_scores_titles_separately_and_returns_original_text(test_class): + input_data = SearchedDoc( + user_prompt="Who is associated with Project Nexus?", + retrieved_docs=[ + TextDoc(text="Quarterly update", metadata={"bucket_name": "default", "object_name": "Veldrix Tormanheim - Project Nexus.txt"}), + TextDoc(text="Unrelated", metadata={"bucket_name": "default", "object_name": "other.txt"}), + ], + top_n=1, + ) + scores = [{"index": 0, "score": 0.0001}, {"index": 1, "score": 0.01}, {"index": 2, "score": 0.19}, {"index": 3, "score": 0.0}] + with patch.object(test_class, "_async_call_reranker", AsyncMock(return_value=scores)) as call: + result = await test_class.run(input_data) + + assert call.call_args.args[1] == ["Quarterly update", "Unrelated", "Veldrix Tormanheim - Project Nexus", "other"] + assert [d.text for d in result.data["reranked_docs"]] == ["Quarterly update"] + assert result.data["reranked_docs"][0].metadata["reranker_score"] == 0.19 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 3c514c48..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/deploy/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/deploy/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" / "deploy" / "install_rag.md").read_text() diff --git a/src/tests/unit/scripts/test_shared_role_defaults.py b/src/tests/unit/scripts/test_shared_role_defaults.py index f1eb4a40..29dbc9f0 100644 --- a/src/tests/unit/scripts/test_shared_role_defaults.py +++ b/src/tests/unit/scripts/test_shared_role_defaults.py @@ -28,10 +28,10 @@ # The one accepted definition of each shared default. CANONICAL = { - "ui_domain_name": "{{ base_domain_name | default('solutions.ai') }}", + "ui_domain_name": "{{ base_domain_name | default('inteltoolkits.ai') }}", "chattool_keycloak_domain_name": ( - "{{ (base_domain_name | default('solutions.ai')) if (routing_mode | default('subdomain')) == 'path'" - " else 'keycloak.' ~ (base_domain_name | default('solutions.ai')) }}" + "{{ (base_domain_name | default('inteltoolkits.ai')) if (routing_mode | default('subdomain')) == 'path'" + " else 'keycloak.' ~ (base_domain_name | default('inteltoolkits.ai')) }}" ), "chattool_keycloak_default_path_prefix": "{{ keycloak_path | default('/keycloak') }}", "data_consistency_report_dir": "{{ env_dir }}/reports", 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() diff --git a/src/tests/unit/vectorstores/test_erag_connector_milvus.py b/src/tests/unit/vectorstores/test_erag_connector_milvus.py index 8efd87b0..e8bcfefe 100644 --- a/src/tests/unit/vectorstores/test_erag_connector_milvus.py +++ b/src/tests/unit/vectorstores/test_erag_connector_milvus.py @@ -30,10 +30,19 @@ def milvus_env(monkeypatch): monkeypatch.delenv("VECTOR_ALGORITHM", raising=False) monkeypatch.delenv("VECTOR_DISTANCE_METRIC", raising=False) monkeypatch.delenv("VECTOR_DIMS", raising=False) + monkeypatch.delenv("EMBEDDING_MODEL_NAME", raising=False) for name in ("VECTOR_HNSW_M", "VECTOR_HNSW_EF_CONSTRUCTION", "VECTOR_HNSW_EF_RUNTIME", "VECTOR_HNSW_EPSILON"): monkeypatch.delenv(name, raising=False) +def described(dims=768): + """A /collections/describe payload whose embedding field has the given dimension.""" + return {"fields": [ + {"name": "id", "type": "Int64"}, + {"name": "embedding", "type": "FloatVector", "params": [{"key": "dim", "value": str(dims)}]}, + ]} + + class Seq(list): """Marks a list as successive responses rather than one list-shaped payload.""" @@ -69,7 +78,7 @@ def __init__(self, payload, status=200): @pytest.fixture def http(): - fake = FakeHttp({"/collections/has": {"has": True}}) + fake = FakeHttp({"/collections/has": {"has": True}, "/collections/describe": described()}) with mock.patch( "comps.vectorstores.utils.connectors.connector_milvus.urllib3.PoolManager", return_value=fake, @@ -163,6 +172,7 @@ def test_vector_schema_from_env(milvus_env, http, monkeypatch): monkeypatch.setenv("VECTOR_DIMS", "1024") monkeypatch.setenv("VECTOR_DATATYPE", "FLOAT32") monkeypatch.setenv("VECTOR_DISTANCE_METRIC", "COSINE") + http.payloads["/collections/describe"] = described(1024) assert ConnectorMilvus()._vector_schema_from_env() == { "algorithm": "HNSW", @@ -175,6 +185,63 @@ def test_vector_schema_from_env(milvus_env, http, monkeypatch): def test_existing_collection_is_not_recreated(milvus_env, http): ConnectorMilvus() assert http.bodies("/collections/create") == [] + assert http.bodies("/collections/drop") == [] + assert len(http.bodies("/collections/describe")) == 1 + + +def test_existing_collection_with_other_dims_fails_at_startup(milvus_env, monkeypatch): + monkeypatch.setenv("VECTOR_DIMS", "1024") + fake = FakeHttp({"/collections/has": {"has": True}, "/collections/describe": described(768)}) + with mock.patch( + "comps.vectorstores.utils.connectors.connector_milvus.urllib3.PoolManager", + return_value=fake, + ): + with pytest.raises(RuntimeError, match="dimension 768, but VECTOR_DIMS is 1024"): + ConnectorMilvus() + assert fake.bodies("/collections/drop") == [] + assert fake.bodies("/collections/create") == [] + + +@pytest.mark.parametrize("model, dims, expected", [ + ("nomic-embed", 768, "vdb_nomic_embed_768"), + ("e5-large-instruct", 1024, "vdb_e5_large_instruct_1024"), + ("BAAI/bge-base-en-v1.5", 768, "vdb_baai_bge_base_en_v1_5_768"), +]) +def test_default_collection_name_carries_model_and_dims(milvus_env, monkeypatch, model, dims, expected): + monkeypatch.delenv("MILVUS_VECTOR_COLLECTION") + monkeypatch.setenv("EMBEDDING_MODEL_NAME", model) + monkeypatch.setenv("VECTOR_DIMS", str(dims)) + fake = FakeHttp({"/collections/has": {"has": False}}) + with mock.patch( + "comps.vectorstores.utils.connectors.connector_milvus.urllib3.PoolManager", + return_value=fake, + ): + connector = ConnectorMilvus() + assert connector.collection_name == expected + assert fake.bodies("/collections/create")[0]["collectionName"] == expected + + +def test_same_dims_model_switch_gets_a_new_collection(milvus_env, monkeypatch): + monkeypatch.delenv("MILVUS_VECTOR_COLLECTION") + names = [] + for model in ("nomic-embed", "bge-base-en"): + monkeypatch.setenv("EMBEDDING_MODEL_NAME", model) + with mock.patch( + "comps.vectorstores.utils.connectors.connector_milvus.urllib3.PoolManager", + return_value=FakeHttp({"/collections/has": {"has": False}}), + ): + names.append(ConnectorMilvus().collection_name) + assert names[0] != names[1] + + +def test_unreadable_dims_do_not_block_startup(milvus_env, monkeypatch, caplog): + fake = FakeHttp({"/collections/has": {"has": True}, "/collections/describe": {"fields": []}}) + with mock.patch( + "comps.vectorstores.utils.connectors.connector_milvus.urllib3.PoolManager", + return_value=fake, + ): + ConnectorMilvus() + assert "skipping the dimension check" in caplog.text def test_hnsw_index_and_search_params(milvus_env, monkeypatch): @@ -389,19 +456,16 @@ def _siblings_http(search_hit, query_pages): }) -def test_siblings_pick_nearest_chunk_on_each_side(milvus_env): +@pytest.mark.parametrize("encode", [lambda m: m, json.dumps], ids=["dict", "json_string"]) +def test_siblings_pick_nearest_chunk_on_each_side(milvus_env, encode): + def row(id_, text, start_index): + return {"id": id_, "text": text, "metadata": encode({"file_id": "f1", "start_index": start_index})} + fake = _siblings_http( - {"id": 7, "distance": 0.1, "text": "match", - "metadata": {"file_id": "f1", "start_index": 100}}, + {**row(7, "match", 100), "distance": 0.1}, [ - [ - {"id": 1, "text": "far before", "metadata": {"file_id": "f1", "start_index": 10}}, - {"id": 2, "text": "just before", "metadata": {"file_id": "f1", "start_index": 90}}, - ], - [ - {"id": 4, "text": "far after", "metadata": {"file_id": "f1", "start_index": 300}}, - {"id": 3, "text": "just after", "metadata": {"file_id": "f1", "start_index": 110}}, - ], + [row(1, "far before", 10), row(2, "just before", 90)], + [row(4, "far after", 300), row(3, "just after", 110)], ], ) with mock.patch( @@ -412,6 +476,7 @@ def test_siblings_pick_nearest_chunk_on_each_side(milvus_env): result = asyncio.run(connector.similarity_search_with_siblings("q", [0.1], k=1)) assert [doc.text for doc in result.sibling_docs["7"]] == ["just before", "just after"] + assert [doc.metadata["start_index"] for doc in result.sibling_docs["7"]] == [90, 110] assert fake.bodies("/entities/query")[0]["filter"] == ( 'metadata["file_id"] == "f1" and metadata["start_index"] < 100' ) diff --git a/src/ui/apps/audioqna/.env.development b/src/ui/apps/audioqna/.env.development index d383cecf..6718c699 100644 --- a/src/ui/apps/audioqna/.env.development +++ b/src/ui/apps/audioqna/.env.development @@ -1,14 +1,14 @@ # Copyright (C) 2024-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -VITE_KEYCLOAK_URL=https://keycloak.solutions.ai +VITE_KEYCLOAK_URL=https://keycloak.inteltoolkits.ai VITE_KEYCLOAK_REALM=ChatbotToolkit VITE_KEYCLOAK_CLIENT_ID=ChatbotToolkit-oidc VITE_ADMIN_RESOURCE_ROLE=CHATTOOL-admin VITE_USER_RESOURCE_ROLE=CHATTOOL-user VITE_MAINTAINER_RESOURCE_ROLE=CHATTOOL-maintainer -VITE_GRAFANA_DASHBOARD_URL=https://grafana.solutions.ai -VITE_KEYCLOAK_ADMIN_PANEL_URL=https://keycloak.solutions.ai -VITE_S3_URL=https://s3.solutions.ai +VITE_GRAFANA_DASHBOARD_URL=https://grafana.inteltoolkits.ai +VITE_KEYCLOAK_ADMIN_PANEL_URL=https://keycloak.inteltoolkits.ai +VITE_S3_URL=https://s3.inteltoolkits.ai VITE_CHAT_DISCLAIMER_TEXT="Responses from this solution may require further verification. You are solely responsible for verifying the accuracy of the information provided and how you choose to use it." VITE_NER_ENABLED=false diff --git a/src/ui/apps/audioqna/vite.config.ts b/src/ui/apps/audioqna/vite.config.ts index 5d3a2424..5a27cd6c 100644 --- a/src/ui/apps/audioqna/vite.config.ts +++ b/src/ui/apps/audioqna/vite.config.ts @@ -56,42 +56,42 @@ export default defineConfig({ server: { proxy: { "^/api/v1/chatqna$": { - target: "https://solutions.ai", + target: "https://inteltoolkits.ai", changeOrigin: true, secure: false, }, "^/v1/chat_history": { - target: "https://solutions.ai", + target: "https://inteltoolkits.ai", changeOrigin: true, secure: false, }, "^/v1/audio/transcriptions": { - target: "https://solutions.ai", + target: "https://inteltoolkits.ai", changeOrigin: true, secure: false, }, "^/v1/audio/speech$": { - target: "https://solutions.ai", + target: "https://inteltoolkits.ai", changeOrigin: true, secure: false, }, "^/v1/system_fingerprint": { - target: "https://solutions.ai", + target: "https://inteltoolkits.ai", changeOrigin: true, secure: false, }, "^/api/v1/chatqna/status$": { - target: "https://solutions.ai", + target: "https://inteltoolkits.ai", changeOrigin: true, secure: false, }, "^/api/v1/audio/status$": { - target: "https://solutions.ai", + target: "https://inteltoolkits.ai", changeOrigin: true, secure: false, }, "^/api/v1/edp": { - target: "https://solutions.ai", + target: "https://inteltoolkits.ai", changeOrigin: true, secure: false, }, diff --git a/src/ui/apps/chatqna/.env.development b/src/ui/apps/chatqna/.env.development index d383cecf..6718c699 100644 --- a/src/ui/apps/chatqna/.env.development +++ b/src/ui/apps/chatqna/.env.development @@ -1,14 +1,14 @@ # Copyright (C) 2024-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -VITE_KEYCLOAK_URL=https://keycloak.solutions.ai +VITE_KEYCLOAK_URL=https://keycloak.inteltoolkits.ai VITE_KEYCLOAK_REALM=ChatbotToolkit VITE_KEYCLOAK_CLIENT_ID=ChatbotToolkit-oidc VITE_ADMIN_RESOURCE_ROLE=CHATTOOL-admin VITE_USER_RESOURCE_ROLE=CHATTOOL-user VITE_MAINTAINER_RESOURCE_ROLE=CHATTOOL-maintainer -VITE_GRAFANA_DASHBOARD_URL=https://grafana.solutions.ai -VITE_KEYCLOAK_ADMIN_PANEL_URL=https://keycloak.solutions.ai -VITE_S3_URL=https://s3.solutions.ai +VITE_GRAFANA_DASHBOARD_URL=https://grafana.inteltoolkits.ai +VITE_KEYCLOAK_ADMIN_PANEL_URL=https://keycloak.inteltoolkits.ai +VITE_S3_URL=https://s3.inteltoolkits.ai VITE_CHAT_DISCLAIMER_TEXT="Responses from this solution may require further verification. You are solely responsible for verifying the accuracy of the information provided and how you choose to use it." VITE_NER_ENABLED=false diff --git a/src/ui/apps/chatqna/vite.config.ts b/src/ui/apps/chatqna/vite.config.ts index 54d8cc55..3c370d8f 100644 --- a/src/ui/apps/chatqna/vite.config.ts +++ b/src/ui/apps/chatqna/vite.config.ts @@ -56,27 +56,27 @@ export default defineConfig({ server: { proxy: { "^/api/v1/chatqna$": { - target: "https://solutions.ai", + target: "https://inteltoolkits.ai", changeOrigin: true, secure: false, }, "^/v1/chat_history": { - target: "https://solutions.ai", + target: "https://inteltoolkits.ai", changeOrigin: true, secure: false, }, "^/v1/system_fingerprint": { - target: "https://solutions.ai", + target: "https://inteltoolkits.ai", changeOrigin: true, secure: false, }, "^/api/v1/chatqna/status$": { - target: "https://solutions.ai", + target: "https://inteltoolkits.ai", changeOrigin: true, secure: false, }, "^/api/v1/edp": { - target: "https://solutions.ai", + target: "https://inteltoolkits.ai", changeOrigin: true, secure: false, }, diff --git a/src/ui/apps/docsum/.env.development b/src/ui/apps/docsum/.env.development index 6d40a68c..34e50384 100644 --- a/src/ui/apps/docsum/.env.development +++ b/src/ui/apps/docsum/.env.development @@ -1,11 +1,11 @@ # Copyright (C) 2024-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -VITE_KEYCLOAK_URL=https://keycloak.solutions.ai +VITE_KEYCLOAK_URL=https://keycloak.inteltoolkits.ai VITE_KEYCLOAK_REALM=ChatbotToolkit VITE_KEYCLOAK_CLIENT_ID=ChatbotToolkit-oidc VITE_ADMIN_RESOURCE_ROLE=CHATTOOL-admin VITE_USER_RESOURCE_ROLE=CHATTOOL-user VITE_MAINTAINER_RESOURCE_ROLE=CHATTOOL-maintainer -VITE_GRAFANA_DASHBOARD_URL=https://grafana.solutions.ai -VITE_KEYCLOAK_ADMIN_PANEL_URL=https://keycloak.solutions.ai +VITE_GRAFANA_DASHBOARD_URL=https://grafana.inteltoolkits.ai +VITE_KEYCLOAK_ADMIN_PANEL_URL=https://keycloak.inteltoolkits.ai diff --git a/src/ui/apps/docsum/vite.config.ts b/src/ui/apps/docsum/vite.config.ts index 336ba27e..b947abaf 100644 --- a/src/ui/apps/docsum/vite.config.ts +++ b/src/ui/apps/docsum/vite.config.ts @@ -56,7 +56,7 @@ export default defineConfig({ server: { proxy: { "^/api/v1/docsum": { - target: "https://solutions.ai", + target: "https://inteltoolkits.ai", changeOrigin: true, secure: false, },