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

postgres-admin-password

Password for the session_store Postgres role. This role is created by the official postgres image as its initial POSTGRES_USER (so it’s effectively the instance admin); product-search’s one-time bootstrap initContainer also uses it to create its own least-privileged role/schema.

postgres-product-search-password

Password for the product_search Postgres role, set once by that same bootstrap initContainer and used at runtime by the product-search container.

redis-password

Password for the bundled Redis cache. infraServices.redis requires it, and its readiness probe authenticates with the same value. session-store is the only client.

Note: product-search is 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_store is 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 piped helm 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 mlstorage StorageClass (LLM scratch volume, ChromaDB, and PostgreSQL). If your cluster uses a different name, override storage.ephemeral.storageClassName, llm.storage.ephemeral.storageClassName, chromadb.persistence.storageClassName, and infraServices.postgres.persistence.storageClassName. An application pod gets its own /workload scratch PVC only if it sets mainServices.<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

llm (GPU) — shared by assistant-server and safety-gate

VLM

mistralai/Mistral-Small-3.2-24B-Instruct-2506

vlm (GPU)

Embedding

intfloat/multilingual-e5-large-instruct

embedding (CPU)

CLIP

openai/clip-vit-large-patch14

clip (CPU)

Note: the LLM is shared — assistant-server (router/responder) and safety-gate (guardrail judge) both derive their base URL from the same llm deployment / 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

assistant-server and safety-gate

LLM_API_KEY

VLM

assistant-server

VLM_API_KEY

Embedding

product-search

EMBEDDINGS_API_KEY

CLIP

product-search

CLIP_API_KEY

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.existingService to the base address — a trailing /v1 is 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_KEY for 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.existingService to the base address — a trailing /v1 is optional, same as llm.existingService above.

  • 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.existingService to the base address — the chart appends /v1 automatically, 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.existingService to the base address — the chart appends /v1 automatically, 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.existingService to 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.1

  • VLM: 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_HOST for session-store. Postgres passwords (infraServices.postgres, session-store, product-search’s bootstrap step) and the Redis password (infraServices.redis and session-store only) come from the single credentials.existingSecret Secret — see Create the credentials Secret above. If you change the Postgres _USER / _DB from the defaults, set it consistently in mainServices.session-store.env, mainServices.product-search.env, and infraServices.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 https must exist in the envoy-gateway-system namespace (or adapt values to your gateway naming — see http_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 \*)/"