# ghelanikirtan/hr-process-automation architecture

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

- Interactive diagram: https://gitdiagram.com/ghelanikirtan/hr-process-automation
- Repository: https://github.com/ghelanikirtan/hr-process-automation

## Overview

This repository is a partial HR candidate-screening application. In the implemented path, an applicant submits details, the Flask endpoint loads a resume PDF, indexes it for retrieval, asks an LLM for eligibility and (in the Final variant) skills, alternative roles, screening questions, and a summary, then stores applicant details and eligibility in SQLite. The README also describes job-description evaluation, ranking, notifications, interviews, and HR updates, but sampled code does not establish their implementation or connections. The separate job-portal code provides signup/login. The graph distinguishes documented capabilities from observed calls.

Main entry points: [`Final/app_information_fetcher.py`](https://github.com/ghelanikirtan/hr-process-automation/blob/main/Final/app_information_fetcher.py) (Screening API), [`Main-Structure/job_portal/server/server.js`](https://github.com/ghelanikirtan/hr-process-automation/blob/main/Main-Structure/job_portal/server/server.js) (Auth server), [`Main-Structure/job_portal/server/routes/auth.js`](https://github.com/ghelanikirtan/hr-process-automation/blob/main/Main-Structure/job_portal/server/routes/auth.js) (Signup and login), [`Main-Structure/job_portal/server/models/User.js`](https://github.com/ghelanikirtan/hr-process-automation/blob/main/Main-Structure/job_portal/server/models/User.js) (User model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_screening["Resume screening"]
  node_flask_api["Screening API"]
  node_resume_loader["PDF loader"]
  node_resume_index[("Resume index")]
  node_retrieval_qa["Retrieval QA"]
end

subgraph group_hiring["Hiring workflow"]
  node_job_description["Job description review"]
  node_candidate_ranking["Candidate ranking"]
  node_notifications["Candidate notifications"]
  node_screening_interview["Interview screening"]
  node_hr_updates["HR communication"]
end

subgraph group_identity["Job portal identity"]
  node_portal_server["Auth server<br/>[server.js]"]
  node_auth_routes["Signup and login<br/>[auth.js]"]
  node_user_model["User model<br/>[User.js]"]
  node_mongo[("MongoDB")]
end

subgraph group_storage["Persistence"]
  node_applicant_records[("Applicant records")]
  node_sqlite_db[("SQLite database<br/>[raw_database.db]")]
end

node_applicant(("Applicant"))
node_llm["Language model"]
node_portal_user(("Portal user"))

node_applicant -->|"submits details"| node_flask_api
node_flask_api -->|"loads PDF"| node_resume_loader
node_flask_api -->|"indexes documents"| node_resume_index
node_flask_api -->|"creates retriever"| node_retrieval_qa
node_retrieval_qa -->|"queries"| node_llm
node_flask_api -->|"inserts applicant"| node_applicant_records
node_applicant_records -->|"writes records"| node_sqlite_db
node_job_description -.->|"guides ranking"| node_candidate_ranking
node_candidate_ranking -.->|"shortlists candidates"| node_notifications
node_notifications -.->|"invites candidates"| node_screening_interview
node_screening_interview -.->|"reports progress"| node_hr_updates
node_portal_user -->|"authenticates"| node_portal_server
node_portal_server -->|"routes requests"| node_auth_routes
node_auth_routes -->|"queries users"| node_user_model
node_user_model -.->|"persists users"| node_mongo

click node_flask_api "https://github.com/ghelanikirtan/hr-process-automation/blob/main/Final/app_information_fetcher.py"
click node_resume_loader "https://github.com/ghelanikirtan/hr-process-automation/blob/main/Final/app_information_fetcher.py"
click node_resume_index "https://github.com/ghelanikirtan/hr-process-automation/blob/main/Final/app_information_fetcher.py"
click node_retrieval_qa "https://github.com/ghelanikirtan/hr-process-automation/blob/main/Final/app_information_fetcher.py"
click node_applicant_records "https://github.com/ghelanikirtan/hr-process-automation/blob/main/Final/app_information_fetcher.py"
click node_sqlite_db "https://github.com/ghelanikirtan/hr-process-automation/blob/main/Final/database/raw_database.db"
click node_portal_server "https://github.com/ghelanikirtan/hr-process-automation/blob/main/Main-Structure/job_portal/server/server.js"
click node_auth_routes "https://github.com/ghelanikirtan/hr-process-automation/blob/main/Main-Structure/job_portal/server/routes/auth.js"
click node_user_model "https://github.com/ghelanikirtan/hr-process-automation/blob/main/Main-Structure/job_portal/server/models/User.js"

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_flask_api,node_resume_loader,node_resume_index,node_retrieval_qa,node_portal_user toneBlue
class node_job_description,node_candidate_ranking,node_notifications,node_screening_interview,node_hr_updates toneAmber
class node_portal_server,node_auth_routes,node_user_model,node_mongo toneMint
class node_applicant_records,node_sqlite_db toneRose
class node_applicant,node_llm toneIndigo
```

## Components

### Resume screening

- [Screening API](https://github.com/ghelanikirtan/hr-process-automation/blob/main/Final/app_information_fetcher.py): `Final/app_information_fetcher.py`
- [PDF loader](https://github.com/ghelanikirtan/hr-process-automation/blob/main/Final/app_information_fetcher.py): `Final/app_information_fetcher.py`
- [Resume index](https://github.com/ghelanikirtan/hr-process-automation/blob/main/Final/app_information_fetcher.py): `Final/app_information_fetcher.py`
- [Retrieval QA](https://github.com/ghelanikirtan/hr-process-automation/blob/main/Final/app_information_fetcher.py): `Final/app_information_fetcher.py`

### Hiring workflow

- **Job description review**
- **Candidate ranking**
- **Candidate notifications**
- **Interview screening**
- **HR communication**

### Job portal identity

- [Auth server](https://github.com/ghelanikirtan/hr-process-automation/blob/main/Main-Structure/job_portal/server/server.js): `Main-Structure/job_portal/server/server.js`
- [Signup and login](https://github.com/ghelanikirtan/hr-process-automation/blob/main/Main-Structure/job_portal/server/routes/auth.js): `Main-Structure/job_portal/server/routes/auth.js`
- [User model](https://github.com/ghelanikirtan/hr-process-automation/blob/main/Main-Structure/job_portal/server/models/User.js): `Main-Structure/job_portal/server/models/User.js`
- **MongoDB**

### Persistence

- [Applicant records](https://github.com/ghelanikirtan/hr-process-automation/blob/main/Final/app_information_fetcher.py): `Final/app_information_fetcher.py`
- [SQLite database](https://github.com/ghelanikirtan/hr-process-automation/blob/main/Final/database/raw_database.db): `Final/database/raw_database.db`

### Other components

- **Applicant**
- **Language model**
- **Portal user**

## Connections

- Applicant → Screening API: submits details (evidence: `Final/app_information_fetcher.py`)
- Screening API → PDF loader: loads PDF (evidence: `Final/app_information_fetcher.py`)
- Screening API → Resume index: indexes documents (evidence: `Final/app_information_fetcher.py`)
- Screening API → Retrieval QA: creates retriever (evidence: `Final/app_information_fetcher.py`)
- Retrieval QA → Language model: queries (evidence: `Final/app_information_fetcher.py`)
- Screening API → Applicant records: inserts applicant (evidence: `Final/app_information_fetcher.py`)
- Applicant records → SQLite database: writes records (evidence: `Final/app_information_fetcher.py`)
- Job description review → Candidate ranking: guides ranking (evidence: `README.md`)
- Candidate ranking → Candidate notifications: shortlists candidates (evidence: `README.md`)
- Candidate notifications → Interview screening: invites candidates (evidence: `README.md`)
- Interview screening → HR communication: reports progress (evidence: `README.md`)
- Portal user → Auth server: authenticates (evidence: `Main-Structure/job_portal/server/server.js`)
- Auth server → Signup and login: routes requests (evidence: `Main-Structure/job_portal/server/server.js`)
- Signup and login → User model: queries users (evidence: `Main-Structure/job_portal/server/routes/auth.js`)
- User model → MongoDB: persists users
