Skip to content

Med Assist Voice Consultation

LiveKit-based voice consultation app with agent backend, web UI, and LLM support for medical assistance.

Publisher
AMD

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. For blueprint specific details such as connecting to existing LLM endpoints, configuring routing rules, enabling HTTPRoute access, STUNner configuration details and more, see the advanced deployment guide.

Prerequisites

Before deploying the Med Assist Voice Consultation blueprint, a cluster-admin must run ./install-prerequisites.sh once per cluster. This installs the STUNner Operator and creates a shared cluster-wide GatewayClass named stunner. Requires cluster-admin privileges ( ClusterRole, ClusterRoleBinding, CRDs).

After the script has been run, regular users can deploy and remove the blueprint without cluster-admin privileges and without errors.

Important: The STUNner operator is shared cluster infrastructure — do not delete its pods or scale it to zero while blueprints are running. Use ./install-prerequisites.sh --uninstall to remove it after all blueprints have been removed.

Requirements:

  • kubectl configured and pointing at your target cluster
  • Helm 3.16 – 4.2.0: Installed on your local machine
  • Cluster-admin or rights to create ClusterRole, ClusterRoleBinding, and CRDs

Clone the public repository https://github.com/amd-enterprise-ai/solution-blueprints/, then run the provided script once per cluster:

Terminal window
git clone https://github.com/amd-enterprise-ai/solution-blueprints.git
cd solution-blueprints/solution-blueprints/med-assist
./install-prerequisites.sh

This blueprint can be deployed on AMD Instinct (default) and AMD Radeon. The section below covers the default Instinct deployment commands. For Radeon and other advanced options, see:

System Requirements

  • Kubernetes cluster with GPU-capable worker nodes for LLM/ASR inference workloads.
  • STUNner Operator must be installed on the cluster to provide the WebRTC media gateway functionality. You can install it manually or by running the provided install-prerequisites.sh script (requires cluster-admin privileges or rights to create ClusterRole, ClusterRoleBinding, and CRDs).
  • Network configuration that allows client access to frontend and LiveKit endpoints (media traffic is routed through STUNner).
  • LiveKit media traffic requires preliminary network/firewall configuration. With STUNner integration, direct exposure of LiveKit media ports on worker nodes is no longer required in most setups.
    • If you use livekit.exposure.mode=nodePort, you must still allow inbound TCP to the chosen NodePort (default 32080) for WebSocket signaling.
    • For details on configuring STUNner, LiveKit media routing, and firewall rules, see docs/DEPLOYMENT.md.
  • Resource requirements (defaults in values.yaml for agent and frontend services):
    • Total CPU requests: 1 CPU (agent: 500m, frontend: 500m)
    • Total CPU limits: 4 CPU (agent: 2, frontend: 2)
    • Total memory requests: 2Gi (agent: 1Gi, frontend: 1Gi)
    • Total memory limits: 4Gi (agent: 2Gi, frontend: 2Gi)
  • Model serving resources (default bundled dependencies):
    • LLM (llm): requests/limits amd.com/gpu: 1, cpu: 4, memory: 64Gi, plus ephemeral storage 512Gi.
    • ASR (qwen-asr): requests/limits amd.com/gpu: 1 (for Qwen/Qwen3-ASR-1.7B), with memory sizing depending on your ASR image/config.
    • GPU planning baseline: plan for at least 2 GPUs total when running both bundled model services (1 for LLM + 1 for ASR).
    • If you use llm.existingService and/or qwen-asr.existingService, GPU requirements are defined by those external services.

Deployment

Create credentials Secret

The chart requires a Kubernetes Secret with LiveKit credentials before deployment. Use any credential generator you prefer — format requirements are:

  • API key: alphanumeric only (letters and digits, no spaces or special characters)
  • API secret: any random string of sufficient length (32+ characters recommended)
Terminal window
export LIVEKIT_API_KEY=<your-api-key>
export LIVEKIT_API_SECRET=<your-api-secret>
kubectl create secret generic med-assist-credentials \
--namespace $namespace \
--from-literal=livekit-api-key="$LIVEKIT_API_KEY" \
--from-literal=livekit-api-secret="$LIVEKIT_API_SECRET" \
--from-literal=keys.yaml="${LIVEKIT_API_KEY}: ${LIVEKIT_API_SECRET}"

Deploy

See the deployment documentation and follow the instructions (Deployment Guide):

  • Create the med-assist-credentials Secret first (see above).
  • Deploy from the OCI registry with helm template ... | kubectl apply -f -.
  • Set pythonServices.frontend.env.LIVEKIT_WS_URL to your external LiveKit WebSocket URL.
  • Optionally set llm.existingService and/or qwen-asr.existingService to reuse existing backends.
  • Access the frontend via port-forwarding or HTTPRoute.

Connect to UI

The frontend UI is exposed on port 7860 by the frontend service. To access the UI, port-forward and then open http://localhost:7860 in the browser:

Terminal window
kubectl port-forward "svc/aimsb-med-assist-$name-frontend" 7860:7860 -n $namespace

Usage

  1. Open the frontend at http://localhost:7860 (or your HTTPRoute URL).
  2. Select your microphone from the dropdown and connect.
  3. The three-panel consultation view appears:
    • Left — Clinical alerts, populated as the conversation progresses.
    • Center — Live transcript.
    • Right — Report panel with a Generate report button.
  4. Conduct the consultation. All audio in the LiveKit room is transcribed in real time.
  5. Click Generate report in the right panel to generate a structured report from the transcript so far:
SectionContent
SubjectivePatient-reported symptoms and history
ObjectiveObservable or measurable findings mentioned
AssessmentLikely diagnoses or clinical impressions
PlanRecommended next steps, treatments, or referrals

The report is editable.

  1. Click Stop session in the bottom bar when the consultation is complete.

Throughout the session the agent periodically analyzes the transcript in the background and surfaces safety alerts in real time — a check is triggered every few utterances, independently of report generation:

LevelExamples
criticalDrug interactions, contraindicated treatments, urgent red-flag symptoms
warningPotentially missing information
infoFallback

Configuration Highlights

  • LLM: set llm.existingService to reuse an external LLM; otherwise the chart deploys the default LLM via the llm dependency.
  • ASR (OpenAI-compatible): set qwen-asr.existingService to reuse an external ASR that exposes an OpenAI-compatible audio transcription API.
  • LiveKit credentials: LIVEKIT_API_KEY and LIVEKIT_API_SECRET are injected automatically from the med-assist-credentials Secret (see Create credentials Secret above). Do not set them in values.yaml.
  • Agent configuration (pythonServices.agent.env):
    • LLM_API_KEY — API key for the LLM backend when required by your llm deployment or external endpoint.
    • STT_API_KEY — API key for the external ASR service when using qwen-asr.existingService.
    • STT_MODEL — Model name for the external ASR service when using qwen-asr.existingService.
  • Frontend configuration (pythonServices.frontend.env):
    • LIVEKIT_WS_URL — external LiveKit WebSocket URL; without this value, chart rendering fails. See docs/DEPLOYMENT.md for details and examples.
  • Networking:
    • http_route.enabled=true enables frontend HTTPRoute generation.
    • LiveKit HTTPRoute is created when livekit.enabled=true.
    • With STUNner integration, direct exposure of LiveKit UDP media ports (50000-60000) on worker nodes is usually not required. STUNner handles media traffic routing.
    • If you use livekit.exposure.mode=nodePort, you must still allow inbound TCP to the chosen NodePort (default 32080) for WebSocket signaling.
    • For full details on STUNner configuration, Gateway/UDPRoute setup, and firewall rules, see docs/DEPLOYMENT.md.
  • Security: LiveKit credentials are sourced from the med-assist-credentials Secret. Keep this Secret secure and rotate credentials by updating the Secret and restarting affected pods.

Model compatibility guidance

This blueprint is validated with:

  • LLM services exposed via llm.existingService or the default llm dependency. The application is designed to operate correctly with models of capability level not lower than Llama 3.3 70B. Prompts and pipeline configuration have been tuned and tested for this class of models. Using smaller or less capable models may lead to issues such as incorrect or unstable structured output; in such cases, additional prompt or configuration tuning may be necessary.
  • ASR services that expose an OpenAI-compatible audio transcription API and are wired via the bundled qwen-asr dependency or qwen-asr.existingService. The quality and latency of transcription will depend on the specific ASR model you choose and its configuration.

Production quality depends on model capability and prompt behavior. If you switch to different models or ASR providers, validate transcription quality and generated SOAP consultation output in your target domain.

Third-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.

ComponentLicense
FastAPIMIT
GradioApache 2.0
LiveKitApache 2.0
STUNnerMIT
PydanticMIT

The blueprint also relies on AMD Inference Microservices (AIMs) for the default LLM and Qwen ASR backends. These are governed by their respective model and image licenses; see the catalog of available AIMs.

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