How cyclop5/creditiq works
CreditIQ is an MSME credit-scoring platform that combines GST, UPI and e-way-bill signals to produce scores, fraud findings and human-readable explanations. Its main workflow runs from signal ingestion through feature engineering, fraud analysis and scoring, then exposes results through a role-based dashboard and API. The graph also includes the documented analyst, lender, risk and administration capabilities. Some subsystem links rely on README descriptions because their implementation was not sampled; those limits are reflected in the evidence paths.
Main entry points: worker.py Scoring Worker · routes.py Scoring API · settings.py Redis Streams · api Role APIs
Components 25
Signals and Features
- GST UPI EWB
src/features/schemas.py - Signal Ingestion
src/ingestion - Feature Engineering
src/features/engine.py
Risk Decisions
- Fraud Graph
src/fraud/graph_builder.py - Cycle Detection
src/fraud/cycle_detector.py - Credit Scoring
src/scoring/model.py - Model Training
src/scoring/trainer.py - Score Explainability
src/scoring/explainer.py - Plain-language Reasons
src/llm/translator.py
API and Operations
- Scoring Worker
src/api/worker.py - Redis Streams
config/settings.py - Scoring API
src/api/routes.py - Authentication
src/api/auth.py - Portal Data Store
src/api/mock_db.py - Role APIs
src/api
User Portals
- Role-based Dashboard
frontend/app - Analyst Tools
frontend/app/analyst - Risk Tools
frontend/app/risk - Lender Tools
frontend/app/bank - MSME Tools
frontend/app/msme - Admin Tools
frontend/app/admin
Other components
- MSME Owners and Lenders
- Analysts and Risk Managers
- Administrators
- OpenRouter LLM
Connections 25
- GST UPI EWB → Signal Ingestion: ingests
- Signal Ingestion → Redis Streams: streams signals
src/ingestion/generator.py - Redis Streams → Feature Engineering: feeds features
- Feature Engineering → Scoring Worker: resolves features
src/api/worker.py - Scoring Worker → Fraud Graph: builds graph
src/api/worker.py - Scoring Worker → Cycle Detection: detects cycles
src/api/worker.py - Scoring Worker → Credit Scoring: scores features
src/api/worker.py - Scoring Worker → Score Explainability: explains score
src/api/worker.py - Scoring Worker → Plain-language Reasons: translates reasons
src/api/worker.py - Model Training → Credit Scoring: trains model
src/scoring/model.py - Scoring Worker → Redis Streams: consumes and writes
src/api/worker.py - Scoring API → Redis Streams: reads score state
src/api/routes.py - Scoring API → Scoring Worker: queues scoring task
- Plain-language Reasons → OpenRouter LLM: requests explanations
src/llm/translator.py - Scoring API → Role APIs: serves role routes
src/api/main.py - Authentication → Portal Data Store: checks users
src/api/auth.py - Role APIs → Authentication: gates access
src/api/main.py - Role APIs → Portal Data Store: serves portal data
src/api/router_analyst.py - MSME Owners and Lenders → Role-based Dashboard: uses
- Analysts and Risk Managers → Analyst Tools: inspects signals
- Analysts and Risk Managers → Risk Tools: monitors fraud
- MSME Owners and Lenders → Lender Tools: reviews loan decisions
- MSME Owners and Lenders → MSME Tools: views score reports
- Administrators → Admin Tools: manages platform
- Role-based Dashboard → Scoring API: requests results