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

DevFeed: [Build agentic retrieval on a Managed Amazon Bedrock Knowledge Base with CDK](<https://devfeed.tech/articles/build-agentic-retrieval-on-a-managed-amazon-bedrock-knowledge-base-with-cdk-101017.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/machine-learning/build-agentic-retrieval-on-a-managed-amazon-bedrock-knowledge-base-with-cdk/>)

Author: Prabhakar Chandrasekaran

Published: 2026-10-26T17:15:14Z

Content type: article

Language: en

Sources: [Artificial Intelligence](<https://devfeed.tech/sources/artificial-intelligence.md>)

Topics: [Amazon Bedrock Knowledge Bases](<https://devfeed.tech/topics/amazon-bedrock-knowledge-bases.md>), [Amazon Bedrock AgentCore](<https://devfeed.tech/topics/amazon-bedrock-agentcore.md>), [Amazon CloudWatch](<https://devfeed.tech/topics/amazon-cloudwatch.md>), [Agentic AI](<https://devfeed.tech/topics/what-is-agentic-ai.md>), [information retrieval](<https://devfeed.tech/topics/information-retrieval.md>), [AI Infrastructure](<https://devfeed.tech/topics/ai-infrastructure.md>)

Tags: [advanced-300](<https://devfeed.tech/tags/advanced-300.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agentcore](<https://devfeed.tech/tags/agentcore.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [agentic-retrieval](<https://devfeed.tech/tags/agentic-retrieval.md>), [all](<https://devfeed.tech/tags/all.md>), [amazon](<https://devfeed.tech/tags/amazon.md>), [amazon-bedrock](<https://devfeed.tech/tags/amazon-bedrock.md>), [amazon-bedrock-agentcore](<https://devfeed.tech/tags/amazon-bedrock-agentcore.md>), [amazon-bedrock-knowledge-bases](<https://devfeed.tech/tags/amazon-bedrock-knowledge-bases.md>), [application](<https://devfeed.tech/tags/application.md>), [aws](<https://devfeed.tech/tags/aws.md>), [aws-cdk](<https://devfeed.tech/tags/aws-cdk.md>), [base](<https://devfeed.tech/tags/base.md>), [bedrock](<https://devfeed.tech/tags/bedrock.md>), [build](<https://devfeed.tech/tags/build.md>), [cdk](<https://devfeed.tech/tags/cdk.md>), [continuous](<https://devfeed.tech/tags/continuous.md>), [knowledge](<https://devfeed.tech/tags/knowledge.md>), [knowledge-base](<https://devfeed.tech/tags/knowledge-base.md>), [managed](<https://devfeed.tech/tags/managed.md>), [retrieval](<https://devfeed.tech/tags/retrieval.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>), [with](<https://devfeed.tech/tags/with.md>)

## AI overview

The article presents a CDK application that routes questions across two Managed Amazon Bedrock Knowledge Bases through an AgentCore Gateway, with AgenticRetrieveStream producing iterative, grounded answers with citations. Bedrock manages ingestion, storage, indexing, and retrieval, avoiding a customer-operated vector store; agentic retrieval and the Gateway connector are available only with managed knowledge bases. The four-stack app provisions seven observability layers plus on-demand and continuous evaluation. Continuous scoring runs after sessions close, and its 100% sampling setting is for the blog experiment; LLM-as-judge costs scale with sampling and traffic. Deployment requires supported AWS services and models in the target Region, CDK bootstrap, Node.js 18+, and Python 3.13+; CodeBuild builds the agent image, so local Docker is unnecessary. The article contrasts this with single-shot retrieval, which is simpler and cheaper per query when one corpus suffices, and notes customer-managed stores remain useful for reuse or specific residency, tuning, or compliance needs.

## Source excerpt

Build enterprise agentic retrieval on a Managed Amazon Bedrock Knowledge Base with the AWS CDK: an agent that routes across two knowledge bases, retrieves through the AgentCore Gateway, and returns grounded, cited answers, with seven layers of observability and both on-demand and continuous evaluation, all deployed as a single CDK application.