#66th of 7 in Cloud reference architectures

serverless-rag-demo

AWS CDK sample for document RAG chat and multi-agent workflows on Bedrock

Stars
223
License
MIT-0
Last commit
Oct 2026
Language
Python

Overview

Deploys a RAG chat app on AWS with one `sh deploy.sh` wizard that runs `cdk deploy --all`. Documents are indexed through a Bedrock Knowledge Base into OpenSearch Serverless NextGen and queried with hybrid BM25 + KNN search. A Strands Graph multi-agent runtime on Bedrock AgentCore routes requests to specialist nodes for code, presentations, web search, weather and retrieval.

Who it is for: AWS teams wanting a deployable Bedrock RAG and agent reference

Strengths

  • Hybrid BM25 + KNN search with per-user document isolation
  • Demo OCU mode scales to zero, so idle cost is listed as $0
  • Full infrastructure as Python CDK stacks, with Cognito auth and CloudFront hosting
  • MIT-0 license with no attribution requirement

Weaknesses

  • AWS only: Bedrock, AgentCore, OpenSearch Serverless and Cognito are all required
  • Models fixed to Claude Sonnet/Opus 4.6 and Titan Embed V2; no other providers listed
  • Supported in six regions only; us-west-1 and ap-southeast-1 excluded
  • No release tags, and tests cover CDK unit checks only

What it needs

  • Python, Claude Sonnet 4.6, Claude Opus 4.6, Amazon Titan Embed Text V2
  • Needs AWS account, Amazon Bedrock, OpenSearch Serverless NextGen, Bedrock AgentCore, Amazon Cognito, CloudFront, S3, Docker, AWS CDK CLI
  • Docker

Also in Cloud reference architectures

See all 7
Also in Cloud reference architectures
RankProjectScore
1agent-landing-zoneAzure infrastructure templates for deploying enterprise agent apps on Microsoft Foundry1.2k stars, MIT64 out of 100
2fullstack-solution-template-for-agentcoreReact frontend and AgentCore backend starter, deployed to AWS with CDK or Terraform597 stars, Apache-2.044 out of 100
3azurechatPrivate enterprise chat on Azure OpenAI with document chat and personas1.4k stars, MIT42 out of 100
#4openai-chat-app-quickstartMinimal Quart chat app on Azure OpenAI with managed identity254 stars, MIT40 out of 100
#5get-started-with-ai-agentsAzure azd template for a Foundry agent chat app with file search374 stars, MIT33 out of 100