Agentic RAG 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.

This blueprint supports AMD Instinct (default), AMD EPYC, and AMD Radeon platforms. Unless otherwise specified, the commands below cover the default Instinct deployment. For the other platforms, see:

Multi-platform Support#

The chart ships defaults for three platforms, selected with --set global.platform=<platform>: instinct (GPU, the default), epyc (CPU), and radeon (GPU). Each sets matching AIM images and resource profiles for the LLM and embedding components; inspect them with helm show values . --jsonpath '{.llm.platformDefaults}' and helm show values . --jsonpath '{.embedding.platformDefaults}'.

AMD Instinct (GPU, default)#

This platform deploys GPT-OSS 120B as the LLM and multilingual-e5-large-instruct as the embedding model by default. To deploy the blueprint, run the following command:

name="my-deployment"
namespace="my-namespace"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-agentic-rag \
  | 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-agentic-rag --untar
helm template $name ./aimsb-agentic-rag \
  # …same flags as the piped command above…
  | kubectl apply -f - -n $namespace

AMD EPYC (CPU)#

This platform deploys Llama 3.2 1B Instruct as the LLM and multilingual-e5-small as the embedding model by default. EPYC runs the LLM on CPU (gpus=0, bf16, AIM_ALLOW_UNOPTIMIZED=true), sized via llm.cpus/llm.memory. The embedding service runs separately on CPU, sized via embedding.resources. global.platform=epyc selects EPYC defaults for both components. The default EPYC LLM (Llama 3.2 1B Instruct) is a gated model on Hugging Face, so a token is required to access it.

name="my-deployment"
namespace="my-namespace"
kubectl create secret generic hf-token --from-literal=hf-token=<YOUR_HF_TOKEN> -n $namespace

helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-agentic-rag \
  --set global.platform=epyc \
  | kubectl apply -f - -n $namespace

Resource sizing note: Depending on your node it may be necessary to resize the LLM and embedding model resources. For example, the following parameters can be set to limit the embedding model’s cpu count and memory:

--set embedding.resources.requests.cpu=32 --set embedding.resources.limits.cpu=32 \
--set embedding.resources.requests.memory=32Gi --set embedding.resources.limits.memory=32Gi \

Performance note: On multi-socket EPYC nodes, configure the kubelet for NUMA alignment (CPU Manager static, Topology Manager single-numa-node, Memory Manager Static); otherwise the LLM’s and embedding service’s CPUs and memory can land on different NUMA nodes and vLLM runs effectively single-threaded.

Sizing note: Increase llm.memory if the LLM pod is OOMKilled during startup. For example: --set llm.memory=128.

AMD Radeon (GPU)#

This platform deploys Qwen3-VL 8B Instruct as the LLM and multilingual-e5-large-instruct as the embedding model by default. To deploy the blueprint, run the following command:

name="my-deployment"
namespace="my-namespace"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-agentic-rag \
  --set global.platform=radeon \
  | kubectl apply -f - -n $namespace

Using imagePullSecrets#

To pull the agent application and knowledge MCP images from a private registry, provide a pre-existing Kubernetes image pull secret:

secretname="my-registry-secret"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-agentic-rag \
  --set imagePullSecrets[0].name=$secretname \
  | kubectl apply -f - -n $namespace

The imagePullSecrets value applies to the application-owned pods. For private images in the LLM, embedding, or ChromaDB subcharts, configure the corresponding subchart value separately when supported, for example --set llm.imagePullSecrets[0].name=$secretname.

Using an existing deployment or external services#

By default, any required AIMs (LLM, Embedding, ChromaDB) are deployed by the helm chart. If you already have compatible services deployed, you can use them instead and reuse resources.

To use an existing deployment, set the existingService value for the respective component. You should use the Kubernetes Service name (and port where required - see the per-service notes below), or if the service is in a different namespace, you can use the long form <SERVICENAME>.<NAMESPACE>.svc.cluster.local:<SERVICEPORT>. If needed, you can pass a whole URL.

External LLM#

Set llm.existingService to the endpoint:

name="my-deployment"
namespace="my-namespace"
servicename="aim-llm-my-model-123456"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-agentic-rag \
  --set llm.existingService=$servicename \
  | kubectl apply -f - -n $namespace

External Embedding Service#

Set embedding.existingService to the endpoint. The port must be included because the embedding service runs on a non-standard port (default: 7997):

name="my-deployment"
namespace="my-namespace"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-agentic-rag \
  --set embedding.existingService="my-embedding-service:7997" \
  | kubectl apply -f - -n $namespace

External ChromaDB#

Set chromadb.existingService to the endpoint. The port must be included because ChromaDB runs on a non-standard port (default: 8000):

name="my-deployment"
namespace="my-namespace"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-agentic-rag \
  --set chromadb.existingService="my-chromadb-service:8000" \
  | kubectl apply -f - -n $namespace

You can combine these flags as needed.

Storage configuration#

The LLM subchart’s model workload and ChromaDB’s persistent storage use the StorageClass mlstorage by default. Ensure that mlstorage exists before deploying, or override the relevant subchart values for your cluster. The top-level settings wired by this chart are llm.storage.ephemeral.storageClassName and chromadb.persistence.storageClassName. The embedding container uses emptyDir, while the agent-app and MCP containers do not mount persistent application storage or consume a StorageClass.

For example, if your cluster provides a StorageClass named fast-storage, override the LLM and ChromaDB settings when rendering the chart:

storage_class="fast-storage"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-agentic-rag \
  --set llm.storage.ephemeral.storageClassName=$storage_class \
  --set chromadb.persistence.storageClassName=$storage_class \
  | kubectl apply -f - -n $namespace

API Key and Model Configuration for External LLM#

When using an external LLM service, you can optionally configure API authentication and a specific model:

  • llm.apiKeySecretRef (recommended): Kubernetes Secret reference for the Bearer token

  • llm.apiKey (optional, not recommended): inline Bearer token for API authentication; prefer a Secret reference so the key is not stored in Helm values or rendered manifests

  • llm.model (optional): The specific model identifier to use (e.g., openai/gpt-oss-120b, gpt-4-turbo)

Specifying the model is not needed when using AIMs, as the instance typically only serves one model. If llm.model is left empty, the list of models is queried from the API, and the first available model is used.

Using Kubernetes Secrets for API Key#

Store the API key in a Kubernetes secret and reference it:

name="my-deployment"
namespace="my-namespace"
secretname="my-secretname"
api_url="https://llm-api.example.com"

# Create the secret
kubectl create secret generic $secretname -n $namespace \
  --from-literal=api-key="<YOUR_API_KEY>"

# Deploy with secret reference
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-agentic-rag \
  --set llm.existingService=$api_url \
  --set llm.apiKeySecretRef.name=$secretname \
  --set llm.apiKeySecretRef.key=api-key \
  | kubectl apply -f - -n $namespace

Collections, chunking, and retrieval#

The application stores documents in named ChromaDB collections. Create or select collections in the React client, then upload documents into the selected collection. Collection names may contain letters, numbers, -, and _, and must be no longer than 63 characters. Omitting a collection filter searches all collections; selecting collections limits retrieval to those collections.

Chunking defaults to 300 tokens with 60-token overlap when the embedding tokenizer is available. If the tokenizer is unavailable, the same settings are used as a conservative character-based fallback. Create a collection with different settings through the client or MCP create_collection tool, for example chunk_size=500 and chunk_overlap=100; later uploads to that collection reuse its stored settings.

Each retrieval returns up to 6 chunks by default (TOP_K_DOCS). A question can override this with top_k from 1 through 50. The agent may perform up to 3 retrieval rounds by default (MAX_SEARCHES), configurable per question from 1 through 10. The response includes structured citations with the source document, page when available, chunk text, and citation ID, plus retrieval statistics such as searches and retrieved/relevant chunk counts.

Default AIM image and GPU compatibility#

By default, the chart deploys GPT-OSS 120B with this AIM: docker.io/amdenterpriseai/aim-openai-gpt-oss-120b:0.11.1

On newer GPUs, this default image may not be the best match and can fail to start or run sub-optimally. To choose a newer AIM or deploy a different LLM, override llm.image to a compatible image. See the catalog of available AIMs for options.

Example:

name="my-deployment"
namespace="my-namespace"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-agentic-rag \
  --set llm.image=amdenterpriseai/aim-openai-gpt-oss-120b:<NEWER_TAG> \
  | kubectl apply -f - -n $namespace

Connecting#

Option 1: Port Forwarding#

To connect to the UI, port-forward the agent application service on port 8080. The UI will then be available at http://localhost:8080.

kubectl port-forward services/aimsb-agentic-rag-$name-agent-app 8080:80 -n $namespace

Option 2: HTTPRoute (Gateway Access)#

If your cluster has a Gateway API compatible gateway (e.g., Kubernetes Gateway, Istio, etc.), 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 configure a different gateway).

  • The Gateway must be properly configured with listeners.

Enabling HTTPRoute:

Use --set http_route.enabled=true in the helm template command to enable HTTPRoute creation:

name="my-deployment"
namespace="my-namespace"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-agentic-rag \
  --set http_route.enabled=true \
  | kubectl apply -f - -n $namespace

Obtaining the URL:

The URL to access the blueprint via HTTPRoute is formed by the service name and the hostname of the gateway. Use this command to produce the URL by querying the hostname from the cluster:

echo "https://aimsb-agentic-rag-$name$(kubectl get gtw -A -o jsonpath='{.items[*].spec.listeners[?(@.name=="https")].hostname}' | tr -d \*)/"

Clean Up#

When you are finished, remove the deployed resources:

helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-agentic-rag \
  | kubectl delete -f - -n $namespace