Create a serverless, React-based chatbot using Claude on Bedrock with RAG capabilities for PDF documents.
Overview: This template generates a comprehensive, production-ready architectural blueprint for deploying a sophisticated Retrieval-Augmented Generation (RAG) chatbot. It leverages the power of Claude 3 Sonnet via Amazon Bedrock, integrated with a serverless AWS backend (Lambda/API Gateway) and a vector database to enable intelligent querying over private PDF documents stored in S3. The output focuses on delivering high performance, security, and cost efficiency, adhering strictly to AWS Well-Architected principles.
Who is this for:
How it works: The prompt acts as a detailed technical specification request. It mandates specific technologies (Claude 3 Sonnet, React, Terraform, OpenSearch/Vector DB) and imposes strict non-functional requirements (performance under 2s, cost under $200/month). The AI model is instructed to synthesize these requirements into a complete deliverable package, including architecture diagrams, IaC scripts, security plans, and cost estimates, ensuring all components work together seamlessly for real-time, document-aware chat.
Pro-Tip: To maximize the quality of the Terraform output, explicitly state the preferred vector database (e.g., "Use Amazon OpenSearch Serverless for the vector store") in a follow-up prompt, as the initial prompt allows for an "equivalent." Always request the architecture diagram description first, as it sets the context for the subsequent detailed deliverables.