{"id":26218412,"url":"https://github.com/awsdataarchitect/opensearch-bedrock-rag-cdk","last_synced_at":"2025-12-26T16:49:07.551Z","repository":{"id":247182573,"uuid":"823969330","full_name":"awsdataarchitect/opensearch-bedrock-rag-cdk","owner":"awsdataarchitect","description":"Open-source repo with demo of Generative AI RAG solution using Amazon Bedrock and OpenSearch Serverless - Using the Well-Architected Machine Learning Lens PDF to prepare for Machine Learning Engineer Associate (MLA-C01) Certification","archived":false,"fork":false,"pushed_at":"2024-08-12T05:13:15.000Z","size":4094,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-08-12T06:28:17.515Z","etag":null,"topics":["aws","bedrock","cdk","genai","opensearch"],"latest_commit_sha":null,"homepage":"https://vivek-aws.medium.com/rag-solution-using-amazon-bedrock-part-1-build-theamazon-opensearch-serverless-vector-db-using-1656663a302b","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/awsdataarchitect.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-04T05:39:28.000Z","updated_at":"2024-08-12T06:28:19.566Z","dependencies_parsed_at":"2024-07-31T06:29:57.579Z","dependency_job_id":"5f423978-463a-493a-acd6-d3e772e3de49","html_url":"https://github.com/awsdataarchitect/opensearch-bedrock-rag-cdk","commit_stats":null,"previous_names":["awsdataarchitect/opensearch-bedrock-rag-cdk"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awsdataarchitect%2Fopensearch-bedrock-rag-cdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awsdataarchitect%2Fopensearch-bedrock-rag-cdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awsdataarchitect%2Fopensearch-bedrock-rag-cdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awsdataarchitect%2Fopensearch-bedrock-rag-cdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/awsdataarchitect","download_url":"https://codeload.github.com/awsdataarchitect/opensearch-bedrock-rag-cdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243222141,"owners_count":20256229,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","bedrock","cdk","genai","opensearch"],"created_at":"2025-03-12T13:16:53.727Z","updated_at":"2025-12-26T16:49:02.526Z","avatar_url":"https://github.com/awsdataarchitect.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Open-source repo with demo of Generative AI RAG solution using Amazon Bedrock and OpenSearch Serverless - Using the Well-Architected Machine Learning Lens PDF to prepare for the AWS Machine Learning Engineer Associate (MLA-C01) Certification Exam\n\nThis is a CDK project written in TypeScript to demo how to implement a RAG solution using Amazon Bedrock and Amazon OpenSearch Serverless\n\n#  Architecture Diagram: RAG Solution using Amazon Bedrock and AOSS (Amazon OpenSearch Serverless)\n![Alt text](./bedrock-aoss-rag.png?raw=true \"RAG Solution using Amazon Bedrock and AOSS (Amazon OpenSearch Serverless)\")\n\nFor more details on how to deploy the infrastructure and the solution details, please refer to the Blog Posts:\n* [Part 1: Build the Amazon OpenSearch Serverless Vector Db using AWS-CDK](https://vivek-aws.medium.com/rag-solution-using-amazon-bedrock-part-1-build-theamazon-opensearch-serverless-vector-db-using-1656663a302b).\n* [Part 2: Build the MCQ orchestrator using Bedrock Converse API](https://vivek-aws.medium.com/rag-solution-using-amazon-bedrock-part-2-build-the-mcq-orchestrator-using-bedrock-converse-api-61c2b2ce3f20).\n\n#  Architecture Diagram: RAG App using Amazon Bedrock and AOSS (Amazon OpenSearch Serverless) running on ECS Fargate\n![Alt text](./bedrock-ecs-aoss-rag.png?raw=true \"RAG App using Amazon Bedrock and AOSS (Amazon OpenSearch Serverless) running on ECS Fargate\")\n* [Part 3: Automating Application Setup with ECS Fargate, Bedrock, and OpenSearch Serverless](https://vivek-aws.medium.com/rag-solution-using-amazon-bedrock-part-3-automating-application-setup-with-ecs-fargate-bedrock-b3a55af9f0a4).\n\n#  Architecture Diagram: RAG App with Cognito Authenitcation using Amazon Bedrock and AOSS (Amazon OpenSearch Serverless) running on ECS Fargate\n![Alt text](./bedrock-ecs-cognito-aoss-rag.png?raw=true \"RAG App with Cognito Authenitcation using Amazon Bedrock and AOSS (Amazon OpenSearch Serverless) running on ECS Fargate\")\n* [Part 4: Integrating Cognito Authentication with ECS Fargate, Bedrock, and OpenSearch Serverless](https://vivek-aws.medium.com/rag-solution-using-amazon-bedrock-part-3-automating-application-setup-with-ecs-fargate-bedrock-b3a55af9f0a4).\n* [Part 5: Enhancing Security Posture of the GenAI Application](https://vivek-aws.medium.com/rag-solution-using-amazon-bedrock-part-5-enhancing-security-posture-of-the-genai-application-27c8376597a5).\n\n#  Architecture Diagram: Event-Driven Document Indexing RAG App with Cognito Authenitcation using Amazon Bedrock and AOSS (Amazon OpenSearch Serverless) running on ECS Fargate\n![Alt text](./bedrock-ecs-sqs-lambda-cognito-aoss-rag.png?raw=true \"Event-Driven Document Indexing RAG App with Cognito Authenitcation using Amazon Bedrock and AOSS (Amazon OpenSearch Serverless) running on ECS Fargate\")\n* [Part 6: Enhancing Document Indexing with Event-Driven Architecture for a GenAI Application](https://medium.com/@vivek-aws/rag-solution-using-amazon-bedrock-part-6-enhancing-document-indexing-with-event-driven-770eaf167a0a).\n\n* [Part 7: Deploying on Amazon EKS](https://vivek-aws.medium.com/rag-solution-using-amazon-bedrock-part-7-deploying-on-amazon-eks-bae8a56c0ba1).\n\n#  Architecture Diagram: Event-Driven Document Indexing RAG App with Cognito Authenitcation using Amazon Bedrock and AOSS (Amazon OpenSearch Serverless) running on EKS Cluster\n![Alt text](./bedrock-eks-sqs-lambda-cognito-aoss-rag.png?raw=true \"Event-Driven Document Indexing RAG App with Cognito Authenitcation using Amazon Bedrock and AOSS (Amazon OpenSearch Serverless) running on EKS Cluster\")\n* [Part 8: Integrating Amazon Cognito with Amazon EKS](https://vivek-aws.medium.com/rag-solution-using-amazon-bedrock-part-8-integrating-amazon-cognito-with-amazon-eks-605b3982f8c2).\n\n* [Part 9: Optimizing ECS and EKS Infrastructure with AWS Graviton](https://vivek-aws.medium.com/rag-solution-on-amazon-bedrock-part-9-optimizing-ecs-and-eks-infra-with-aws-graviton-897353d96390).\n\n* [Part 10: Develop Cost Sensitive Self-Terminating Resources Using CDK Aspects and Advanced CDK Tips](https://medium.com/@vivek-aws/rag-solution-on-amazon-bedrock-part-10-develop-cost-sensitive-self-terminating-resources-using-97aa0c0ebc20).\n\nThe `cdk.json` file tells the CDK Toolkit how to execute your app.\n\n## Useful commands\n\n* `npm run build`   compile typescript to js\n* `npm run watch`   watch for changes and compile\n* `npm run test`    perform the jest unit tests\n* `npx cdk deploy`  deploy this stack to your default AWS account/region\n* `npx cdk diff`    compare deployed stack with current state\n* `npx cdk synth`   emits the synthesized CloudFormation template\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawsdataarchitect%2Fopensearch-bedrock-rag-cdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawsdataarchitect%2Fopensearch-bedrock-rag-cdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawsdataarchitect%2Fopensearch-bedrock-rag-cdk/lists"}