How sakith-work/ragv3.0 works
Interview RAG serves admins building role-specific question banks and candidates progressing from resume analysis through a personalized mock interview and study planning. The UI routes users by role, calls authenticated API endpoints for AI workflows, and uses Firebase for identity and application records. The README documents ATS extraction, vector-based question planning, live interview inference with provider fallback, and report cards. Some server implementation details were not excerpted, so documented capabilities are shown without speculative internal call chains.
Main entry points: App.tsx Role-based routing · CandidateDashboard.tsx Candidate workspace · server.ts API runtime · api.ts Authenticated API client
Components 23
Web experience
- Role-based routing
src/App.tsx - Sign-in and verification
src/pages/AuthPage.tsx - Identity and profile
src/contexts/AuthContext.tsx - Role setup
src/components/RoleSetupModal.tsx
Role and RAG setup
- Role and bank manager
src/pages/AdminDashboard.tsx - Default roles
src/lib/seedRoles.ts
Candidate workflows
- Candidate workspace
src/pages/CandidateDashboard.tsx - Resume upload
src/components/ResumeUploader.tsx - Resume ATS analysis
server/ai.ts - Interview question plan
server/ai.ts - Live interview session
src/pages/InterviewSessionPage.tsx - Interview evaluation
server/ai.ts - Gap study plan
src/pages/StudyPlanPage.tsx
Services and persistence
- Authenticated API client
src/lib/api.ts - API runtime
server.ts - Request authentication
server/auth.ts - Firebase client
src/lib/firebase.ts - Cloud Firestore
- Firebase Authentication
Other components
- Candidate
- Administrator
- Gemini API
- Groq API
Connections 34
- Candidate → Sign-in and verification: signs in
- Administrator → Sign-in and verification: signs in
- Sign-in and verification → Identity and profile: uses auth
src/pages/AuthPage.tsx - Role-based routing → Identity and profile: checks identity
src/App.tsx - Role-based routing → Role and bank manager: routes admins
src/App.tsx - Role-based routing → Candidate workspace: routes candidates
src/App.tsx - Role-based routing → Live interview session: routes sessions
src/App.tsx - Role-based routing → Gap study plan: routes study plans
src/App.tsx - Role-based routing → Role setup: renders setup
src/App.tsx - Identity and profile → Firebase client: uses identity services
src/contexts/AuthContext.tsx - Firebase client → Firebase Authentication: initializes
src/lib/firebase.ts - Firebase client → Cloud Firestore: initializes
src/lib/firebase.ts - Identity and profile → Cloud Firestore: reads profile
src/contexts/AuthContext.tsx - Role and bank manager → Cloud Firestore: manages roles and questions
src/pages/AdminDashboard.tsx - Role and bank manager → Default roles: uses defaults
src/pages/AdminDashboard.tsx - Default roles → Cloud Firestore: seeds roles
src/lib/seedRoles.ts - Candidate → Candidate workspace: selects role
README.md - Candidate workspace → Resume upload: uploads resume
src/pages/CandidateDashboard.tsx - Resume upload → Authenticated API client: requests analysis
src/components/ResumeUploader.tsx - Authenticated API client → API runtime: sends API requests
src/lib/api.ts - API runtime → Request authentication: authenticates requests
server.ts - API runtime → Resume ATS analysis: handles AI workflows
server.ts - Resume ATS analysis → Gemini API: parses and scores
README.md - Candidate workspace → Cloud Firestore: stores resume record
src/pages/CandidateDashboard.tsx - Candidate workspace → Authenticated API client: requests interview plan
src/pages/CandidateDashboard.tsx - API runtime → Interview question plan: assembles questions
server.ts - Interview question plan → Cloud Firestore: retrieves question vectors
README.md - Live interview session → Authenticated API client: requests interview turns
src/pages/InterviewSessionPage.tsx - Live interview session → Cloud Firestore: updates session
src/pages/InterviewSessionPage.tsx - API runtime → Interview evaluation: evaluates interview
server.ts - Interview evaluation → Groq API: generates evaluation
README.md - Interview evaluation → Gemini API: falls back
README.md - Candidate workspace → Gap study plan: opens study planning
README.md - Gap study plan → Authenticated API client: requests plan
src/pages/StudyPlanPage.tsx