How mahanthdu2007-hue/vit-zsh works
PRISM is a career decision-support platform for Indian students and their parents. Students complete a psychometric assessment and parents provide financial and preference inputs; the backend combines those inputs with career and labour-market data to rank pathways and explain trade-offs. Families can explore What-If changes and ask follow-up questions. The graph preserves the documented assessment, recommendation, explanation, chat, and dashboard branches. Several engine modules are unsampled, so their connections are shown only where the pipeline’s imports or documentation support them.
Main entry points: services.py Assessment services · App.tsx Web app routes · client.ts API client · Dashboard.tsx Career dashboard
Components 21
Family experience
- Web app routes
frontend/src/App.tsx - Assessment forms
frontend/src/pages/StudentAssessment.tsx - Family inputs
frontend/src/pages/ParentForm.tsx - Career dashboard
frontend/src/pages/Dashboard.tsx - What-If controls
frontend/src/components/whatif/WhatIfControlsForm.tsx - Chat panel
frontend/src/components/chat/ChatPanel.tsx
API and coordination
- API client
frontend/src/api/client.ts - HTTP routes
backend/app/api/routes.py - Assessment services
backend/app/services.py - Domain schemas
backend/app/models/schemas.py
Decision engine
- Career dataset
backend/app/engine/loader.py - Psychometric decisions
backend/app/engine/system1.py - Ranking pipeline
backend/app/engine/pipeline.py - What-If reranking
backend/app/engine/whatif.py - Fit, finance, market
backend/app/engine
Explanations and chat
- Career explanations
backend/app/rag/explain.py - PRISM chat
backend/app/rag/chat.py - Reference index
backend/app/rag/index.py - Language model providers
backend/app/rag/llm.py
Assessment state
- Assessment storage
backend/app/storage.py
Other components
- Student and parent
Connections 29
- Student and parent → Web app routes: uses
README.md - Web app routes → Assessment forms: routes to
frontend/src/App.tsx - Web app routes → Family inputs: routes to
frontend/src/App.tsx - Web app routes → Career dashboard: routes to
frontend/src/App.tsx - Assessment forms → API client: submits inputs
frontend/src/pages/StudentAssessment.tsx - Family inputs → Assessment forms: uses assessment flow
frontend/src/pages/ParentForm.tsx - Career dashboard → What-If controls: offers changes
- Career dashboard → Chat panel: offers follow-up
- What-If controls → API client: requests reranking
- Chat panel → API client: sends questions
frontend/src/components/chat/ChatPanel.tsx - API client → HTTP routes: calls API
- HTTP routes → Assessment services: dispatches
backend/app/api/routes.py - HTTP routes → Career dataset: loads questions and profiles
backend/app/api/routes.py - Assessment services → Career dataset: loads career data
backend/app/services.py - Assessment services → Psychometric decisions: runs decisions
backend/app/services.py - Assessment services → Ranking pipeline: runs assessment
backend/app/services.py - Assessment services → What-If reranking: runs reranking
backend/app/services.py - Ranking pipeline → Fit, finance, market: runs stages
backend/app/engine/pipeline.py - Ranking pipeline → Psychometric decisions: uses decisions
backend/app/engine/pipeline.py - Assessment services → Assessment storage: saves and loads
backend/app/services.py - Assessment services → Career explanations: generates explanations
backend/app/services.py - Assessment services → PRISM chat: handles chat
backend/app/services.py - Assessment services → Language model providers: requests generation
backend/app/services.py - PRISM chat → Reference index: retrieves context
backend/app/rag/chat.py - Career explanations → Reference index: retrieves context
backend/app/rag/explain.py - Career explanations → Language model providers: requests generation
backend/app/rag/explain.py - PRISM chat → Language model providers: requests generation
backend/app/rag/chat.py - Assessment services → Domain schemas: uses domain types
backend/app/services.py - Assessment storage → Domain schemas: serializes records
backend/app/storage.py