#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| Rank | Project | Score |
|---|---|---|
| 1 | agent-landing-zoneAzure infrastructure templates for deploying enterprise agent apps on Microsoft Foundry | 64 out of 100 |
| 2 | fullstack-solution-template-for-agentcoreReact frontend and AgentCore backend starter, deployed to AWS with CDK or Terraform | 44 out of 100 |
| 3 | azurechatPrivate enterprise chat on Azure OpenAI with document chat and personas | 42 out of 100 |
| #4 | openai-chat-app-quickstartMinimal Quart chat app on Azure OpenAI with managed identity | 40 out of 100 |
| #5 | get-started-with-ai-agentsAzure azd template for a Foundry agent chat app with file search | 33 out of 100 |