# chandolupraneethkumar05-oss/ai-career-preparation-agent architecture

> Architecture diagram of the GitHub repository chandolupraneethkumar05-oss/ai-career-preparation-agent, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/chandolupraneethkumar05-oss/ai-career-preparation-agent
- Repository: https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent

## Overview

AI Career Preparation Agent is a React/FastAPI platform for job seekers. The user journey spans account setup, resume and competency assessment, adaptive interviews and coding practice, then feedback, recommendations, and ongoing progress tracking. The frontend routes users to preparation workflows and calls backend APIs; backend interview orchestration grounds questions and evaluation in retrieved career knowledge. The README documents broader capabilities, including secure code execution, multilingual feedback, and community interview experiences. Some connections are supported only by README claims because the relevant implementation excerpts were not provided.

Main entry points: [`src/App.jsx`](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/src/App.jsx) (App routing), [`src/context/InterviewContext.jsx`](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/src/context/InterviewContext.jsx) (Interview state), [`backend/app/services/interview_engine.py`](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/services/interview_engine.py) (Interview engine), [`backend/app/services/ai/rag/retrieval_service.py`](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/services/ai/rag/retrieval_service.py) (Knowledge retrieval)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Candidate experience"]
  node_app_routes["App routing<br/>[App.jsx]"]
  node_auth["Authentication state<br/>[AuthContext.jsx]"]
  node_interview_state["Interview state"]
  node_interview_ui["Interview workflow"]
  node_feedback_ui["Interview feedback"]
  node_experience_ui["Interview experiences"]
  node_skill_gap_ui["Skill gap view<br/>[SkillGapPage.jsx]"]
  node_api_client["Interview API client<br/>[interviewApi.js]"]
end

subgraph group_backend["API and persistence"]
  node_browser_store[("Browser persistence<br/>[storageService.js]")]
  node_api_app["FastAPI application<br/>[main.py]"]
  node_api_router["API router<br/>[router.py]"]
  node_api_routes["Domain API routes"]
  node_db_models["Domain records<br/>[models.py]"]
  node_database[("Application database<br/>[database.py]")]
end

subgraph group_interview_ai["Interview intelligence"]
  node_interview_engine["Interview engine"]
  node_retrieval["Knowledge retrieval"]
  node_knowledge["Curriculum knowledge<br/>[knowledge_base.py]"]
  node_llm["Grounded evaluation<br/>[llm_service.py]"]
end

subgraph group_career_tools["Career preparation tools"]
  node_resume_tools["Resume and ATS analysis"]
  node_sandbox["Isolated code execution<br/>[sandbox_manager.py]"]
  node_career_journey["Career journey planning"]
  node_skill_arena["Skill Arena"]
end

subgraph group_engagement["Progress and community"]
  node_progress["Progress and actions"]
  node_reminders["Retention reminders"]
  node_experience_moderation["Experience sanitization"]
end

node_job_seeker(("Job seeker"))

node_job_seeker -->|"uses"| node_app_routes
node_app_routes -->|"provides state"| node_auth
node_app_routes -->|"provides state"| node_interview_state
node_app_routes -->|"routes to"| node_interview_ui
node_app_routes -->|"routes to"| node_feedback_ui
node_app_routes -->|"routes to"| node_experience_ui
node_app_routes -->|"routes to"| node_skill_gap_ui
node_interview_state -->|"calls"| node_api_client
node_interview_state -->|"persists state"| node_browser_store
node_api_client -.->|"requests interview APIs"| node_api_routes
node_api_app -->|"mounts routes"| node_api_router
node_api_app -->|"initializes"| node_database
node_api_router -->|"registers"| node_api_routes
node_api_routes -.->|"dispatches interview work"| node_interview_engine
node_interview_engine -->|"retrieves context"| node_retrieval
node_interview_engine -->|"evaluates answers"| node_llm
node_retrieval -->|"ranks curriculum"| node_knowledge
node_retrieval -->|"loads approved experiences"| node_database
node_interview_engine -->|"stores evaluations"| node_db_models
node_database -->|"maps records"| node_db_models
node_job_seeker -.->|"submits resume"| node_resume_tools
node_job_seeker -.->|"practices skills"| node_skill_arena
node_skill_arena -.->|"runs code safely"| node_sandbox
node_job_seeker -.->|"reviews career plan"| node_career_journey
node_interview_state -.->|"updates skill gaps"| node_progress
node_resume_tools -.->|"seeds skill gaps"| node_progress
node_progress -.->|"schedules practice"| node_reminders
node_job_seeker -.->|"contributes logs"| node_experience_ui
node_experience_ui -.->|"submits for sanitization"| node_experience_moderation
node_experience_moderation -.->|"stores approved entries"| node_database
node_experience_moderation -->|"supplies approved questions"| node_retrieval

click node_app_routes "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/src/App.jsx"
click node_auth "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/src/context/AuthContext.jsx"
click node_interview_state "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/src/context/InterviewContext.jsx"
click node_interview_ui "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/src/pages/MockInterviewPage.jsx"
click node_feedback_ui "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/src/pages/InterviewFeedbackPage.jsx"
click node_experience_ui "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/src/pages/InterviewExperiencesPage.jsx"
click node_skill_gap_ui "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/src/pages/SkillGapPage.jsx"
click node_api_client "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/src/services/interviewApi.js"
click node_browser_store "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/src/utils/storage/storageService.js"
click node_api_app "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/main.py"
click node_api_router "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/api/router.py"
click node_api_routes "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/tree/main/backend/app/api/routes"
click node_db_models "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/db/models.py"
click node_database "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/db/database.py"
click node_interview_engine "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/services/interview_engine.py"
click node_retrieval "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/services/ai/rag/retrieval_service.py"
click node_knowledge "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/services/ai/rag/knowledge_base.py"
click node_llm "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/services/ai/llm/llm_service.py"
click node_resume_tools "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/services/resume_analysis_service.py"
click node_sandbox "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/services/sandbox/sandbox_manager.py"
click node_career_journey "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/services/career_journey_service.py"
click node_skill_arena "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/services/skill_arena_service.py"
click node_progress "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/services/progress_service.py"
click node_reminders "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/services/reminder_service.py"
click node_experience_moderation "https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/services/pii_detection_service.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app_routes,node_auth,node_interview_state,node_interview_ui,node_feedback_ui,node_experience_ui,node_skill_gap_ui,node_api_client toneBlue
class node_browser_store,node_api_app,node_api_router,node_api_routes,node_db_models,node_database toneAmber
class node_interview_engine,node_retrieval,node_knowledge,node_llm toneMint
class node_resume_tools,node_sandbox,node_career_journey,node_skill_arena toneRose
class node_progress,node_reminders,node_experience_moderation,node_job_seeker toneIndigo
```

## Components

### Candidate experience

- [App routing](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/src/App.jsx): `src/App.jsx`
- [Authentication state](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/src/context/AuthContext.jsx): `src/context/AuthContext.jsx`
- [Interview state](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/src/context/InterviewContext.jsx): `src/context/InterviewContext.jsx`
- [Interview workflow](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/src/pages/MockInterviewPage.jsx): `src/pages/MockInterviewPage.jsx`
- [Interview feedback](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/src/pages/InterviewFeedbackPage.jsx): `src/pages/InterviewFeedbackPage.jsx`
- [Interview experiences](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/src/pages/InterviewExperiencesPage.jsx): `src/pages/InterviewExperiencesPage.jsx`
- [Skill gap view](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/src/pages/SkillGapPage.jsx): `src/pages/SkillGapPage.jsx`
- [Interview API client](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/src/services/interviewApi.js): `src/services/interviewApi.js`

### API and persistence

- [Browser persistence](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/src/utils/storage/storageService.js): `src/utils/storage/storageService.js`
- [FastAPI application](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/main.py): `backend/app/main.py`
- [API router](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/api/router.py): `backend/app/api/router.py`
- [Domain API routes](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/tree/main/backend/app/api/routes): `backend/app/api/routes`
- [Domain records](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/db/models.py): `backend/app/db/models.py`
- [Application database](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/db/database.py): `backend/app/db/database.py`

### Interview intelligence

- [Interview engine](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/services/interview_engine.py): `backend/app/services/interview_engine.py`
- [Knowledge retrieval](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/services/ai/rag/retrieval_service.py): `backend/app/services/ai/rag/retrieval_service.py`
- [Curriculum knowledge](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/services/ai/rag/knowledge_base.py): `backend/app/services/ai/rag/knowledge_base.py`
- [Grounded evaluation](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/services/ai/llm/llm_service.py): `backend/app/services/ai/llm/llm_service.py`

### Career preparation tools

- [Resume and ATS analysis](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/services/resume_analysis_service.py): `backend/app/services/resume_analysis_service.py`
- [Isolated code execution](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/services/sandbox/sandbox_manager.py): `backend/app/services/sandbox/sandbox_manager.py`
- [Career journey planning](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/services/career_journey_service.py): `backend/app/services/career_journey_service.py`
- [Skill Arena](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/services/skill_arena_service.py): `backend/app/services/skill_arena_service.py`

### Progress and community

- [Progress and actions](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/services/progress_service.py): `backend/app/services/progress_service.py`
- [Retention reminders](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/services/reminder_service.py): `backend/app/services/reminder_service.py`
- [Experience sanitization](https://github.com/chandolupraneethkumar05-oss/ai-career-preparation-agent/blob/main/backend/app/services/pii_detection_service.py): `backend/app/services/pii_detection_service.py`

### Other components

- **Job seeker**

## Connections

- Job seeker → App routing: uses (evidence: `src/App.jsx`)
- App routing → Authentication state: provides state (evidence: `src/App.jsx`)
- App routing → Interview state: provides state (evidence: `src/App.jsx`)
- App routing → Interview workflow: routes to (evidence: `src/App.jsx`)
- App routing → Interview feedback: routes to (evidence: `src/App.jsx`)
- App routing → Interview experiences: routes to (evidence: `src/App.jsx`)
- App routing → Skill gap view: routes to (evidence: `src/App.jsx`)
- Interview state → Interview API client: calls (evidence: `src/context/InterviewContext.jsx`)
- Interview state → Browser persistence: persists state (evidence: `src/context/InterviewContext.jsx`)
- Interview API client → Domain API routes: requests interview APIs
- FastAPI application → API router: mounts routes (evidence: `backend/app/main.py`)
- FastAPI application → Application database: initializes (evidence: `backend/app/main.py`)
- API router → Domain API routes: registers (evidence: `backend/app/api/router.py`)
- Domain API routes → Interview engine: dispatches interview work
- Interview engine → Knowledge retrieval: retrieves context (evidence: `backend/app/services/interview_engine.py`)
- Interview engine → Grounded evaluation: evaluates answers (evidence: `backend/app/services/interview_engine.py`)
- Knowledge retrieval → Curriculum knowledge: ranks curriculum (evidence: `backend/app/services/ai/rag/retrieval_service.py`)
- Knowledge retrieval → Application database: loads approved experiences (evidence: `backend/app/services/ai/rag/retrieval_service.py`)
- Interview engine → Domain records: stores evaluations (evidence: `backend/app/services/interview_engine.py`)
- Application database → Domain records: maps records (evidence: `backend/app/db/database.py`)
- Job seeker → Resume and ATS analysis: submits resume (evidence: `README.md`)
- Job seeker → Skill Arena: practices skills (evidence: `README.md`)
- Skill Arena → Isolated code execution: runs code safely (evidence: `README.md`)
- Job seeker → Career journey planning: reviews career plan (evidence: `README.md`)
- Interview state → Progress and actions: updates skill gaps (evidence: `README.md`)
- Resume and ATS analysis → Progress and actions: seeds skill gaps (evidence: `README.md`)
- Progress and actions → Retention reminders: schedules practice (evidence: `README.md`)
- Job seeker → Interview experiences: contributes logs (evidence: `README.md`)
- Interview experiences → Experience sanitization: submits for sanitization (evidence: `README.md`)
- Experience sanitization → Application database: stores approved entries (evidence: `README.md`)
- Experience sanitization → Knowledge retrieval: supplies approved questions
