# swethathalluru/ai-career-recommendation-system architecture

> Architecture diagram of the GitHub repository swethathalluru/ai-career-recommendation-system, 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/swethathalluru/ai-career-recommendation-system
- Repository: https://github.com/swethathalluru/ai-career-recommendation-system

## Overview

This is an AI-powered career recommendation application for students and administrators. Students register and sign in, build a profile (including resume parsing), take skill assessments, request career matches, and can use a career chatbot; the system stores profiles, scores, recommendations, and chat logs. Recommendations combine a trained model with skill and assessment similarity, then add skill-gap and learning-resource details. The graph follows documented router registration and sampled calls; several API and frontend details are only partially excerpted, so unsupported links are omitted.

Main entry points: [`backend/app/main.py`](https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/main.py) (API application), [`backend/app/core/database.py`](https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/core/database.py) (Database session), [`backend/app/api/recommendation.py`](https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/api/recommendation.py) (Recommendation workflow), [`backend/app/api/admin.py`](https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/api/admin.py) (Administration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Student interface"]
  node_frontend["Career app<br/>[App.jsx]"]
end

subgraph group_api["API workflows"]
  node_server["API application<br/>[main.py]"]
  node_auth["Authentication<br/>[auth.py]"]
  node_profile["Student profiles<br/>[profile.py]"]
  node_resume["Resume parsing<br/>[resume_parser.py]"]
  node_assessment["Skill assessments<br/>[assessment.py]"]
  node_recommendation_api["Recommendation workflow<br/>[recommendation.py]"]
  node_chatbot_api["Career chatbot<br/>[chatbot.py]"]
  node_admin["Administration<br/>[admin.py]"]
end

subgraph group_domain["Career intelligence"]
  node_recommender["Hybrid recommender<br/>[recommender.py]"]
  node_chat_helper["Chat assistant logic<br/>[chatbot_helper.py]"]
  node_dataset_generator["Dataset generator"]
  node_ml_pipeline["ML pipeline<br/>[pipeline.py]"]
  node_ml_artifacts["Model artifacts"]
end

subgraph group_persistence["Data and security"]
  node_auth_security["Token security<br/>[security.py]"]
  node_database["Database session<br/>[database.py]"]
  node_user_model["User profiles<br/>[user.py]"]
  node_assessment_model["Assessment records<br/>[assessment.py]"]
  node_recommendation_model["Recommendation and chat records<br/>[recommendation.py]"]
  node_sqlite[("SQLite store<br/>[career_engine.db]")]
end

node_student(("Student"))

node_student -->|"uses"| node_frontend
node_frontend -->|"submits login"| node_auth
node_server -->|"registers router"| node_auth
node_server -->|"registers router"| node_profile
node_server -->|"registers router"| node_assessment
node_server -->|"registers router"| node_recommendation_api
node_server -->|"registers router"| node_chatbot_api
node_server -->|"registers router"| node_admin
node_server -->|"creates tables"| node_database
node_auth -->|"uses token functions"| node_auth_security
node_auth -->|"queries users"| node_database
node_auth -->|"creates and queries"| node_user_model
node_profile -->|"parses resume"| node_resume
node_assessment -->|"reads and writes"| node_database
node_assessment -->|"updates profile"| node_user_model
node_assessment -->|"stores scores"| node_assessment_model
node_recommendation_api -->|"requests matches"| node_recommender
node_recommendation_api -->|"loads and saves"| node_database
node_recommendation_api -->|"loads profile"| node_user_model
node_recommendation_api -->|"loads scores"| node_assessment_model
node_recommendation_api -->|"stores history"| node_recommendation_model
node_chatbot_api -->|"requests responses"| node_chat_helper
node_chat_helper -->|"uses career data"| node_recommender
node_chatbot_api -->|"reads and writes"| node_database
node_admin -->|"queries records"| node_database
node_admin -->|"manages users"| node_user_model
node_admin -->|"reads assessments"| node_assessment_model
node_admin -->|"reads recommendations"| node_recommendation_model
node_database -.->|"connects"| node_sqlite
node_ml_pipeline -->|"uses generator"| node_dataset_generator
node_recommender -->|"loads artifacts"| node_ml_artifacts

click node_frontend "https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/frontend/src/App.jsx"
click node_server "https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/main.py"
click node_auth "https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/api/auth.py"
click node_profile "https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/api/profile.py"
click node_resume "https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/utils/resume_parser.py"
click node_assessment "https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/api/assessment.py"
click node_recommendation_api "https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/api/recommendation.py"
click node_chatbot_api "https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/api/chatbot.py"
click node_admin "https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/api/admin.py"
click node_recommender "https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/ml/recommender.py"
click node_chat_helper "https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/utils/chatbot_helper.py"
click node_dataset_generator "https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/ml/dataset_generator.py"
click node_ml_pipeline "https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/ml/pipeline.py"
click node_auth_security "https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/core/security.py"
click node_database "https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/core/database.py"
click node_user_model "https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/models/user.py"
click node_assessment_model "https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/models/assessment.py"
click node_recommendation_model "https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/models/recommendation.py"
click node_sqlite "https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/career_engine.db"
click node_ml_artifacts "https://github.com/swethathalluru/ai-career-recommendation-system/tree/main/backend/app/ml/models"

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_frontend toneBlue
class node_server,node_auth,node_profile,node_resume,node_assessment,node_recommendation_api,node_chatbot_api,node_admin toneAmber
class node_recommender,node_chat_helper,node_dataset_generator,node_ml_pipeline,node_ml_artifacts toneMint
class node_auth_security,node_database,node_user_model,node_assessment_model,node_recommendation_model,node_sqlite toneRose
class node_student toneIndigo
```

## Components

### Student interface

- [Career app](https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`

### API workflows

- [API application](https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/main.py): `backend/app/main.py`
- [Authentication](https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/api/auth.py): `backend/app/api/auth.py`
- [Student profiles](https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/api/profile.py): `backend/app/api/profile.py`
- [Resume parsing](https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/utils/resume_parser.py): `backend/app/utils/resume_parser.py`
- [Skill assessments](https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/api/assessment.py): `backend/app/api/assessment.py`
- [Recommendation workflow](https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/api/recommendation.py): `backend/app/api/recommendation.py`
- [Career chatbot](https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/api/chatbot.py): `backend/app/api/chatbot.py`
- [Administration](https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/api/admin.py): `backend/app/api/admin.py`

### Career intelligence

- [Hybrid recommender](https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/ml/recommender.py): `backend/app/ml/recommender.py`
- [Chat assistant logic](https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/utils/chatbot_helper.py): `backend/app/utils/chatbot_helper.py`
- [Dataset generator](https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/ml/dataset_generator.py): `backend/app/ml/dataset_generator.py`
- [ML pipeline](https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/ml/pipeline.py): `backend/app/ml/pipeline.py`
- [Model artifacts](https://github.com/swethathalluru/ai-career-recommendation-system/tree/main/backend/app/ml/models): `backend/app/ml/models`

### Data and security

- [Token security](https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/core/security.py): `backend/app/core/security.py`
- [Database session](https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/core/database.py): `backend/app/core/database.py`
- [User profiles](https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/models/user.py): `backend/app/models/user.py`
- [Assessment records](https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/models/assessment.py): `backend/app/models/assessment.py`
- [Recommendation and chat records](https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/app/models/recommendation.py): `backend/app/models/recommendation.py`
- [SQLite store](https://github.com/swethathalluru/ai-career-recommendation-system/blob/main/backend/career_engine.db): `backend/career_engine.db`

### Other components

- **Student**

## Connections

- Student → Career app: uses
- Career app → Authentication: submits login (evidence: `frontend/src/App.jsx`)
- API application → Authentication: registers router (evidence: `backend/app/main.py`)
- API application → Student profiles: registers router (evidence: `backend/app/main.py`)
- API application → Skill assessments: registers router (evidence: `backend/app/main.py`)
- API application → Recommendation workflow: registers router (evidence: `backend/app/main.py`)
- API application → Career chatbot: registers router (evidence: `backend/app/main.py`)
- API application → Administration: registers router (evidence: `backend/app/main.py`)
- API application → Database session: creates tables (evidence: `backend/app/main.py`)
- Authentication → Token security: uses token functions (evidence: `backend/app/api/auth.py`)
- Authentication → Database session: queries users (evidence: `backend/app/api/auth.py`)
- Authentication → User profiles: creates and queries (evidence: `backend/app/api/auth.py`)
- Student profiles → Resume parsing: parses resume (evidence: `backend/app/api/profile.py`)
- Skill assessments → Database session: reads and writes (evidence: `backend/app/api/assessment.py`)
- Skill assessments → User profiles: updates profile (evidence: `backend/app/api/assessment.py`)
- Skill assessments → Assessment records: stores scores (evidence: `backend/app/api/assessment.py`)
- Recommendation workflow → Hybrid recommender: requests matches (evidence: `backend/app/api/recommendation.py`)
- Recommendation workflow → Database session: loads and saves (evidence: `backend/app/api/recommendation.py`)
- Recommendation workflow → User profiles: loads profile (evidence: `backend/app/api/recommendation.py`)
- Recommendation workflow → Assessment records: loads scores (evidence: `backend/app/api/recommendation.py`)
- Recommendation workflow → Recommendation and chat records: stores history (evidence: `backend/app/api/recommendation.py`)
- Career chatbot → Chat assistant logic: requests responses (evidence: `backend/app/api/chatbot.py`)
- Chat assistant logic → Hybrid recommender: uses career data (evidence: `backend/app/utils/chatbot_helper.py`)
- Career chatbot → Database session: reads and writes (evidence: `backend/app/api/chatbot.py`)
- Administration → Database session: queries records (evidence: `backend/app/api/admin.py`)
- Administration → User profiles: manages users (evidence: `backend/app/api/admin.py`)
- Administration → Assessment records: reads assessments (evidence: `backend/app/api/admin.py`)
- Administration → Recommendation and chat records: reads recommendations (evidence: `backend/app/api/admin.py`)
- Database session → SQLite store: connects
- ML pipeline → Dataset generator: uses generator (evidence: `backend/app/ml/pipeline.py`)
- Hybrid recommender → Model artifacts: loads artifacts (evidence: `backend/app/ml/recommender.py`)
