How pooworld/phyzer2 works
Project Sankalp is a dashboard-backed decision-support pilot for pharmaceutical claims, demand planning, expiry risk, revenue scenarios, and monthly actions. Users choose a dashboard workflow; the FastAPI layer invokes a LangGraph branch, which combines CSV-backed Python calculations with limited model-assisted text parsing or explanation. Results include evidence and checks. The README documents several branches whose implementation details were not sampled; those documented capabilities are included, while uncertain internal links are omitted.
Main entry points: graph.py LangGraph router · extract.py Structured model calls · plan_nodes.py Planner workflow · planning.py Forecast and dispatch
Components 20
Dashboard and API
- Dashboard
public/app.js - API routes
app.py
Workflow orchestration
- LangGraph router
agent/graph.py
Claims decisions
- Email claim review
agent/nodes.py - Submitted claim checks
agent/claim_rules.py - Claim policy rules
agent/rules.py
Planning and actions
- Forecast and dispatch
agent/planning.py - Planner workflow
agent/plan_nodes.py - Monthly action lists
agent/monthly.py
Outlook and growth
- Outlook workflow
agent/branch_nodes.py - Expiry and risk analysis
agent/forward.py - Revenue scenarios
agent/scenarios.py
Shared services
- CSV data access
agent/data.py - Policy configuration
agent/config.py - Structured model calls
agent/extract.py - LLM client
agent/llm.py - Structured schemas
agent/schemas.py - Model prompts
agent/prompts.py
Other components
- Dashboard user
- Model service
Connections 31
- Dashboard user → Dashboard: uses
README.md - Dashboard → API routes: requests results
README.md - API routes → LangGraph router: runs workflow
README.md - LangGraph router → Email claim review: routes claims
agent/graph.py - LangGraph router → Submitted claim checks: routes claim
agent/graph.py - LangGraph router → Planner workflow: routes planning
agent/graph.py - LangGraph router → Monthly action lists: routes monthly
README.md - LangGraph router → Outlook workflow: routes outlook
agent/graph.py - LangGraph router → Revenue scenarios: routes scenarios
README.md - Email claim review → Structured model calls: extracts email fields
agent/nodes.py - Email claim review → Claim policy rules: checks claim rules
agent/nodes.py - Submitted claim checks → CSV data access: reads claim records
agent/claim_rules.py - Planner workflow → Forecast and dispatch: runs forecast
agent/plan_nodes.py - Planner workflow → Monthly action lists: builds scheme guard
agent/plan_nodes.py - Monthly action lists → Forecast and dispatch: uses plan data
agent/monthly.py - Outlook workflow → Expiry and risk analysis: calculates outlook
agent/branch_nodes.py - Outlook workflow → Revenue scenarios: calculates revenue
agent/branch_nodes.py - Outlook workflow → Submitted claim checks: checks register
agent/branch_nodes.py - Expiry and risk analysis → Forecast and dispatch: uses forecast data
agent/forward.py - Revenue scenarios → Forecast and dispatch: uses forecast data
agent/scenarios.py - Forecast and dispatch → CSV data access: reads extracts
agent/planning.py - Monthly action lists → CSV data access: reads extracts
agent/monthly.py - Expiry and risk analysis → CSV data access: reads extracts
agent/forward.py - Claim policy rules → Policy configuration: uses thresholds
agent/rules.py - Submitted claim checks → Policy configuration: uses controls
agent/claim_rules.py - Structured model calls → LLM client: gets model
agent/extract.py - Structured model calls → Model prompts: uses prompts
agent/extract.py - Structured model calls → Structured schemas: fills schemas
agent/extract.py - LLM client → Model service: calls model
- Planner workflow → Structured model calls: parses questions
README.md - Planner workflow → Structured model calls: explains checked facts
README.md