Home icon

Build agentic retrieval on a Managed Amazon Bedrock Knowledge Base with CDK

Machine Learning Blog



This article demonstrates building enterprise agentic retrieval on Amazon Bedrock Managed Knowledge Bases with AWS CDK, featuring multi-KB semantic routing, a reasoning agent, and seven layers of observability with on-demand and continuous evaluation.

  • Managed Knowledge Bases eliminate vector store provisioning and scaling, with Amazon Bedrock handling ingestion, storage, indexing, and retrieval automatically
  • AgenticRetrieveStream enables multi-turn planning, semantic routing across knowledge bases, and synthesized cited answers instead of single-shot retrieval
  • AgentCore Gateway exposes each knowledge base as an MCP tool, allowing agents to route questions to the appropriate corpus and retrieve iteratively
  • Seven observability layers span KB metrics, ingestion, retrieval quality, Gateway/MCP metrics, OTEL spans, token usage, and evaluation scores
  • On-demand evaluation uses LLM-as-judge over session spans; continuous evaluation samples live sessions automatically with built-in evaluators
  • Single CDK application deploys four stacks (kb, gateway, agent, dashboards) with automatic dependency ordering and cross-stack value threading
  • Two CloudWatch dashboards provide end-to-end agentic observability and per-KB operational metrics including index size, retrieve volume, and token usage

The solution demonstrates how managed infrastructure and agentic capabilities eliminate operational overhead while providing comprehensive observability for production enterprise retrieval systems.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Jul 23
2026
Agentic retrieval for Amazon Bedrock Managed Knowledge Base
Oct 5
2026
Agentic retrieval with LangChain and Amazon Bedrock Knowledge Bases
Aug 31
2026
Build observable enterprise agentic retrieval using Managed Amazon Bedrock Knowledge Base with AWS CloudFormation
Jul 16
2026
Build enterprise search for agents with Amazon Bedrock Managed Knowledge Base

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.