AIToday
Large Language ModelsAI Coding AssistantsAmazon AI BlogPublished: Oct 27, 2026, 04:00 JST

AWS ships CDK app for agentic retrieval, one 'cdk deploy --all'

Send on LINE
AWS ships CDK app for agentic retrieval, one 'cdk deploy --all'

3 Key Points

  1. What happened

    AWS published a Python AWS CDK application that deploys four stacks — knowledge bases, an AgentCore Gateway, an agent, and dashboards — in one 'cdk deploy --all' command, routing questions across two Managed Knowledge Bases via the AgenticRetrieveStream API.

  2. Why it matters

    Building this on Amazon Bedrock now takes one deploy instead of hand-sequenced infrastructure, and the same deployment ships two CloudWatch dashboards covering seven layers of telemetry plus on-demand and continuous evaluation, so teams can see which knowledge base the agent chose and whether answers stayed grounded.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

The starting point for this post is a familiar limitation: classic Retrieval Augmented Generation does one retrieval and one generation, so questions whose answer spans two document sets, or that need a second look after the first result, tend to come back fluent but incomplete. Putting a reasoning agent in the loop changes that, because the agent decides whether to retrieve, which knowledge base to consult, and whether to go back for more before composing an answer.

Amazon Bedrock's move to a Managed Knowledge Base is what makes that pattern deployable rather than bespoke. Ingestion, storage, indexing, and retrieval are handled by the service, and agentic retrieval plus the AgentCore Gateway connector are offered only on the managed variant — so the choice of foundation is effectively made for you if you want this capability. AWS notes the customer-managed option still fits teams that want to operate their own vector store, for example to meet data-residency or compliance requirements.

The design choice worth noticing is splitting the two corpora into two separate knowledge bases, each exposed as its own tool. That makes routing an explicit, observable decision: the span tree shows which tool the agent picked, and retrieval-quality metrics stay separate per knowledge base instead of averaging across unrelated domains. Roughly half of what the application provisions exists for that reason — to report what the agent did, not just to answer the question.

FAQ
What does it actually deploy?
Four CDK stacks: knowledge bases, an AgentCore Gateway, an agent runtime, and dashboards. The knowledge-base stack uploads two sample corpora from S3 and ingests each into its own Managed Knowledge Base, and the dashboards stay empty until you drive traffic through the agent.
What data does it come with?
Two small corpora bundled in the repository: a synthetic Octank Financial 10-K (~198 KB) and a real U.S. Congressional Research Service report on tornadoes (IF12695, ~560 KB). The financial data is model-generated sample data, not real financial data.
What are the prerequisites?
An AWS account with permissions for Amazon Bedrock, AgentCore, IAM, CloudWatch, X-Ray, ECR, CodeBuild, S3, Lambda, and CloudFormation, plus the agent's model available in the account. You also need CloudWatch Transaction Search enabled, Node.js 18+ and the CDK CLI, Python 3.13+, and a bootstrapped account and Region — no local Docker, since CodeBuild builds the agent image.
Amazon AI BlogRead Original Article
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleGoogle, Stanford launch Polar Peaks AI literacy quest