How chandra372/nexus-resq works
NEXUS RESQ turns multi-channel emergency reports into traceable incident records for a human responder dashboard. Its main workflow is staged report ingestion, classification and information extraction, location resolution and incident matching, then persistent incident updates with evidence and priority. The README documents these domain stages and the dashboard; sampled source confirms key orchestration, route, and UI connections. Several service-to-service links rely on the documented workflow because the stage-engine excerpt omits the processing section.
Main entry points: stage_engine.py Stage processing · memory.py Incident memory · discovery.py Dataset ingestion · Dashboard.tsx Operations dashboard
Components 21
Report inputs
- Staged reports
large_emergency_dataset - Dataset ingestion
nexus-resq/backend/app/services/ingestion/discovery.py - Speech transcription
nexus-resq/backend/app/services/transcription/speech_provider.py - Unified events
nexus-resq/backend/app/schemas/events.py
Report analysis
- Stage processing
nexus-resq/backend/app/services/stages/stage_engine.py - Intent classifier
nexus-resq/backend/app/services/ai/classifier.py - Information extraction
nexus-resq/backend/app/services/extraction/extractor.py - Location resolver
nexus-resq/backend/app/services/location/resolver.py
Incident intelligence
- Incident matching
nexus-resq/backend/app/services/clustering/matcher.py - Incident memory
nexus-resq/backend/app/services/incidents/memory.py - Evidence engine
nexus-resq/backend/app/services/evidence/evidence_engine.py - Priority engine
nexus-resq/backend/app/services/priority/priority_engine.py - Incident records
nexus-resq/backend/app/schemas/incident.py
API service
- REST and WebSocket API
nexus-resq/backend/app/api/routes.py - Benchmark evaluation
nexus-resq/backend/evaluation/evaluate.py
Responder dashboard
- Operations dashboard
nexus-resq/frontend/src/pages/Dashboard.tsx - API client
nexus-resq/frontend/src/services/api.ts - Incident and map views
nexus-resq/frontend/src/components/LiveMap.tsx - Evaluation view
nexus-resq/frontend/src/components/EvaluationModal.tsx
Other components
- Report sources
- Responders
Connections 24
- Report sources → Staged reports: submit reports
README.md - Staged reports → Dataset ingestion: read stages
README.md - Dataset ingestion → Speech transcription: transcribes audio
nexus-resq/backend/app/services/ingestion/discovery.py - Dataset ingestion → Unified events: creates events
nexus-resq/backend/app/services/ingestion/discovery.py - Stage processing → Dataset ingestion: loads stages
nexus-resq/backend/app/services/stages/stage_engine.py - Stage processing → Intent classifier: classifies reports
README.md - Stage processing → Information extraction: extracts details
README.md - Stage processing → Location resolver: resolves locations
README.md - Stage processing → Incident matching: matches incidents
README.md - Stage processing → Incident memory: updates memory
nexus-resq/backend/app/services/stages/stage_engine.py - Incident matching → Incident memory: selects incident
README.md - Incident memory → Evidence engine: uses evidence
nexus-resq/backend/app/services/incidents/memory.py - Incident memory → Priority engine: calculates priority
nexus-resq/backend/app/services/incidents/memory.py - Incident memory → Incident records: builds records
nexus-resq/backend/app/services/incidents/memory.py - REST and WebSocket API → Stage processing: controls replay
nexus-resq/backend/app/api/routes.py - REST and WebSocket API → Incident memory: reads incidents
nexus-resq/backend/app/api/routes.py - Responders → Operations dashboard: reviews incidents
README.md - Operations dashboard → API client: requests data
nexus-resq/frontend/src/pages/Dashboard.tsx - API client → REST and WebSocket API: calls endpoints
nexus-resq/frontend/src/services/api.ts - Operations dashboard → Incident and map views: renders views
nexus-resq/frontend/src/pages/Dashboard.tsx - Operations dashboard → Evaluation view: opens evaluation
nexus-resq/frontend/src/pages/Dashboard.tsx - Evaluation view → API client: requests metrics
nexus-resq/frontend/src/components/EvaluationModal.tsx - Benchmark evaluation → Dataset ingestion: evaluates ingestion
nexus-resq/backend/evaluation/evaluate.py - Benchmark evaluation → Incident memory: evaluates clustering
nexus-resq/backend/evaluation/evaluate.py