メインコンテンツにスキップAWS Startups
NEW

Install AWS Startup Advisor in Claude Code, VS Code, Cursor, or Kiro for AI and architecture guidance tailored to your startup's stack and stage. Track your AWS credits and spend in VS Code, Cursor, and Kiro.

Select your preferred coding tool for easy installation.Learn more
  1. プロンプトとエージェントライブラリ
  2. Claude との RAG チャットボット
Prompt Icon

Claude との RAG チャットボット

  • プロトタイピング
  • デプロイ
  • 初心者
  • Lambda
  • S3

PDF ドキュメント用の RAG 機能を備えた Claude on Bedrock を使用して、サーバーレスの React ベースのチャットボットを作成します。

2026年7月23日 に Kelsey Jamison によって作成されました

これらのプロンプトを使用することにより、この 免責事項 に同意したものとみなされます。

システムプロンプト

# AWS Claude RAG Chatbot Architecture Design Request

## Project Overview
I need a comprehensive design for a web-based chatbot application with the following key components:
- Claude on Amazon Bedrock as the LLM (use the latest available Claude Sonnet model in your region)
- RAG capabilities for PDF documents stored in S3
- React frontend with real-time chat functionality

## Detailed Requirements

### 1. Core Functionality
- **User Interface**: Web-based chat interface built with React
- **AI Backend**: Claude via Amazon Bedrock API (use the latest Claude Sonnet model available in your region — see [supported models](https://docs.aws.amazon.com/bedrock/latest/userguide/models-supported.html))
- **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

### 2. Performance Requirements
- Support for 100 concurrent users
- Response times under 2 seconds for typical queries
- Ability to process and index documents up to 100MB each

### 3. Cost Optimization Targets
- 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

### 4. Technical Architecture Preferences
- 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

### 5. Security & Compliance Requirements
- 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

## Deliverables Requested
1. Complete AWS solution architecture diagram
2. Infrastructure as Code (Terraform preferred)
3. Detailed deployment guide with step-by-step instructions
4. Cost estimation breakdown by AWS service
5. Security implementation details
6. 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.

使用方法

  1. AWS環境とコスト管理を設定する

    アカウントスタートアップ向け AWS 入門ガイドを作成し、アクセスを設定するには、手順に従ってください。 予算の設定、支出の監視、未使用リソースの停止を初期段階のスタートアップ向け クイッククラウドコスト最適化ガイド 行うには、ガイドを確認してください。

  2. AWS CLI をインストールする

    お使いの OS に対応した AWS CLI ソフトウェア名]をダウンロードしてインストールしてください。

  3. プロンプトをコピーする

    [プロンプトをコピー] をクリックして、プロンプトをクリップボードにコピーしてください。

  4. プロンプトをテストする

    プロンプトを AI ツール(例:Kiro CLI)に貼り付け、実行して結果を生成してください。

  5. 確認、デプロイ、監視

    生成されたリソースと推定コストを確認してください。 まずは開発環境にデプロイしてください。 本番環境に移行する前に、パフォーマンスと支出を監視してください。