Agentic RAG (MCP)
Decoupled RAG blueprint with an MCP Knowledge Server and an agentic UI client.
Deployment guide
Getting Started
This is a quick start guide on how to deploy the blueprint. For advanced options, such as reusing an existing AIM, providing a Hugging Face token, or overriding storage classes, see Deploying Solution Blueprints with Helm or explore the advanced deployment guide.
Prerequisites
System Requirements
This blueprint can be deployed on AMD Instinct (default), AMD EPYC, and AMD Radeon. The blueprint requires the following cluster resources by default, depending on the hardware being used:
| Resource | Instinct | Radeon | EPYC |
|---|---|---|---|
| GPUs | 2 | 2 | 0 |
| CPUs | 13 CPU cores | 13 CPU cores | 147 CPU cores |
| RAM | 272 Gi | 80 Gi | 144 Gi |
To deploy to the Kubernetes cluster, ensure the following prerequisites are met:
- kubectl: Installed and configured to communicate with the cluster
- Helm 3.16 – 4.2.0: Installed on your local machine
- A Kubernetes cluster with a usable StorageClass. The default is
mlstorage; see the Storage configuration section for details and override instructions.
Deployment
Solution Blueprints are packaged as OCI-compliant Helm charts in the Docker Hub registry and can be deployed to a Kubernetes cluster with a single command. Define the name (deployment name) and the namespace (Kubernetes namespace), then pipe the output of helm template to kubectl apply -f -.
Find the deployment command below. Note: You can create a namespace using kubectl create namespace <my-namespace>.
name="my-deployment"namespace="my-namespace"helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-agentic-rag \ | kubectl apply -f - -n $namespaceThe 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 $namespacehelm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-agentic-rag \ --set global.platform=epyc \ | kubectl apply -f - -n $namespacename="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 $namespaceVerify Deployment
To check the status of the deployment, run:
kubectl get pods -n $namespaceWait until all pods report Running and Ready.
Connect to UI
To connect to the UI, port-forward the agent application service to any chosen port, e.g., 8080. The UI will then be available at http://localhost:8080 in your browser.
kubectl port-forward services/aimsb-agentic-rag-${name}-agent-app 8080:80 -n $namespaceUse the UI
- Open the UI at http://localhost:8080.
- Create a folder, or use the default folder, for your documents.
- Click Upload documents and select PDF or TXT files. Wait for indexing to complete.
- Upload and indexing progress is shown in the Activity panel on the right.
- Select the folder or folders that the agent should search.
- Open Settings on the right to adjust the selected folders, temperature, chunks per search, and maximum search attempts.
- Enter a question about the indexed documents and submit it.
- Review the answer, source citations, and agent trace shown in the UI.
- The agent trace appears in the Activity panel on the right while the question is being processed.
Use Clear knowledge base to remove indexed documents when they are no longer needed. To delete an individual folder and all of its indexed documents, click the delete button next to that folder. At least one folder must remain.
Clean Up
When you are finished, remove the deployed resources using the same deployment command, with kubectl delete instead of kubectl apply. For example, for Instinct use the following command:
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-agentic-rag \ | kubectl delete -f - -n $namespaceThird-party Components
This Solution Blueprint utilizes multiple components. For third-party license information, refer to each component’s documentation. Key third-party components are listed below.
| Component | License |
|---|---|
| LangGraph | MIT |
| LangChain | MIT |
| MCP Python SDK | MIT |
| FastAPI | MIT |
| React | MIT |
| ChromaDB | Apache-2.0 |
| vLLM | Apache-2.0 |
| pypdf | BSD-3-Clause |
Terms of Use
AMD Solution Blueprints are released under the MIT License, which governs the parts of the software and materials created by AMD. Third-party software and materials used within the Solution Blueprints are governed by their respective licenses.
Refer to the documentation for additional information and advanced deployment options.
View advanced deployment guide