Introduction
In our previous post, “Integrating NVIDIA AI-Q with IBM Fusion CAS,” we demonstrated how enterprise teams can connect IBM Storage Fusion CAS (Content Augmented Search) with NVIDIA AI-Q for direct Retrieval-Augmented Generation (RAG).
This v2 integration extends that architecture for enterprise deployments by adding:
-
Multi-store Fusion CAS retrieval, allowing users to select which knowledge bases participate in a query.
-
Native OpenShift OAuth authentication for the AI-Q frontend.
-
Secure, repeatable deployment automation using Kubernetes Secrets, Helm, OpenShift resources, and automated verification.
The result is a unified AI-Q experience that can retrieve from multiple existing Fusion CAS knowledge bases without duplicating enterprise data into another retrieval layer.
What You Need
Before starting the integration, make sure the following prerequisites are available.
| Item |
Notes |
Git, Docker or Podman, kubectl/oc, Helm v3 |
Standard developer toolchain |
uv |
Python package manager used by the patch script to regenerate the lock file |
| NVIDIA NGC API key |
Required for pulling NVIDIA AI-Q base images |
| Tavily API key |
Required if web search is enabled |
| IBM Fusion CAS |
Must be running and accessible from the OpenShift cluster |
| Fusion CAS vector stores |
Documents must already be indexed |
| Fusion CAS Bearer token |
Must have search access to the required vector stores |
| OpenShift cluster |
oc should be available for OpenShift-specific operations |
Install uv if required:
pip install uv
Clone the Storage Fusion Repository
Clone the repository containing the Fusion CAS–AI-Q integration:
git clone <STORAGE_FUSION_REPO_URL> /path/to/storage-fusion
The commands in this guide assume that you are running them from the root of the cloned storage-fusion repository.
Vector store names can be found in:
Fusion UI → CAS → Data Stores
Important: Vector store names are case-sensitive. Use the exact names shown in the Fusion UI.
Repository Layout
The storage-fusion repository separates AI-Q source modifications, runtime configuration, and deployment automation.
fusion-cas-aiq/
│
├── aiq-fusion.env.example
│ └── Environment configuration template
│
├── src/
│ ├── adapter.py
│ │ └── FusionCASRetriever — multi-store parallel fan-out
│ │
│ ├── __init__.py
│ │ └── Package re-export
│ │
│ └── openshift-oidc.ts
│ └── OpenShift OIDC NextAuth provider
│
├── templates/
│ ├── config_web_frag.yml.template
│ │ └── AI-Q configuration using ${ENV_VAR} references
│ │
│ └── fusion-config-override.yaml
│ └── Helm values override without secrets
│
└── scripts/
├── run-all.sh
│ └── Master orchestration runner
│
├── 01-patch-aiq.sh
│ └── Patch and copy files into AI-Q
│
├── 02-build-push-image.sh
│ └── Build backend and frontend images
│
├── 03-setup-secrets-and-token.sh
│ └── Create namespace, Secret, ConfigMap, and OAuthClient
│
├── 04-deploy-helm.sh
│ └── Helm deployment and Route creation
│
└── 05-verify-deployment.sh
└── Deployment smoke tests
Script Reference
| Script |
Purpose |
01-patch-aiq.sh |
Patches the AI-Q source repository |
02-build-push-image.sh |
Builds and pushes backend and frontend images |
03-setup-secrets-and-token.sh |
Creates Secrets, ConfigMaps, and OAuth resources |
04-deploy-helm.sh |
Deploys AI-Q and creates the OpenShift Route |
05-verify-deployment.sh |
Runs automated deployment validation |
Deployment Workflow
There are two ways to deploy the integration:
Option A — Master Script
Use run-all.sh to orchestrate the deployment phases while maintaining security checks.
Option B — Step-by-Step
Execute each numbered script manually when you want more control over individual phases.
The master-script approach is recommended for repeatable deployments, while the manual workflow provides a convenient review gate between source modification and image creation.
Option A — Master Script Runner
The master script allows the workflow to be divided into two major phases.
Phase 1 — Patch the AI-Q Repository
./fusion-cas-aiq/scripts/run-all.sh --only patch
At this point, stop and review the changes.
Phase 2 — Review, Commit, and Push
Move into your AI-Q repository:
cd $AIQ_REPO_DIR
Review the patch:
git diff
Create your integration branch:
git checkout -b $AIQ_GIT_REF
Stage changes interactively:
git add -p
Commit:
git commit -m "feat: add IBM Fusion CAS integration v2"
Push the branch:
git push origin $AIQ_GIT_REF
Phase 3 — Resume the Deployment
Once the source changes have been reviewed, committed, and pushed:
./fusion-cas-aiq/scripts/run-all.sh --from build
This resumes the workflow from the image-build phase through secrets creation, Helm deployment, and verification.
Option B — Step-by-Step Manual Deployment
If you prefer complete control over each stage, follow the numbered steps below.
Step 1 - Configure aiq-fusion.env
Copy the environment template:
cp fusion-cas-aiq/templates/aiq-fusion.env.example \
fusion-cas-aiq/aiq-fusion.env
Edit the configuration:
vi fusion-cas-aiq/aiq-fusion.env
The following values are important.
| Variable |
Description |
AIQ_REPO_DIR |
Local path to the cloned AI-Q repository |
AIQ_COMMIT |
Pinned Git SHA for reproducible builds |
AIQ_GIT_REF |
Branch, tag, or SHA to build from |
IMAGE_REGISTRY |
Container registry host/path |
IMAGE_NAMESPACE |
Image namespace/project |
NGC_API_KEY |
NVIDIA NGC API key |
TAVILY_API_KEY |
Tavily API key |
FUSION_CAS_URL |
IBM Fusion CAS endpoint |
FUSION_CAS_TOKEN |
Fusion CAS Bearer token |
FUSION_VERIFY_SSL |
SSL verification setting |
FUSION_VECTOR_STORE_1 |
First vector store name |
FUSION_VECTOR_STORE_1_LABEL |
First UI display label |
FUSION_VECTOR_STORE_2 |
Second vector store name |
FUSION_VECTOR_STORE_2_LABEL |
Second UI display label |
CLUSTER_DOMAIN |
OpenShift application domain |
AIQ_NAMESPACE |
AI-Q namespace |
AIQ_GIT_URI |
Git URI of your AI-Q fork |
Example Fusion CAS configuration:
FUSION_CAS_URL=https://ibm-cas-ibm-cas.apps.cluster.ibm.com
FUSION_CAS_TOKEN=sha256~...
FUSION_VERIFY_SSL=true
FUSION_VECTOR_STORE_1=fusion-test-farming
FUSION_VECTOR_STORE_1_LABEL=Farming
FUSION_VECTOR_STORE_2=fusion-assistant-new
FUSION_VECTOR_STORE_2_LABEL=Farming Docs
If your Fusion CAS endpoint uses a self-signed certificate, configure:
FUSION_VERIFY_SSL=false
Security Note: aiq-fusion.env contains credentials and cluster-specific information. It is automatically gitignored and must never be committed to source control.
Step 2 - Clone the forked AI-Q Repository
Fork the AIQ repository and clone into your preferred local directory:
git clone https://<your-forked-repo-path>/aiq.git /path/to/aiq
Set the repository path:
export AIQ_REPO_DIR=/path/to/aiq
Make sure this matches the value configured in aiq-fusion.env.
The patch script automatically checks out the commit specified by:
AIQ_COMMIT
Pinning the AI-Q source to a known commit helps make subsequent builds reproducible.
Step 3 - Patch the AI-Q Repository
Load the integration configuration:
source fusion-cas-aiq/aiq-fusion.env
Run the patch script:
./fusion-cas-aiq/scripts/01-patch-aiq.sh
The script applies the integration changes in a single operation.
What the Patch Script Does
| Action |
Detail |
Pins repository to AIQ_COMMIT |
Enables reproducible builds |
Copies adapter.py |
Adds multi-store Fusion CAS retriever |
Copies __init__.py |
Registers the Python package |
Copies openshift-oidc.ts |
Adds OpenShift OIDC authentication |
Patches pyproject.toml |
Adds Fusion CAS package and optional dependency group |
Patches register.py |
Adds Fusion CAS retriever registration |
Patches chat_researcher/register.py |
Propagates _active_data_sources |
Patches providers/index.ts |
Replaces disabled authentication with OpenShift OIDC |
Patches config.ts |
Adds JWT callback fixes |
| Copies configuration template |
Creates runtime configuration |
| Patches Helm values |
Adds configuration and Secret references |
| Copies Helm override |
Adds Fusion CAS-specific deployment settings |
Runs uv lock |
Regenerates the dependency lock file |
| Performs no Git commit |
Maintains a manual review gate |
The script intentionally does not perform:
git add
git commit
git push
The source changes remain under the reviewer's control.
Step 3a - Review and Push the Patches
Move into the AI-Q repository:
cd $AIQ_REPO_DIR
Review all changes:
git diff
Create the integration branch:
git checkout -b $AIQ_GIT_REF
Stage changes interactively:
git add -p
Commit:
git commit -m "feat: add IBM Fusion CAS integration v2"
Push:
git push origin $AIQ_GIT_REF
Important: Do Not Stage config_web_frag.yml
The generated file:
configs/config_web_frag.yml
is intentionally gitignored.
It may contain environment-expanded values and therefore should not be committed.
If it has accidentally been staged:
git rm --cached configs/config_web_frag.yml
Then verify the .gitignore entry before continuing.
Step 4 - Build and Push Images
The integration supports two build paths:
-
OpenShift BuildConfig
-
Local Docker or Podman
OpenShift BuildConfig is used when oc is available and AIQ_GIT_URI is configured.
Run:
source fusion-cas-aiq/aiq-fusion.env
./fusion-cas-aiq/scripts/02-build-push-image.sh
OpenShift BuildConfig
The script creates BuildConfig resources for:
aiq-agent
aiq-frontend
It starts the builds and streams the build logs.
The resulting images are pushed to the configured registry.
Local Docker or Podman Build
If OpenShift BuildConfig is not available, the script can fall back to a local container build.
From the AI-Q repository root:
docker build --target release \
-t <registry>/<namespace>/aiq-agent:fusion-cas \
-f deploy/Dockerfile .
Push the backend image:
docker push <registry>/<namespace>/aiq-agent:fusion-cas
Build the frontend:
docker build \
-t <registry>/<namespace>/aiq-frontend:openshift-auth \
-f frontends/ui/deploy/Dockerfile \
frontends/ui
Push the frontend:
docker push <registry>/<namespace>/aiq-frontend:openshift-auth
The expected image tags are:
aiq-agent:fusion-cas
aiq-frontend:openshift-auth
No Dockerfile Modification Required
The existing:
deploy/Dockerfile
already installs:
knowledge-layer[all]
The fusion_cas extra is included through this dependency configuration, so no Dockerfile modification is required for the Fusion CAS package.
Step 5 - Create Namespace, Secrets, and ConfigMaps
Load the environment:
source fusion-cas-aiq/aiq-fusion.env
Run:
./fusion-cas-aiq/scripts/03-setup-secrets-and-token.sh
The script creates the resources required for the deployment.
Kubernetes Resources
| Resource |
Type |
Purpose |
aiq-credentials |
Secret |
Stores runtime credentials and cluster-specific values |
ngc-secret |
Docker registry Secret |
Allows image pulls from nvcr.io |
aiq-oauth-ca |
ConfigMap |
Stores OpenShift OAuth CA certificate |
aiq-config-frag |
ConfigMap |
Stores AI-Q configuration template |
aiq-nextauth |
OAuthClient |
Registers the frontend with OpenShift OAuth |
aiq-credentials
The unified Secret contains values such as:
FUSION_CAS_TOKEN
NVIDIA_API_KEY
TAVILY_API_KEY
FUSION_CAS_URL
FUSION_VERIFY_SSL
FUSION_VECTOR_STORE_1
FUSION_VECTOR_STORE_1_LABEL
FUSION_VECTOR_STORE_2
FUSION_VECTOR_STORE_2_LABEL
DB_USER_NAME
DB_USER_PASSWORD
NEXTAUTH_SECRET
OAUTH_CLIENT_SECRET
OAUTH_ISSUER
OAUTH_CLIENT_ID
NEXTAUTH_URL
The exact values are supplied at runtime through Kubernetes rather than committed into the source repository.
OpenShift OAuth Configuration
The OAuth client is named:
aiq-nextauth
The callback URL follows this pattern:
https://aiq-frontend-ns-aiq.<CLUSTER_DOMAIN>/api/auth/callback/openshift
The redirect URI configured in the OAuthClient must exactly match the frontend callback URL.
Step 6 - Deploy with Helm and Create the OpenShift Route
Load the configuration:
source fusion-cas-aiq/aiq-fusion.env
Deploy:
./fusion-cas-aiq/scripts/04-deploy-helm.sh
The deployment performs a Helm upgrade/install similar to:
helm upgrade --install aiq deploy/helm/deployment-k8s/ \
-n $AIQ_NAMESPACE \
-f deploy/helm/deployment-k8s/fusion-config-override.yaml \
--set aiq.apps.backend.image.repository=<registry>/<namespace>/aiq-agent \
--set aiq.apps.backend.image.tag=fusion-cas \
--set aiq.apps.frontend.image.repository=<registry>/<namespace>/aiq-frontend \
--set aiq.apps.frontend.image.tag=openshift-auth \
--set 'aiq.apps.frontend.imagePullSecrets[0].name=ngc-secret' \
--set 'aiq.apps.postgres.imagePullSecrets[0].name=ngc-secret'
The deployment references values from the Kubernetes Secret rather than placing credentials directly into Helm configuration.
Creating the OpenShift Route
The frontend is exposed through an OpenShift Route:
https://aiq-frontend-<namespace>.<CLUSTER_DOMAIN>
The Route uses OpenShift edge TLS termination.
Important Helm Chart Detail
The upstream AI-Q Helm chart does not provide a Route template.
Therefore, setting:
route.enabled
in values.yaml does not create an OpenShift Route.
The deployment script explicitly creates the Route using oc apply.
Step 7 - Verify the Deployment
Run:
source fusion-cas-aiq/aiq-fusion.env
./fusion-cas-aiq/scripts/05-verify-deployment.sh
The verification script performs smoke tests across the deployment.
Check the pods manually if required:
kubectl get pods -n ns-aiq
Expected output:
NAME READY STATUS RESTARTS AGE
aiq-backend-xxx 1/1 Running 0 30s
aiq-frontend-xxx 1/1 Running 0 30s
aiq-postgres-xxx 1/1 Running 0 30s
Step 8 - Explore the AI-Q Experience
After successful verification, get the aiq url using below command:
oc get routes -n ns-aiq
8.1 Sign In Using OpenShift OAuth
From the AI-Q landing page:
-
Select Sign In.
-
AI-Q redirects you to OpenShift OAuth.
-
Authenticate using your standard enterprise OpenShift credentials.
-
After successful authentication, OpenShift redirects you back to AI-Q.
The authentication flow therefore uses the existing OpenShift identity infrastructure.

8.2 Select Knowledge Sources
The Data Sources panel appears on the right side of the AI-Q interface.
A typical configuration might look like:
| Toggle |
Description |
| ☑ Web Search |
Live web retrieval |
| ☑ Farming Knowledge |
Fusion CAS vector store for farming content |
| ☑ Product Documentation |
Fusion CAS vector store for product documentation |
Each source can be enabled or disabled independently for a query.

8.3 Query a Specific Knowledge Base
To query only the Farming Knowledge store:
-
Disable the other sources.
-
Enable Farming Knowledge.
-
Submit a query such as:
What is irrigation?
AI-Q retrieves relevant content from the selected Fusion CAS vector store and generates a response containing document citations.

8.4 Query Product Documentation
To query the Fusion Documentation store:
-
Enable Product Documentation.
-
Disable other sources if you want an isolated response.
-
Submit:
What are the main components of Fusion HCI?
The request is routed to the configured Fusion CAS vector store, and the response includes cited source chunks from that collection.

Environment Variables Reference
The Fusion CAS-specific configuration is summarized below.
| Variable |
Required |
Description |
FUSION_CAS_URL |
Yes |
Base Fusion CAS URL |
FUSION_CAS_TOKEN |
Yes |
Bearer token used for API authentication |
FUSION_VERIFY_SSL |
No |
true by default; set to false for self-signed certificates |
FUSION_VECTOR_STORE_1 |
Yes |
First vector store name |
FUSION_VECTOR_STORE_1_LABEL |
No |
UI display label; defaults to Store 1 |
FUSION_VECTOR_STORE_2 |
Yes* |
Second vector store name |
FUSION_VECTOR_STORE_2_LABEL |
No |
UI display label; defaults to Store 2 |
Example:
FUSION_CAS_URL=https://ibm-cas-ibm-cas.apps.<cluster>
FUSION_CAS_TOKEN=sha256~...
FUSION_VERIFY_SSL=true
FUSION_VECTOR_STORE_1=fusion-test-farming
FUSION_VECTOR_STORE_1_LABEL=Farming Knowledge
FUSION_VECTOR_STORE_2=fusion-assistant-new
FUSION_VECTOR_STORE_2_LABEL=Product Documentation
Adding a Third or Additional Store
The integration can be extended to additional Fusion CAS vector stores.
For example, suppose a third store is named:
docs-store-exact-name
and should appear as:
Docs
Four configuration areas need to be updated consistently.
1. Update aiq-fusion.env
Add:
FUSION_VECTOR_STORE_3="docs-store-exact-name"
FUSION_VECTOR_STORE_3_LABEL="Docs"
2. Update config_web_frag.yml.template
Under the Fusion CAS retriever configuration, add the third store:
retrievers:
fusion_cas_store:
vector_stores:
- ${FUSION_VECTOR_STORE_1:-}
- ${FUSION_VECTOR_STORE_2:-}
- ${FUSION_VECTOR_STORE_3:-}
source_id_store_map:
fusion_cas_1: ${FUSION_VECTOR_STORE_1:-}
fusion_cas_2: ${FUSION_VECTOR_STORE_2:-}
fusion_cas_3: ${FUSION_VECTOR_STORE_3:-}
3. Add the Third Data Source
Under:
data_sources.sources
add:
- id: fusion_cas_3
name: "Knowledge Base — ${FUSION_VECTOR_STORE_3_LABEL}"
description: "Search the ${FUSION_VECTOR_STORE_3_LABEL} knowledge base."
tools:
- knowledge_search
4. Update Secrets and Helm Configuration
Add:
FUSION_VECTOR_STORE_3
FUSION_VECTOR_STORE_3_LABEL
to:
scripts/03-setup-secrets-and-token.sh
and:
templates/fusion-config-override.yaml
following the same secretEnv pattern used for stores 1 and 2.
Troubleshooting Details
HTTP 401 from Fusion CAS
A 401 Unauthorized response generally indicates that the configured Fusion CAS authentication token is no longer valid or does not have the required permissions.
Update the Secret and restart the backend:
kubectl rollout restart \
deployment/aiq-backend \
-n ns-aiq
What Is Not Supported
The Fusion CAS retriever in this integration is designed for search and retrieval.
Fusion CAS continues to manage its own document-ingestion pipeline.
The following AI-Q Knowledge API operations are therefore not supported by the Fusion CAS retriever:
POST /v1/collections/{name}/documents
GET /v1/collections
DELETE /v1/collections/{name}
In practical terms, this means:
-
Document upload through the AI-Q UI is not supported.
-
Collection listing through the AI-Q UI is not supported.
-
Collection deletion through the AI-Q UI is not supported.
To add or manage documents, use the IBM Storage Fusion CAS administration interface directly.
Conclusion
The v2 integration of IBM Storage Fusion CAS with NVIDIA AI-Q on Red Hat OpenShift provides a repeatable approach for enterprise RAG across multiple knowledge domains.
It combines:
-
Multi-store Fusion CAS retrieval
-
User-selectable knowledge sources
-
Parallel asynchronous search
-
Native OpenShift OAuth authentication
-
Kubernetes-based secret management
-
Helm-based deployment and OpenShift Routes
-
Automated build and verification
The resulting workflow is:
Patch → Review → Scan → Build → Secure → Deploy → Verify
AI-Q can query existing Fusion CAS vector stores directly, while authentication and sensitive deployment configuration remain integrated with the OpenShift environment and separated from application source code.