☁️ AWS Architecture
How AWS Services are Used Within Our Architecture
End-to-end AWS-native pipeline: from farmer voice input to intelligent multi-agent response — all running in ap-south-1 (Mumbai)
🎤
Input Layer
Voice & Text Ingestion
🎤
Amazon Transcribe
Speech-to-text for 10 Indian languages. Real-time streaming transcription via Transcribe API.
STT · 10 Languages
🌐
Translation Engine
deep-translator auto-translates 12 Indian languages to English. Unicode script detection for language ID.
12 Languages
💬
Streamlit Frontend
7-page web app on EC2. Voice recorder widget, chat UI, admin dashboard.
Port 8501
🧠
AI Intelligence
Amazon Bedrock
Claude 3.5 Sonnet
Primary agent model for complex reasoning, domain expertise, crop disease image analysis via Bedrock.
Agent + Vision
Claude 3 Haiku
Lightweight model for intent classification and response synthesis. Fast + cost-effective.
Classifier + Synthesis
🔄
Triple-Backend Failover
Bedrock → Groq → Gemini auto-failover with exponential backoff. 99.9% availability.
High Availability
🤖
Multi-Agent
5 Specialist Agents
🩺
Crop Doctor Agent
Disease diagnosis from text/images. RAG over crop_diseases & farming_practices collections.
Bedrock Vision
📊
Market + Scheme Agents
Real-time mandi prices, 7000+ markets. 200+ govt scheme eligibility checker.
RAG · market_data
🌦️
Weather + Soil Agents
OpenWeatherMap API integration. Soil analysis, NPK calculator, crop rotation advice.
Live API + RAG
📚
Data Layer
Storage & Knowledge
🗄️
Amazon RDS PostgreSQL
7 tables: profiles, chat_history, memories, telegram_users, email verifications, password resets, admin settings.
Managed · SSL · Auto-backup
🔍
ChromaDB RAG
8 vector collections, 50K+ agricultural documents. gemini-embedding-001 embeddings.
8 Collections · 50K+ Docs
🪣
Amazon S3
Temporary voice file storage bucket for Transcribe processing. Auto-cleanup policy.
krishisaathi-voice-temp
🔊
Output & Infra
Response Delivery
🔊
Amazon Polly
Neural TTS with Kajal voice for Hindi & English. Neural quality speech for natural interaction.
Neural · en-IN / hi-IN
☁️
Amazon EC2
Ubuntu instance in ap-south-1 (Mumbai). Hosts Streamlit app, backend, ChromaDB.
krishisaathi.shashi.engineer
🔐
IAM + Security
Least-privilege IAM roles. bcrypt password hashing + JWT HS256 tokens. SSL database.
Least Privilege
6
AWS Services Used
ap-south-1
Mumbai Region
3
Bedrock Models
10
Transcribe Languages
7
RDS Tables
99.9%
Target Uptime