AWS.Chatbot Chatbot, FastAPI tabanlı bir backend, Gradio tabanlı bir frontend, LlamaIndex ile RAG pipeline, ChromaDB vektör veritabanı ve AWS Bedrock (Claude) LLM entegrasyonundan oluşur. Redis, kullanıcı session'larını ve cache'i yönetir. Google Sheets, tüm etkileşimleri loglar.
- URL:
/welcome - Method: GET
- Açıklama: Sistem sağlık kontrolü ve karşılama mesajı
- Yanıt:
{ "response": "AWS.Chatbot Chatbot'a hoş geldiniz!" }
- URL:
/chat - Method: POST
- Açıklama: Ana sohbet arayüzü
- Request Body:
{
"message": "Merhaba, nasılsınız?",
"session_id": "user_123"
}- URL:
/rag-query - Method: POST
- Açıklama: Doğrudan RAG sorgusu
- Request Body:
{
"query": "AWS.Chatbot nedir?",
"context": "optional_context"
}- Yanıt:
{ "yanit": "AWS.Chatbot, konaklama ve ağırlama sektörüne özel yapay zeka..." }
- URL:
/health - Method: GET
- Açıklama: Sistem durumu kontrolü
- Yanıt: Sistem sağlık bilgileri
- URL:
/test-redis - Method: GET
- Açıklama: Redis bağlantı testi
- Yanıt: Redis durum bilgileri
- URL:
/test-bedrock - Method: GET
- Açıklama: AWS Bedrock bağlantı testi
- Yanıt: Bedrock durum bilgileri
- Port: 8000
- Framework: FastAPI + Python 3.9+
- Async Support: Evet
- CORS: Aktif
- Rate Limiting: Aktif
- Port: 7860
- Framework: Gradio
- Real-time Updates: WebSocket
- Responsive Design: Evet
- RAG Pipeline: LlamaIndex
- LLM: AWS Bedrock (Claude)
- Embeddings: HuggingFace Transformers
- Vector DB: ChromaDB
- Cache: Redis (Port 6379)
- Vector DB: ChromaDB (Port 8001)
- Logging: Google Sheets API
- Sessions: Redis Streams
- Proxy: Nginx (Port 80/443)
- SSL: Let's Encrypt
- Process Manager: systemd
- Auto-restart: Aktif
Python 3.9+
Redis Server
PostgreSQL (opsiyonel)
AWS Bedrock Access
Google Sheets API# Repository klonla
git clone <repository-url>
cd AWS-EC2-Chatboot
# Bağımlılıkları yükle
pip install -r requirements.txt
# Environment variables ayarla
cp .env.example .env
# .env dosyasını düzenle
# Redis başlat
redis-server
# Uygulamayı başlat
python main.py# AWS Bedrock
AWS_ACCESS_KEY_ID=your_access_key
AWS_SECRET_ACCESS_KEY=your_secret_key
AWS_REGION=us-east-1
# Google Sheets
GOOGLE_SHEETS_CREDENTIALS=path/to/credentials.json
GOOGLE_SHEETS_ID=your_sheet_id
# Redis
REDIS_HOST=localhost
REDIS_PORT=6379
# Database
DATABASE_URL=postgresql://user:pass@localhost/dbname- Average: < 2 seconds
- 95th Percentile: < 5 seconds
- 99th Percentile: < 10 seconds
- Concurrent Users: 100+
- Requests/Second: 50+
- Memory Usage: < 2GB
- RAG Response Quality: > 90%
- LLM Response Relevance: > 95%
- Context Retrieval: > 85%
- API Key authentication
- Rate limiting
- CORS protection
- Input validation
- PII masking
- Secure logging
- Data encryption
- GDPR compliance
- SSL/TLS encryption
- Firewall rules
- Regular security updates
- Access control
- System status monitoring
- Service availability
- Resource usage tracking
- Error rate monitoring
- Request/response logging
- Error tracking
- Performance metrics
- User interaction logs
- Service down notifications
- Performance degradation alerts
- Error rate thresholds
- Resource usage warnings
-
Redis Connection Error
- Redis server status kontrol et
- Port 6379 açık mı kontrol et
- Firewall ayarlarını kontrol et
-
AWS Bedrock Error
- AWS credentials kontrol et
- Region ayarlarını kontrol et
- IAM permissions kontrol et
-
ChromaDB Error
- Vector database status kontrol et
- Disk space kontrol et
- Permissions kontrol et
# Redis status
redis-cli ping
# FastAPI logs
tail -f app.log
# System resources
htop
df -h
free -h
# Network ports
netstat -tulpn | grep :8000- Local development environment
- Hot reload support
- Debug mode
- Testing framework
- Staging environment
- Integration testing
- Performance testing
- Security testing
- Production deployment
- Load balancing
- Auto-scaling
- Backup strategies
- URL:
http://localhost:8000/docs - Interactive API testing
- Request/response examples
- Schema validation
- URL:
http://localhost:8000/redoc - Alternative documentation view
- Better for complex schemas
- Email: [email protected]
- Documentation: https://docs.aws.chatbot
- GitHub Issues: Repository issues
- Slack: #aws-chatbot-support
- Email: [email protected]
- Website: https://www.aws.chatbot
- Phone: +90 (212) XXX XX XX
AWS.Chatbot - Transforming Hospitality with AI & Robotics