aws-samples/rag-with-amazon-bedrock-and-opensearch
Opinionated sample on how to build and deploy a RAG application with Amazon Bedrock and OpenSearch
Implements an event-driven document ingestion pipeline where PDFs trigger Lambda functions to extract text, generate vector embeddings via OpenAI, and automatically index content in OpenSearch for semantic search. The architecture layers Streamlit frontend, LangChain orchestration, and Bedrock foundation models on ECS with Cognito authentication and ALB routing, using AWS CDK for infrastructure-as-code deployment across multiple stacks.
Stars
54
Forks
8
Language
Python
License
MIT-0
Category
Last pushed
Mar 01, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/rag/aws-samples/rag-with-amazon-bedrock-and-opensearch"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Compare
Higher-rated alternatives
aws-samples/generative-ai-use-cases
Application implementation with business use cases for safely utilizing generative AI in...
aws-samples/serverless-rag-demo
Amazon Bedrock Foundation models with Amazon Opensearch Serverless as a Vector DB
aws-samples/amazon-bedrock-rag
Fully managed RAG solution implemented using Knowledge Bases for Amazon Bedrock
IBM/granite-workshop
Source code for the IBM Granite AI Model Workshop
aws-samples/generative-bi-using-rag
A solution guidance for Generative BI using Amazon Bedrock, Amazon OpenSearch with RAG