How dshri2005/rescuenetai_major_project works
RescueNet AI combines authenticated disaster guidance with citizen/volunteer emergency operations. A user signs in, selects a state, and uses the dashboard for guidance, alerts, services, or SOS; volunteers coordinate and track SOS cases. The documented chat pipeline routes queries to policy, risk, shelter, or fallback handling and returns cited, confidence-aware answers. Alert ingestion polls SACHET and persists cached XML and parsed events. Paths for unsampled chat and emergency implementations are limited to their enclosing API/agent directories; their documented capabilities are represented without asserting undocumented internal call wiring.
Main entry points: emergency.py Emergency API · App.jsx Session shell · auth.py Authentication API · guidelines.jsx Guidance dashboard
Components 24
Web experience
- Session shell
frontend/src/App.jsx - Sign-in forms
frontend/src/components/auth.jsx - Guidance dashboard
frontend/src/guidelines.jsx - State selection
frontend/src/components/StateRequired.jsx - Incident map
frontend/src/components/LiveIncidentMap.jsx - Volunteer queue
frontend/src/components/VolunteerQueue.jsx - Volunteer profile
frontend/src/components/VolunteerProfile.jsx
Identity and profiles
- Authentication API
backend/app/api/auth.py
Disaster assistant
- Chat API
backend/app/api/chat.py - Query routing
backend/app/agents/orchestrator.py - Policy retrieval
backend/app/agents/retrieval.py - Risk assessment
backend/app/agents/risk_agent.py - Confidence scoring
backend/app/agents/uncertainty.py - Grounded response
backend/app/agents/response.py
Emergency operations
- Emergency API
backend/app/api/emergency.py - Alert synchronizer
backend/app/services/sachet.py
Persistence
- Chroma vector store
backend/vector_store/chroma_db - Persistence models
backend/app/models
Other components
- Citizen
- Volunteer
- SACHET feeds
- Gemini API
- PostgreSQL
- Map routing service
Connections 30
- Citizen → Session shell: uses
- Volunteer → Session shell: uses
- Session shell → Sign-in forms: renders
- Sign-in forms → Authentication API: registers or signs in
- Authentication API → PostgreSQL: reads and writes
- Session shell → Authentication API: checks session
- Session shell → State selection: prompts when needed
- State selection → Authentication API: updates state
- Session shell → Guidance dashboard: opens dashboard
- Guidance dashboard → Chat API: requests guidance
- Chat API → Query routing: routes query
- Query routing → Policy retrieval: retrieves policy
- Query routing → Risk assessment: assesses risk
- Chat API → Confidence scoring: scores confidence
- Chat API → Grounded response: builds answer
- Policy retrieval → Chroma vector store: searches chunks
- Grounded response → Gemini API: generates answer
- Guidance dashboard → Emergency API: loads alerts and services
- Guidance dashboard → Emergency API: submits SOS
- Volunteer queue → Emergency API: claims or resolves SOS
- Incident map → Emergency API: polls incident location
- Incident map → Map routing service: requests route
- Guidance dashboard → Emergency API: updates SOS location
- Volunteer profile → Authentication API: reads and updates profile
- Emergency API → PostgreSQL: reads and writes operations
- Alert synchronizer → SACHET feeds: fetches RSS and CAP
- Alert synchronizer → PostgreSQL: caches and stores events
- Emergency API → Persistence models: uses records
- Alert synchronizer → Persistence models: uses alert records
- Authentication API → Persistence models: uses user records