AI Cloud Architect

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

AWSHow-to by Prabhakar Chandrasekaran and Siddhant SahuAWS Artificial Intelligence Blog

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.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

A CDK application deploys an agent that routes questions across two Managed Bedrock Knowledge Bases via AgentCore Gateway, with seven telemetry layers and on-demand and continuous evaluation.

Who it is for

Architects and developers building agentic RAG on AWS who need routing across several knowledge bases and observability for agent behavior.

Key points

  • Agentic retrieval (AgenticRetrieveStream) is available only on Managed Knowledge Bases, not customer-managed ones.
  • Deployment is one command (cdk deploy --all) across four stacks; the post notes a region availability check is required.
  • Agent image build via CodeBuild takes roughly 8-10 minutes; online evaluation results appear only after a session closes, around 30 minutes idle.
  • Post states the financial corpus is synthetic and the weather corpus is a public CRS report.

Timeline

Posts about Amazon Bedrock Knowledge Bases, oldest first.

  1. How-toAgentic retrieval with LangChain and Amazon Bedrock Knowledge Bases · AWS · How-to
  2. What it explainsHow Qlik built grounded, enterprise-scale AI with Amazon Bedrock · AWS · Customer story
  3. Blog postRethinking access control for RAG with AWS Quick and Amazon Bedrock · AWS · Blog post
  4. Customer storyHow IskayPet unified corporate knowledge with Amazon Bedrock Managed Knowledge Bases · AWS · Customer story
  5. This postBuild agentic retrieval on a Managed Amazon Bedrock Knowledge Base with CDK
  6. How-toPrepare web content for Amazon Bedrock Knowledge Bases with Crawl4AI · AWS · How-to
  7. How-toSingle-shot and agentic retrieval with Amazon Bedrock Managed Knowledge Base · AWS · How-to
  8. How-toFine-grained access control for Amazon Bedrock Managed Knowledge Base tools · AWS · How-to
  9. How-toMigrate to Amazon Bedrock Managed Knowledge Base with your coding agent · AWS · How-to
Show all 37 posts
  1. How-toDeploy Amazon Bedrock Knowledge Bases using Terraform for RAG-based generative AI applications · AWS · How-to
  2. Generally availableMultimodal retrieval for Bedrock Knowledge Bases now generally available · AWS · Announcement
  3. How-toSecuring Amazon Bedrock cross-Region inference: Geographic and global · AWS · How-to
  4. Generally availableIntroducing multimodal retrieval for Amazon Bedrock Knowledge Bases · AWS · Announcement
  5. How-toHow Ring scales global customer support with Amazon Bedrock Knowledge Bases · AWS · How-to
  6. How-toBuild and deploy an automatic sync solution for Amazon Bedrock Knowledge Bases · AWS · How-to
  7. Generally availableAmazon Bedrock Managed Knowledge Base is now generally available · AWS · AnnouncementAlso published by AWS News Blog
  8. Blog postSecure multi-tenant RAG with Amazon Bedrock and Verified Permissions · AWS · Blog post
  9. How-toPowering scientific discovery: BYOKG and GraphRAG for intelligent pharmaceutical research · AWS · How-to
  10. Read firstBuild enterprise search for agents with Amazon Bedrock Managed Knowledge Base · AWS · Announcement
  11. How-toAgentic retrieval for Amazon Bedrock Managed Knowledge Base · AWS · How-to
  12. How-toImprove contract search accuracy with auto-generated filters in Amazon Bedrock · AWS · How-to
  13. How-toDemocratizing institutional knowledge: Building an AI-powered knowledge management system with AWS · AWS · How-to
  14. Blog postBuild multi-tenant agentic chat applications on enterprise data with Amazon Bedrock Managed Knowledge Base · AWS · Blog post
  15. How-toBuild observable enterprise agentic retrieval using Managed Amazon Bedrock Knowledge Base with AWS CloudFormation · AWS · How-to
  16. How-toCustomizing your knowledge base on Amazon Bedrock for large and complex documents using Amazon Textract · AWS · How-to
  17. New featureAmazon Bedrock Managed Knowledge Base now supports automatic sync scheduling for data source connectors · AWS · Announcement
  18. New featureAmazon Bedrock Managed Knowledge Base now supports ServiceNow as a native data source connector · AWS · Announcement
  19. New featureAmazon Bedrock Managed Knowledge Base introduces user-managed setup for SharePoint, OneDrive, and Confluence data sources · AWS · Announcement
  20. New featureAmazon Bedrock Managed Knowledge Base now supports Confluence Data Center as a native data source connector · AWS · Announcement
  21. New featureAmazon Bedrock Managed Knowledge Base adds APIs and console support for debugging document-level access control · AWS · Announcement
  22. How-toVideo and image search in Amazon Bedrock Knowledge Base using Marengo 3.0 · AWS · How-to
  23. New modelAmazon Bedrock Managed Knowledge Base now supports multimodal embeddings for video, audio, and image content with TwelveLabs Marengo 3.0 · AWS · Announcement
  24. New featureAmazon Bedrock Managed Knowledge Base now supports Salesforce and Zendesk as native data source connectors · AWS · Announcement
  25. How-toQuery claims in natural language with Amazon Bedrock Knowledge Bases · AWS · How-to
  26. How-toAgentic retrieval with LangChain and Amazon Bedrock Knowledge Bases · AWS · How-to
  27. What it explainsHow Qlik built grounded, enterprise-scale AI with Amazon Bedrock · AWS · Customer story
  28. Blog postRethinking access control for RAG with AWS Quick and Amazon Bedrock · AWS · Blog post
  29. Customer storyHow IskayPet unified corporate knowledge with Amazon Bedrock Managed Knowledge Bases · AWS · Customer story
  30. This postBuild agentic retrieval on a Managed Amazon Bedrock Knowledge Base with CDK
  31. How-toPrepare web content for Amazon Bedrock Knowledge Bases with Crawl4AI · AWS · How-to
  32. How-toSingle-shot and agentic retrieval with Amazon Bedrock Managed Knowledge Base · AWS · How-to
  33. How-toFine-grained access control for Amazon Bedrock Managed Knowledge Base tools · AWS · How-to
  34. How-toMigrate to Amazon Bedrock Managed Knowledge Base with your coding agent · AWS · How-to
  35. How-toCustomize answers per tenant in Amazon Bedrock Managed Knowledge Base · AWS · How-to
  36. How-toGet answers from tables with tabular search in Amazon Bedrock Managed Knowledge Base · AWS · How-to
  37. How-toBuild memory-aware AI agents with Agentic Retrieve on Amazon Bedrock Managed Knowledge Base · AWS · How-to

Go deeper