AI Report Generator#

Overview#

AI Report Generator UI

This Solution Blueprint illustrates how automated technical report generation can be implemented using AMD Inference Microservices (AIMs). It employs a multi-stage LLM workflow with integrated web research, where the system plans, researches, writes, and compiles content to produce comprehensive, evidence-based technical documents on any topic.

AI Report Generator was previously published as Report Generation Engine (chart aimsb-report-generation-engine).

The blueprint follows a four-stage pipeline:

  • Planning: Generates search queries and creates a section outline

  • Research: Gathers sources for each section, either from live web search via the Tavily API or from a bundled offline sample corpus

  • Writing: Generates content for each section using the gathered research

  • Compilation: Assembles the final markdown report with introduction and conclusion

The blueprint runs out of the box with no third-party account. By default it researches from a small bundled corpus of AMD sources, which is enough to demonstrate the full pipeline end to end. Supplying a Tavily API key switches it to live web search across any topic.

AMD Solution Blueprints are packaged as Helm charts for deployment on a Kubernetes cluster. For development or further exploration, the source code is public and available in the Solution Blueprints GitHub repository.

Architecture#

Report generation is performed by a four-stage pipeline with LLM and web research integration. Report generation is performed by a four-stage pipeline with LLM and web research integration.

The blueprint integrates a Streamlit web UI, a FastAPI backend, an AIM LLM service, and Tavily web search. LangChain orchestrates the multi-stage workflow across planning, research, writing, and compilation.

Component

Role

Streamlit

Web-based user interface

FastAPI

REST API backend

AIM (LLM)

Technical writing and synthesis (defaults: GPT OSS 20B on AMD Instinct; Qwen 3 VL 8B on AMD Radeon; Llama 3.1 8B on AMD EPYC)

LangChain

Orchestration of LLM calls

Offline corpus

Bundled AMD sample sources used when no Tavily key is configured (default)

Tavily API

Optional live web search for research integration

Key Features#

  • Offline and online search: runs out of the box on a bundled AMD sample corpus, or switch to live web search across any topic by adding a Tavily API key

  • Generates comprehensive technical reports on any user-provided topic

  • Users can customize the report structure or use intelligent defaults

  • Real-time progress tracking shows each stage of the generation process

  • Research results are automatically integrated and cited in the final report

  • The active research mode is shown in the UI and recorded in the generated report

Getting Started#

This is a quick start guide on how to deploy the blueprint. For advanced options, such as reusing an existing AIM, configuring search parameters, 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 Radeon, and AMD EPYC. The blueprint requires the following cluster resources by default, depending on the hardware being used:

Resource

Instinct

Radeon

EPYC

GPUs

1

1

—

CPUs

6 CPU cores

6 CPU cores

190 CPU cores (default)

RAM

68 GiB

36 GiB

132 GiB

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

  • Storage: A Kubernetes StorageClass named mlstorage must be available. To use a different storage class or temporary emptyDir storage, see DEPLOYMENT.md.

No third-party credentials are required for the default deployment. Optionally, a Tavily API key (free tier: 1,000 requests/month) enables live web search instead of the bundled sample corpus.

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 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-ai-report-generator \
  | kubectl apply -f - -n $namespace

EPYC runs the model on CPU (gpus=0, bf16, AIM_ALLOW_UNOPTIMIZED=true), sized via llm.cpus/llm.memory. The default EPYC AIM is a gated image, so provide a Hugging Face token through a Secret.

name="my-deployment"
namespace="my-namespace"
kubectl create namespace $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-ai-report-generator \
  --set global.platform=epyc \
  --set llm.cpus=188 \
  --set llm.memory=128 \
  --set llm.env_vars.HF_TOKEN.name=hf-token \
  --set llm.env_vars.HF_TOKEN.key=hf-token \
  | kubectl apply -f - -n $namespace

Specify the CPU and memory resources here depending on your chosen LLM, hardware configuration, and performance needs.

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 CPUs and memory can land on different NUMA nodes and vLLM runs effectively single-threaded.

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

Verify Deployment#

To check the status of the deployment, run:

kubectl get pods -n $namespace

Wait until all pods report Running and Ready.

Connect to UI#

To connect to the UI, port-forward to 8501. The UI will then be available at http://localhost:8501 in your browser.

kubectl port-forward services/aimsb-ai-report-generator-${name} 8501:8501 -n $namespace

To generate a report:

  • Enter a topic, and optionally customize the report structure (or use the intelligent default)

  • Start generation. Progress is tracked live through each pipeline stage: Planning, Research, Writing, Compilation

  • The active research mode (offline corpus or live Tavily search) is shown above the form and recorded in the generated report

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-ai-report-generator \
  | kubectl delete -f - -n $namespace

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.

Component

License

FastAPI

MIT

LangChain

MIT

Streamlit

Apache 2.0

Tavily API: Optional web search API for live research integration. Not used by the default deployment, which researches from the bundled sample corpus.

  • Website: https://tavily.com

  • Terms of Use: https://tavily.com/terms-of-service

  • License: Commercial API service; requires API key

Bundled sample corpus: src/offline_sources.yaml summarises publicly published AMD product and documentation pages, each entry linking to the page it came from. It exists so the blueprint can be demoed without a third-party account, and is not a substitute for live research.

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.