Retail Shopping Assistant Deployment Guide#
Solution Blueprints are provided as Helm Charts. The recommended approach to deploy them is to pipe
the output of helm template to kubectl apply -f -. We don’t recommend helm install, which by
default uses a Secret to keep track of the related resources. This does not work well with
Enterprise clusters that often have limitations on the kinds of resources that regular users are
allowed to create.
GPU Support (AMD ROCm)#
This blueprint requires at least 2 AMD Instinct GPUs by default: one for the LLM (llm, shared by
assistant-server and safety-gate) and one for the VLM (vlm, used for image search). All
necessary GPU parameters are configured automatically. If you already have compatible LLM and/or VLM
services deployed elsewhere, you can point the chart at them instead and reduce this to 0–1
additional GPUs —
see Using existing model / vector-store services
below.
Deployment#
Create the credentials Secret#
Before deploying, create a Kubernetes Secret with the Postgres and Redis credentials:
Key |
Value |
|---|---|
|
Password for the |
|
Password for the |
|
Password for the bundled Redis cache. |
Note:
product-searchis the service responsible for catalog search — it fuses text and image embeddings with Postgres full-text and trigram search to resolve natural-language and visual queries against the product catalog.session_storeis the service responsible for managing conversation and cart state across turns.
Generate a random value for each key (any generator works — this is just one example):
POSTGRES_ADMIN_PASSWORD=$(openssl rand -base64 24)
POSTGRES_PRODUCT_SEARCH_PASSWORD=$(openssl rand -base64 24)
REDIS_PASSWORD=$(openssl rand -base64 24)
Then create the Secret from those values:
namespace="my-namespace"
kubectl create secret generic retail-assistant-credentials -n $namespace \
--from-literal=postgres-admin-password="$POSTGRES_ADMIN_PASSWORD" \
--from-literal=postgres-product-search-password="$POSTGRES_PRODUCT_SEARCH_PASSWORD" \
--from-literal=redis-password="$REDIS_PASSWORD"
The default Secret name the chart expects is retail-assistant-credentials. To use a different
name, pass it consistently to every helm template/kubectl command below:
--set credentials.existingSecret=my-secret.
Deploy#
Deploy the blueprint with the following command:
name="my-deployment"
namespace="my-namespace"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-retail-shopping-assistant \
| kubectl apply -f - -n $namespace
Known issue (Helm 4.2.1+): Helm 4.2.1 and newer leak
Pulled:/Digest:metadata to stdout (helm#32215), which breaks the pipedhelm template … | kubectl apply -f -. Until the fix ships, either use Helm 3.16 – 4.2.0, or split the pull and template steps, e.g.:helm pull oci://registry-1.docker.io/amdenterpriseai/aimsb-retail-shopping-assistant --untar helm template $name ./aimsb-retail-shopping-assistant \ # …same flags as the piped command above… | kubectl apply -f - -n $namespace
Note: persistent/ephemeral storage defaults to a
mlstorageStorageClass (LLM scratch volume, ChromaDB, and PostgreSQL). If your cluster uses a different name, overridestorage.ephemeral.storageClassName,llm.storage.ephemeral.storageClassName,chromadb.persistence.storageClassName, andinfraServices.postgres.persistence.storageClassName. An application pod gets its own/workloadscratch PVC only if it setsmainServices.<service>.ephemeralStorage: true— none do by default.
Wait until all pods report Running and Ready.
Connect to the UI#
Once all pods are ready, forward the frontend port to your local machine:
kubectl port-forward svc/aimsb-retail-shopping-assistant-$name-frontend 3000:3000 -n $namespace
Then open http://localhost:3000.
Clean Up#
When you are finished, remove the deployed resources using the same deployment command, with
kubectl delete instead of kubectl apply:
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-retail-shopping-assistant \
| kubectl delete -f - -n $namespace
Using existing model / vector-store services#
By default, all required AMD Inference Microservices (AIMs) (LLM, VLM, Embedding, CLIP) and ChromaDB are deployed by the Helm
chart. To reuse a compatible deployment instead, set the existingService value for that
component — a Kubernetes Service name, the long form
<SERVICENAME>.<NAMESPACE>.svc.cluster.local:<SERVICEPORT>, or a full URL.
Default models:
Role |
Default Model |
Serving deployment |
|---|---|---|
LLM |
Qwen/Qwen3-32B |
|
VLM |
mistralai/Mistral-Small-3.2-24B-Instruct-2506 |
|
Embedding |
intfloat/multilingual-e5-large-instruct |
|
CLIP |
openai/clip-vit-large-patch14 |
|
Note: the LLM is shared —
assistant-server(router/responder) andsafety-gate(guardrail judge) both derive their base URL from the samellmdeployment /existingService. If you point it at a different model, update the model name for both consumers (see below).
API Key Configuration for External Services#
There is no <component>.apiKey value — self-hosted AIMs don’t need one (default
no-key-required). If an existingService you point at requires bearer-token auth instead, set the
API key directly on the consuming service’s env map:
Component |
Consumer(s) |
Env var |
|---|---|---|
LLM |
|
|
VLM |
|
|
Embedding |
|
|
CLIP |
|
|
Plain value:
--set "mainServices.assistant-server.env.LLM_API_KEY=<YOUR_API_KEY>" \
--set "mainServices.safety-gate.env.LLM_API_KEY=<YOUR_API_KEY>"
Or reference a Kubernetes Secret instead of passing the key in plain text — any env entry accepts
{name, key} in place of a plain value and the chart renders it as valueFrom.secretKeyRef:
kubectl create secret generic my-llm-key -n $namespace \
--from-literal=api-key="<YOUR_API_KEY>"
--set "mainServices.assistant-server.env.LLM_API_KEY.name=my-llm-key" \
--set "mainServices.assistant-server.env.LLM_API_KEY.key=api-key" \
--set "mainServices.safety-gate.env.LLM_API_KEY.name=my-llm-key" \
--set "mainServices.safety-gate.env.LLM_API_KEY.key=api-key"
LLM#
Set
llm.existingServiceto the base address — a trailing/v1is optional. Use the Kubernetes Service name (plus port), or<SERVICENAME>.<NAMESPACE>.svc.cluster.local:<SERVICEPORT>if the service lives in a different namespace, or a full URL.If the served model name differs from the default, set it for both consumers:
--set "mainServices.assistant-server.env.LLM_MODEL=my-llm-model" \ --set "mainServices.safety-gate.env.LLM_MODEL=my-llm-model"
If it requires an API key, set
LLM_API_KEYfor both consumers — see API Key Configuration above.
Full example, deploying against an existing LLM instead of the bundled llm AIM:
name="my-deployment"
namespace="my-namespace"
llm_service="aim-llm-my-model-123456"
llm_model="Qwen/Qwen3-32B"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-retail-shopping-assistant \
--set llm.existingService="$llm_service:8000" \
--set "mainServices.assistant-server.env.LLM_MODEL=$llm_model" \
--set "mainServices.safety-gate.env.LLM_MODEL=$llm_model" \
| kubectl apply -f - -n $namespace
VLM#
Set
vlm.existingServiceto the base address — a trailing/v1is optional, same asllm.existingServiceabove.If the served model name differs from the default, set it:
--set "mainServices.assistant-server.env.VLM_MODEL_NAME=my-vlm-model"
If it requires an API key, set
VLM_API_KEY— see API Key Configuration above.
Full example, deploying against an existing VLM instead of the bundled vlm AIM:
name="my-deployment"
namespace="my-namespace"
vlm_service="aim-vlm-my-model-123456"
vlm_model="mistralai/Mistral-Small-3.2-24B-Instruct-2506"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-retail-shopping-assistant \
--set vlm.existingService="$vlm_service:8000" \
--set "mainServices.assistant-server.env.VLM_MODEL_NAME=$vlm_model" \
| kubectl apply -f - -n $namespace
Embedding#
Set
embedding.existingServiceto the base address — the chart appends/v1automatically, do not include it yourself. Example:--set embedding.existingService="my-embedding-service:7997"If the served model name differs, set
--set "mainServices.product-search.env.EMBEDDINGS_MODEL=my-embedding-model".If it requires an API key, set
--set "mainServices.product-search.env.EMBEDDINGS_API_KEY=<YOUR_API_KEY>".
CLIP (image embedding)#
Set
clip.existingServiceto the base address — the chart appends/v1automatically, do not include it yourself. Example:--set clip.existingService="my-clip-service:7998"If the served model name differs, set
--set "mainServices.product-search.env.CLIP_MODEL=my-clip-model".If it requires an API key, set
--set "mainServices.product-search.env.CLIP_API_KEY=<YOUR_API_KEY>".
ChromaDB#
Set
chromadb.existingServiceto the base address. Example:--set chromadb.existingService="my-chromadb-service:8000"
Default AIM image and GPU compatibility#
By default, the chart deploys:
LLM:
docker.io/amdenterpriseai/aim-qwen-qwen3-32b:0.11.1VLM:
docker.io/amdenterpriseai/aim-mistralai-mistral-small-3-2-24b-instruct-2506:0.11.1
On newer GPUs, these default images may not be the best match and can fail to start or run
sub-optimally. To choose a newer AIM or deploy a different model, override llm.image / vlm.image
to a compatible image. See
the catalog of available AIMs
for options.
If you are upgrading to a newer tag of the same model, only the image needs to change:
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-retail-shopping-assistant \
--set llm.image=docker.io/amdenterpriseai/aim-qwen-qwen3-32b:<NEWER_TAG> \
| kubectl apply -f - -n $namespace
If you are switching to a different model, also update LLM_MODEL for both consumers
(assistant-server and safety-gate share the same LLM endpoint):
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-retail-shopping-assistant \
--set llm.image=docker.io/amdenterpriseai/<NEW_AIM_IMAGE>:<TAG> \
--set "mainServices.assistant-server.env.LLM_MODEL=<NEW_MODEL_NAME>" \
--set "mainServices.safety-gate.env.LLM_MODEL=<NEW_MODEL_NAME>" \
| kubectl apply -f - -n $namespace
Session store: Redis and PostgreSQL#
session-store persists chat history and cart state to PostgreSQL, and uses Redis as a best-effort
cache of the last CACHE_WINDOW messages per session (falls back to Postgres-only if Redis is
unreachable).
Note: the chart auto-derives
POSTGRES_HOST/REDIS_HOSTforsession-store. Postgres passwords (infraServices.postgres,session-store,product-search’s bootstrap step) and the Redis password (infraServices.redisandsession-storeonly) come from the singlecredentials.existingSecretSecret — see Create the credentials Secret above. If you change the Postgres_USER/_DBfrom the defaults, set it consistently inmainServices.session-store.env,mainServices.product-search.env, andinfraServices.postgres.env.
Connecting#
Option 1: Port Forwarding#
See the port-forward command in the Deployment section above. The frontend UI is exposed on port
3000 by the frontend service.
Option 2: HTTPRoute (Gateway Access)#
If your cluster has a Gateway API compatible gateway, you can enable HTTPRoute creation to route traffic through the gateway.
Prerequisites:
A Gateway named
httpsmust exist in theenvoy-gateway-systemnamespace (or adapt values to your gateway naming — seehttp_route.gateway.name/http_route.gateway.namespace).
Enabling HTTPRoute:
name="my-deployment"
namespace="my-namespace"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-retail-shopping-assistant \
--set "http_route.enabled=true" \
| kubectl apply -f - -n $namespace
Obtaining the URL:
The route matches any Host starting with the release fullname
(aimsb-retail-shopping-assistant-$name), so the routable hostname follows your Gateway’s listener
suffix:
echo "https://aimsb-retail-shopping-assistant-$name$(kubectl get gtw -A -o jsonpath='{.items[*].spec.listeners[?(@.name=="https")].hostname}' | tr -d \*)/"