How sujayv26/smarty_vibz_sih works
CONSight is a schedule-intelligence API that turns field reports into schedule-linked progress: reports arrive through text, spreadsheets, WhatsApp, voice or scanned diaries; extraction creates progress events; matching proposes schedule activities; confidence scoring either auto-matches or sends uncertain results to planner review and audit. Separate capabilities manage schedule import/export, delay analysis and institutional-memory analytics. The README documents these broader features; sampled source confirms the matching, confidence, persistence and WhatsApp paths, but not every route-to-service connection.
Main entry points: confidence_service.py Confidence Service · schedule.py Schedule Data · extraction_service.py Extraction Service · engine.py Matching Engine
Components 25
Field Ingestion
- Progress API
backend/app/api/progress.py - WhatsApp Webhook
backend/app/api/webhooks.py - Voice Service
backend/app/services/voice_service.py - OCR Service
backend/app/services/ocr_service.py - Extraction Service
backend/app/services/extraction_service.py - Excel Progress
backend/app/services/excel_progress_service.py
Schedule Management
- Schedule API
backend/app/api/schedule.py - XER Import Export
backend/app/api/xer_import.py - XER Services
backend/app/services/xer/service.py
Matching And Review
- Matching API
backend/app/api/matching.py - Matching Engine
backend/app/matching/engine.py - Confidence API
backend/app/api/confidence.py - Confidence Service
backend/app/services/confidence_service.py - Confidence Scoring
backend/app/services/confidence_engine.py - Planner Reviews
backend/app/api/reviews.py
Schedule Intelligence
- Delay Analysis
backend/app/services/delay_ripple_service.py - Delay Prediction
backend/app/services/ml_delay_service.py - Institutional Analytics
backend/app/services/analytics_service.py
API And Persistence
- FastAPI Application
backend/app/main.py - Progress Events
backend/app/models/progress.py - Schedule Data
backend/app/models/schedule.py - Reviews And Audit
backend/app/models/confidence.py - Database Sessions
backend/app/database.py
Other components
- Field Reporter
- Planner
Connections 30
- Field Reporter → Progress API: submits reports
- Field Reporter → WhatsApp Webhook: sends messages
- Field Reporter → Voice Service: provides speech
- Field Reporter → OCR Service: provides diaries
- Progress API → Extraction Service: extracts text
- Progress API → Excel Progress: imports spreadsheet
- WhatsApp Webhook → Extraction Service: processes message
- Voice Service → Extraction Service: transcribes report
- OCR Service → Extraction Service: extracts report
- Extraction Service → Progress Events: creates events
- Excel Progress → Progress Events: writes events
- Schedule API → Schedule Data: manages activities
- XER Import Export → XER Services: imports exports
- XER Services → Schedule Data: imports activities
- Matching API → Matching Engine: runs matching
- Matching Engine → Progress Events: reads events
- Matching Engine → Schedule Data: reads candidates
- Confidence API → Confidence Service: evaluates event
- WhatsApp Webhook → Confidence Service: evaluates result
- Confidence Service → Matching Engine: requests matches
- Confidence Service → Confidence Scoring: scores candidates
- Confidence Service → Reviews And Audit: writes decisions
- Confidence Service → Progress Events: updates auto-match
- Planner Reviews → Confidence Service: handles decisions
- Planner → Planner Reviews: reviews candidates
- Confidence Service → Schedule Data: creates activity
- Delay Analysis → Schedule Data: analyzes schedule
- Delay Prediction → Schedule Data: reads schedule
- Institutional Analytics → Schedule Data: analyzes history
- FastAPI Application → Database Sessions: configures sessions