# ajaykumar954/ai-recruitment-system architecture

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

- Interactive diagram: https://gitdiagram.com/ajaykumar954/ai-recruitment-system
- Repository: https://github.com/ajaykumar954/ai-recruitment-system

## Overview

RecruitIQ is a recruitment-management platform: recruiters create job descriptions, upload candidate CVs, review AI-generated matches, curate shortlists, and manage interview invitations from a React dashboard. FastAPI exposes the backend workflow, while an orchestrator delegates parsing, matching, shortlisting, and invitation generation to specialist agents; results and operational records persist in SQLite. The README documents capabilities beyond the sampled excerpts, so those branches are included at subsystem level. Arrows are limited to relationships shown in excerpts, the source index, or README; unsampled implementation detail is not inferred.

Main entry points: [`src/agents/orchestrator.py`](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/agents/orchestrator.py) (Workflow orchestrator), [`frontend/src/App.jsx`](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/frontend/src/App.jsx) (UI coordinator), [`src/api/app.py`](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/api/app.py) (FastAPI application), [`src/database/database.py`](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/database/database.py) (Database sessions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Recruiter interface"]
  node_dashboard["Recruiter dashboard<br/>[Dashboard.jsx]"]
  node_jobs_ui["Job management<br/>[JobList.jsx]"]
  node_cv_ui["CV upload<br/>[CVUpload.jsx]"]
  node_matching_ui["Match results"]
  node_shortlist_ui["Shortlist curation<br/>[Shortlist.jsx]"]
  node_interview_ui["Interview manager"]
  node_app["UI coordinator<br/>[App.jsx]"]
  node_client["REST client<br/>[api.js]"]
end

subgraph group_api["API and workflows"]
  node_fastapi["FastAPI application<br/>[app.py]"]
  node_job_routes["Job endpoints"]
  node_candidate_routes["Candidate endpoints<br/>[candidates.py]"]
  node_matching_routes["Matching endpoints<br/>[matching.py]"]
  node_shortlist_routes["Shortlist endpoints<br/>[shortlisting.py]"]
  node_interview_routes["Interview endpoints<br/>[interviews.py]"]
  node_dashboard_routes["Analytics endpoints<br/>[dashboard.py]"]
end

subgraph group_agents["Recruitment intelligence"]
  node_orchestrator["Workflow orchestrator<br/>[orchestrator.py]"]
  node_job_agent["Job parser"]
  node_cv_agent["CV processor"]
  node_matching_agent["Matching engine<br/>[matching_agent.py]"]
  node_shortlisting_agent["Shortlisting agent"]
  node_interview_agent["Invitation generator<br/>[interview_agent.py]"]
end

subgraph group_data["Persistence and support"]
  node_text_utils["Text extraction helpers<br/>[text_utils.py]"]
  node_file_utils["Upload handling<br/>[file_utils.py]"]
  node_schemas["Domain schemas<br/>[schemas.py]"]
  node_db_session["Database sessions<br/>[database.py]"]
  node_db_models["Recruitment records<br/>[models.py]"]
  node_sqlite[("SQLite database")]
end

node_recruiter(("Recruiter"))
node_smtp["SMTP service"]

node_recruiter -->|"uses"| node_app
node_app -->|"renders"| node_dashboard
node_app -->|"renders"| node_jobs_ui
node_app -->|"renders"| node_cv_ui
node_app -->|"renders"| node_matching_ui
node_app -->|"renders"| node_shortlist_ui
node_app -->|"renders"| node_interview_ui
node_app -->|"calls"| node_client
node_client -->|"sends REST requests"| node_fastapi
node_fastapi -->|"registers"| node_job_routes
node_fastapi -->|"registers"| node_candidate_routes
node_fastapi -->|"registers"| node_matching_routes
node_fastapi -->|"registers"| node_shortlist_routes
node_fastapi -->|"registers"| node_interview_routes
node_fastapi -->|"registers"| node_dashboard_routes
node_job_routes -->|"parses jobs"| node_orchestrator
node_candidate_routes -->|"processes CVs"| node_orchestrator
node_matching_routes -->|"runs matching"| node_orchestrator
node_shortlist_routes -->|"curates candidates"| node_orchestrator
node_interview_routes -->|"generates invitations"| node_orchestrator
node_orchestrator -->|"delegates parsing"| node_job_agent
node_orchestrator -->|"delegates parsing"| node_cv_agent
node_orchestrator -->|"delegates scoring"| node_matching_agent
node_orchestrator -->|"delegates ranking"| node_shortlisting_agent
node_orchestrator -->|"delegates drafting"| node_interview_agent
node_cv_agent -->|"extracts text"| node_text_utils
node_cv_agent -->|"uses upload utilities"| node_file_utils
node_job_agent -->|"uses text utilities"| node_text_utils
node_orchestrator -->|"uses domain types"| node_schemas
node_job_routes -->|"uses sessions"| node_db_session
node_candidate_routes -->|"uses sessions"| node_db_session
node_matching_routes -->|"uses sessions"| node_db_session
node_shortlist_routes -->|"uses sessions"| node_db_session
node_interview_routes -->|"uses sessions"| node_db_session
node_dashboard_routes -->|"queries metrics"| node_db_session
node_db_session -->|"creates tables"| node_db_models
node_db_models -->|"persists records"| node_sqlite
node_interview_routes -.->|"optionally dispatches"| node_smtp

click node_dashboard "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/frontend/src/components/Dashboard.jsx"
click node_jobs_ui "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/frontend/src/components/JobList.jsx"
click node_cv_ui "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/frontend/src/components/CVUpload.jsx"
click node_matching_ui "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/frontend/src/components/MatchingResults.jsx"
click node_shortlist_ui "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/frontend/src/components/Shortlist.jsx"
click node_interview_ui "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/frontend/src/components/InterviewManager.jsx"
click node_app "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/frontend/src/App.jsx"
click node_client "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/frontend/src/api.js"
click node_fastapi "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/api/app.py"
click node_job_routes "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/api/routes/job_descriptions.py"
click node_candidate_routes "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/api/routes/candidates.py"
click node_matching_routes "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/api/routes/matching.py"
click node_shortlist_routes "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/api/routes/shortlisting.py"
click node_interview_routes "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/api/routes/interviews.py"
click node_dashboard_routes "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/api/routes/dashboard.py"
click node_orchestrator "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/agents/orchestrator.py"
click node_job_agent "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/agents/job_description_agent.py"
click node_cv_agent "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/agents/cv_processing_agent.py"
click node_matching_agent "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/agents/matching_agent.py"
click node_shortlisting_agent "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/agents/shortlisting_agent.py"
click node_interview_agent "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/agents/interview_agent.py"
click node_text_utils "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/utils/text_utils.py"
click node_file_utils "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/utils/file_utils.py"
click node_schemas "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/models/schemas.py"
click node_db_session "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/database/database.py"
click node_db_models "https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/database/models.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_dashboard,node_jobs_ui,node_cv_ui,node_matching_ui,node_shortlist_ui,node_interview_ui,node_app,node_client toneBlue
class node_fastapi,node_job_routes,node_candidate_routes,node_matching_routes,node_shortlist_routes,node_interview_routes,node_dashboard_routes toneAmber
class node_orchestrator,node_job_agent,node_cv_agent,node_matching_agent,node_shortlisting_agent,node_interview_agent toneMint
class node_text_utils,node_file_utils,node_schemas,node_db_session,node_db_models,node_sqlite toneRose
class node_recruiter,node_smtp toneIndigo
```

## Components

### Recruiter interface

- [Recruiter dashboard](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/frontend/src/components/Dashboard.jsx): `frontend/src/components/Dashboard.jsx`
- [Job management](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/frontend/src/components/JobList.jsx): `frontend/src/components/JobList.jsx`
- [CV upload](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/frontend/src/components/CVUpload.jsx): `frontend/src/components/CVUpload.jsx`
- [Match results](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/frontend/src/components/MatchingResults.jsx): `frontend/src/components/MatchingResults.jsx`
- [Shortlist curation](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/frontend/src/components/Shortlist.jsx): `frontend/src/components/Shortlist.jsx`
- [Interview manager](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/frontend/src/components/InterviewManager.jsx): `frontend/src/components/InterviewManager.jsx`
- [UI coordinator](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [REST client](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/frontend/src/api.js): `frontend/src/api.js`

### API and workflows

- [FastAPI application](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/api/app.py): `src/api/app.py`
- [Job endpoints](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/api/routes/job_descriptions.py): `src/api/routes/job_descriptions.py`
- [Candidate endpoints](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/api/routes/candidates.py): `src/api/routes/candidates.py`
- [Matching endpoints](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/api/routes/matching.py): `src/api/routes/matching.py`
- [Shortlist endpoints](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/api/routes/shortlisting.py): `src/api/routes/shortlisting.py`
- [Interview endpoints](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/api/routes/interviews.py): `src/api/routes/interviews.py`
- [Analytics endpoints](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/api/routes/dashboard.py): `src/api/routes/dashboard.py`

### Recruitment intelligence

- [Workflow orchestrator](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/agents/orchestrator.py): `src/agents/orchestrator.py`
- [Job parser](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/agents/job_description_agent.py): `src/agents/job_description_agent.py`
- [CV processor](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/agents/cv_processing_agent.py): `src/agents/cv_processing_agent.py`
- [Matching engine](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/agents/matching_agent.py): `src/agents/matching_agent.py`
- [Shortlisting agent](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/agents/shortlisting_agent.py): `src/agents/shortlisting_agent.py`
- [Invitation generator](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/agents/interview_agent.py): `src/agents/interview_agent.py`

### Persistence and support

- [Text extraction helpers](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/utils/text_utils.py): `src/utils/text_utils.py`
- [Upload handling](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/utils/file_utils.py): `src/utils/file_utils.py`
- [Domain schemas](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/models/schemas.py): `src/models/schemas.py`
- [Database sessions](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/database/database.py): `src/database/database.py`
- [Recruitment records](https://github.com/ajaykumar954/ai-recruitment-system/blob/main/src/database/models.py): `src/database/models.py`
- **SQLite database**

### Other components

- **Recruiter**
- **SMTP service**

## Connections

- Recruiter → UI coordinator: uses (evidence: `README.md`)
- UI coordinator → Recruiter dashboard: renders (evidence: `frontend/src/App.jsx`)
- UI coordinator → Job management: renders (evidence: `frontend/src/App.jsx`)
- UI coordinator → CV upload: renders (evidence: `frontend/src/App.jsx`)
- UI coordinator → Match results: renders (evidence: `frontend/src/App.jsx`)
- UI coordinator → Shortlist curation: renders (evidence: `frontend/src/App.jsx`)
- UI coordinator → Interview manager: renders (evidence: `frontend/src/App.jsx`)
- UI coordinator → REST client: calls (evidence: `frontend/src/App.jsx`)
- REST client → FastAPI application: sends REST requests (evidence: `README.md`)
- FastAPI application → Job endpoints: registers (evidence: `src/api/app.py`)
- FastAPI application → Candidate endpoints: registers (evidence: `src/api/app.py`)
- FastAPI application → Matching endpoints: registers (evidence: `src/api/app.py`)
- FastAPI application → Shortlist endpoints: registers (evidence: `src/api/app.py`)
- FastAPI application → Interview endpoints: registers (evidence: `src/api/app.py`)
- FastAPI application → Analytics endpoints: registers (evidence: `src/api/app.py`)
- Job endpoints → Workflow orchestrator: parses jobs (evidence: `src/api/routes/job_descriptions.py`)
- Candidate endpoints → Workflow orchestrator: processes CVs (evidence: `src/api/routes/candidates.py`)
- Matching endpoints → Workflow orchestrator: runs matching (evidence: `src/api/routes/matching.py`)
- Shortlist endpoints → Workflow orchestrator: curates candidates (evidence: `src/api/routes/shortlisting.py`)
- Interview endpoints → Workflow orchestrator: generates invitations (evidence: `src/api/routes/interviews.py`)
- Workflow orchestrator → Job parser: delegates parsing (evidence: `src/agents/orchestrator.py`)
- Workflow orchestrator → CV processor: delegates parsing (evidence: `src/agents/orchestrator.py`)
- Workflow orchestrator → Matching engine: delegates scoring (evidence: `src/agents/orchestrator.py`)
- Workflow orchestrator → Shortlisting agent: delegates ranking (evidence: `src/agents/orchestrator.py`)
- Workflow orchestrator → Invitation generator: delegates drafting (evidence: `src/agents/orchestrator.py`)
- CV processor → Text extraction helpers: extracts text (evidence: `src/agents/cv_processing_agent.py`)
- CV processor → Upload handling: uses upload utilities (evidence: `src/agents/cv_processing_agent.py`)
- Job parser → Text extraction helpers: uses text utilities (evidence: `src/agents/job_description_agent.py`)
- Workflow orchestrator → Domain schemas: uses domain types (evidence: `src/agents/orchestrator.py`)
- Job endpoints → Database sessions: uses sessions (evidence: `src/api/routes/job_descriptions.py`)
- Candidate endpoints → Database sessions: uses sessions (evidence: `src/api/routes/candidates.py`)
- Matching endpoints → Database sessions: uses sessions (evidence: `src/api/routes/matching.py`)
- Shortlist endpoints → Database sessions: uses sessions (evidence: `src/api/routes/shortlisting.py`)
- Interview endpoints → Database sessions: uses sessions (evidence: `src/api/routes/interviews.py`)
- Analytics endpoints → Database sessions: queries metrics (evidence: `src/api/routes/dashboard.py`)
- Database sessions → Recruitment records: creates tables (evidence: `src/database/database.py`)
- Recruitment records → SQLite database: persists records (evidence: `README.md`)
- Interview endpoints → SMTP service: optionally dispatches (evidence: `README.md`)
