Setting the file. One moment.
RAG Chatbot With Claude · Prompt Library For Startups · aws/agent-toolkit-for-aws · Skills Docs
Create a serverless, React-based chatbot using Claude on Bedrock with RAG capabilities for PDF documents.
ContentsBack to the top of the page 31
Prompt Library For Startups
81
Creating Amazon Aurora Db Cluster With Instances
104
Routing Traffic With Route53 And CloudFront
Resilience Program Design
Creating API Gateway Stage
System Prompt
I need a comprehensive design for a web-based chatbot application with the following key components:
Claude 3 Sonnet on Amazon Bedrock as the LLM
RAG capabilities for PDF documents stored in S3
React frontend with real-time chat functionality
User Interface : Web-based chat interface built with React
AI Backend : Claude 3 Sonnet model via Amazon Bedrock API
RAG System :
PDF document search and retrieval from S3
Document upload functionality for expanding knowledge base
Vector search across 1000+ documents
Persistence :
Chat history storage and retrieval
User authentication and session management
Support for 100 concurrent users
Response times under 2 seconds for typical queries
Ability to process and index documents up to 100MB each
Monthly operational cost under $200 for moderate usage
Strategic use of spot instances where appropriate
Caching implementation to minimize Bedrock API calls
Pay-per-use services prioritized
Serverless backend architecture (AWS Lambda)
Vector database for embeddings (OpenSearch or equivalent)
PDF processing pipeline for text extraction and embedding
WebSocket implementation for real-time chat experience
API Gateway for REST endpoint management
End-to-end encryption for documents (at rest and in transit)
IAM roles configured with least privilege principle
Rate limiting implementation to prevent system abuse
Comprehensive audit logging for all system interactions
Complete AWS solution architecture diagram
Infrastructure as Code (Terraform preferred)
Detailed deployment guide with step-by-step instructions
Cost estimation breakdown by AWS service
Security implementation details
Readme with full documentation
Please provide a solution that adheres to AWS Well-Architected Framework principles, with particular attention to reliability, performance efficiency, and cost optimization.
Provide your complete solution architecture without any preamble, starting with the high-level architecture diagram description.
references/prompt-library/rag-chatbot-with-claude.md