How fbivinay/sih-hackathon works
Kasauti is an MPLADS verification and monitoring product: it turns published works and payment records into comparable risk scores, compliance findings, agency/member signals, and a ranked review queue, then presents those results to public-sector users. The main user workflow is to filter the queue, inspect a work’s evidence, and record a review decision with history. The README documents major capabilities beyond the sampled excerpts; their exact endpoint wiring is not fully visible, so the graph represents them at the API service boundary and omits uncertain internal links.
Main entry points: api.ts Web API client · main.py API service · load_real_data.py Record loaders · page.tsx Project review queue
Components 22
Data and classification
- Record loaders
data/load_real_data.py - Sector rules
data/sectors.py - LLM sector labels
data/llm_sectors.py
Risk analysis
- Work scoring
data/scoring.py - Agency/member detectors
data/detectors.py - Compliance checks
data/scoring.py
API and state
- API service
api/main.py - Database access
api/db.py - Review state and history
api/main.py
User experience
- Review decisions
web/app/projects/actions.ts - Web API client
web/lib/api.ts - National overview
web/app/page.tsx - Project review queue
web/app/projects/page.tsx - Work evidence
web/app/projects/[id]/page.tsx - Member dashboards
web/app/mp/[id]/page.tsx - State and district desks
web/app/state/[state]/page.tsx - Trends and alerts
web/app/page.tsx - Site search
web/components/SiteSearch.tsx
Other components
- Public-sector users
- Published MPLADS records
- Gemini API
- PostgreSQL
Connections 28
- Published MPLADS records → Record loaders: loads records
- Record loaders → PostgreSQL: writes records
- Sector rules → LLM sector labels: fallback labels
- LLM sector labels → Gemini API: classifies descriptions
- Record loaders → Work scoring: supplies works
- Sector rules → Work scoring: provides sectors
- Work scoring → PostgreSQL: stores scores
- Agency/member detectors → PostgreSQL: stores findings
- Compliance checks → PostgreSQL: stores breaches
- Public-sector users → National overview: views
- Public-sector users → Project review queue: filters queue
- Public-sector users → Member dashboards: views
- Public-sector users → State and district desks: views
- Project review queue → Web API client: requests queue data
- National overview → Web API client: requests summary
- Member dashboards → Web API client: requests member data
- State and district desks → Web API client: requests regional data
- Work evidence → Web API client: requests work evidence
- Trends and alerts → Web API client: requests trends
- Site search → API service: fetches search data
- Web API client → API service: calls endpoints
- API service → Database access: queries and updates
- Database access → PostgreSQL: reads and writes
- Project review queue → Review decisions: submits decision
- Review decisions → API service: posts review
- API service → Review state and history: records decisions
- API service → Review state and history: reads history
- Trends and alerts → Agency/member detectors: presents findings