# vishnuraam2006/smarthire architecture

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

- Interactive diagram: https://gitdiagram.com/vishnuraam2006/smarthire
- Repository: https://github.com/vishnuraam2006/smarthire

## Overview

SmartHire is a resume-to-job matching and career-guidance application. Its intended user flow is resume upload, text extraction, job ranking, category prediction, and a skill-gap report; the README notes that the Streamlit UI and primary model modules are still stubs, so this describes documented capabilities rather than a fully operational portal. The repository also includes dataset ingestion and cleaning, plus optional clustering/topics and fit prediction. Relationships are limited to calls visible in excerpts, source-index references, or README statements; unsampled modules are represented only where documented.

Main entry points: [`app/streamlit_app.py`](https://github.com/vishnuraam2006/smarthire/blob/main/app/streamlit_app.py) (Streamlit portal), [`src/data/preprocess.py`](https://github.com/vishnuraam2006/smarthire/blob/main/src/data/preprocess.py) (Corpus cleaning), [`src/evaluate.py`](https://github.com/vishnuraam2006/smarthire/blob/main/src/evaluate.py) (Model evaluation), [`src/data/load_data.py`](https://github.com/vishnuraam2006/smarthire/blob/main/src/data/load_data.py) (Dataset loading)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Data preparation"]
  node_load_data["Dataset loading<br/>[load_data.py]"]
  node_preprocess["Corpus cleaning<br/>[preprocess.py]"]
  node_config["Data configuration<br/>[config.py]"]
  node_raw_data[("Raw datasets")]
  node_clean_data[("Prepared datasets")]
end

subgraph group_career["Resume insights"]
  node_resume_parser["Resume extraction<br/>[resume_parser.py]"]
  node_classifier["Role classifier<br/>[classifier.py]"]
  node_knn_model["KNN models<br/>[knn_model.py]"]
  node_skill_features["Skill-gap analysis<br/>[match_features.py]"]
end

subgraph group_matching["Job matching"]
  node_jobs["Job ranking<br/>[recommender.py]"]
  node_text_features["Text features<br/>[text_features.py]"]
end

subgraph group_analysis["Optional analysis"]
  node_cluster["Job clustering<br/>[clustering.py]"]
  node_fit_predictor["Fit prediction<br/>[fit_predictor.py]"]
  node_evaluation["Model evaluation<br/>[evaluate.py]"]
end

subgraph group_portal["User portal"]
  node_app["Streamlit portal<br/>[streamlit_app.py]"]
  node_results["Match results<br/>[streamlit_app.py]"]
end

node_candidate(("Job seeker"))

node_candidate -->|"uploads resume"| node_app
node_app -->|"extracts text"| node_resume_parser
node_app -->|"requests rankings"| node_jobs
node_app -->|"selects classifier"| node_knn_model
node_app -.->|"loads classifier"| node_classifier
node_app -->|"checks skill gaps"| node_skill_features
node_app -->|"reads job CSV"| node_clean_data
node_app -->|"presents guidance"| node_results
node_raw_data -->|"reads datasets"| node_load_data
node_load_data -->|"gets file paths"| node_config
node_preprocess -->|"loads source tables"| node_load_data
node_preprocess -->|"uses output paths"| node_config
node_preprocess -->|"writes clean CSVs"| node_clean_data
node_clean_data -->|"provides job corpus"| node_jobs
node_text_features -->|"builds TF-IDF"| node_cluster
node_cluster -.->|"supports gap report"| node_skill_features
node_fit_predictor -.->|"uses skill overlap"| node_skill_features
node_evaluation -.->|"scores clustering"| node_cluster
node_evaluation -.->|"scores rankings"| node_jobs
node_evaluation -.->|"scores classification"| node_classifier

click node_app "https://github.com/vishnuraam2006/smarthire/blob/main/app/streamlit_app.py"
click node_resume_parser "https://github.com/vishnuraam2006/smarthire/blob/main/src/parsing/resume_parser.py"
click node_classifier "https://github.com/vishnuraam2006/smarthire/blob/main/src/models/classifier.py"
click node_knn_model "https://github.com/vishnuraam2006/smarthire/blob/main/src/models/knn_model.py"
click node_skill_features "https://github.com/vishnuraam2006/smarthire/blob/main/src/features/match_features.py"
click node_jobs "https://github.com/vishnuraam2006/smarthire/blob/main/src/models/recommender.py"
click node_text_features "https://github.com/vishnuraam2006/smarthire/blob/main/src/features/text_features.py"
click node_load_data "https://github.com/vishnuraam2006/smarthire/blob/main/src/data/load_data.py"
click node_preprocess "https://github.com/vishnuraam2006/smarthire/blob/main/src/data/preprocess.py"
click node_config "https://github.com/vishnuraam2006/smarthire/blob/main/src/config.py"
click node_raw_data "https://github.com/vishnuraam2006/smarthire/tree/main/data/raw"
click node_clean_data "https://github.com/vishnuraam2006/smarthire/tree/main/data/processed"
click node_cluster "https://github.com/vishnuraam2006/smarthire/blob/main/src/models/clustering.py"
click node_fit_predictor "https://github.com/vishnuraam2006/smarthire/blob/main/src/models/fit_predictor.py"
click node_evaluation "https://github.com/vishnuraam2006/smarthire/blob/main/src/evaluate.py"
click node_results "https://github.com/vishnuraam2006/smarthire/blob/main/app/streamlit_app.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_load_data,node_preprocess,node_config,node_raw_data,node_clean_data toneBlue
class node_resume_parser,node_classifier,node_knn_model,node_skill_features toneAmber
class node_jobs,node_text_features toneMint
class node_cluster,node_fit_predictor,node_evaluation toneRose
class node_app,node_results,node_candidate toneIndigo
```

## Components

### Data preparation

- [Dataset loading](https://github.com/vishnuraam2006/smarthire/blob/main/src/data/load_data.py): `src/data/load_data.py`
- [Corpus cleaning](https://github.com/vishnuraam2006/smarthire/blob/main/src/data/preprocess.py): `src/data/preprocess.py`
- [Data configuration](https://github.com/vishnuraam2006/smarthire/blob/main/src/config.py): `src/config.py`
- [Raw datasets](https://github.com/vishnuraam2006/smarthire/tree/main/data/raw): `data/raw`
- [Prepared datasets](https://github.com/vishnuraam2006/smarthire/tree/main/data/processed): `data/processed`

### Resume insights

- [Resume extraction](https://github.com/vishnuraam2006/smarthire/blob/main/src/parsing/resume_parser.py): `src/parsing/resume_parser.py`
- [Role classifier](https://github.com/vishnuraam2006/smarthire/blob/main/src/models/classifier.py): `src/models/classifier.py`
- [KNN models](https://github.com/vishnuraam2006/smarthire/blob/main/src/models/knn_model.py): `src/models/knn_model.py`
- [Skill-gap analysis](https://github.com/vishnuraam2006/smarthire/blob/main/src/features/match_features.py): `src/features/match_features.py`

### Job matching

- [Job ranking](https://github.com/vishnuraam2006/smarthire/blob/main/src/models/recommender.py): `src/models/recommender.py`
- [Text features](https://github.com/vishnuraam2006/smarthire/blob/main/src/features/text_features.py): `src/features/text_features.py`

### Optional analysis

- [Job clustering](https://github.com/vishnuraam2006/smarthire/blob/main/src/models/clustering.py): `src/models/clustering.py`
- [Fit prediction](https://github.com/vishnuraam2006/smarthire/blob/main/src/models/fit_predictor.py): `src/models/fit_predictor.py`
- [Model evaluation](https://github.com/vishnuraam2006/smarthire/blob/main/src/evaluate.py): `src/evaluate.py`

### User portal

- [Streamlit portal](https://github.com/vishnuraam2006/smarthire/blob/main/app/streamlit_app.py): `app/streamlit_app.py`
- [Match results](https://github.com/vishnuraam2006/smarthire/blob/main/app/streamlit_app.py): `app/streamlit_app.py`

### Other components

- **Job seeker**

## Connections

- Job seeker → Streamlit portal: uploads resume (evidence: `README.md`)
- Streamlit portal → Resume extraction: extracts text (evidence: `app/streamlit_app.py`)
- Streamlit portal → Job ranking: requests rankings (evidence: `app/streamlit_app.py`)
- Streamlit portal → KNN models: selects classifier (evidence: `app/streamlit_app.py`)
- Streamlit portal → Role classifier: loads classifier
- Streamlit portal → Skill-gap analysis: checks skill gaps (evidence: `app/streamlit_app.py`)
- Streamlit portal → Prepared datasets: reads job CSV (evidence: `app/streamlit_app.py`)
- Streamlit portal → Match results: presents guidance (evidence: `README.md`)
- Raw datasets → Dataset loading: reads datasets (evidence: `src/data/load_data.py`)
- Dataset loading → Data configuration: gets file paths (evidence: `src/data/load_data.py`)
- Corpus cleaning → Dataset loading: loads source tables (evidence: `src/data/preprocess.py`)
- Corpus cleaning → Data configuration: uses output paths (evidence: `src/data/preprocess.py`)
- Corpus cleaning → Prepared datasets: writes clean CSVs (evidence: `src/data/preprocess.py`)
- Prepared datasets → Job ranking: provides job corpus (evidence: `README.md`)
- Text features → Job clustering: builds TF-IDF (evidence: `src/models/clustering.py`)
- Job clustering → Skill-gap analysis: supports gap report
- Fit prediction → Skill-gap analysis: uses skill overlap (evidence: `README.md`)
- Model evaluation → Job clustering: scores clustering
- Model evaluation → Job ranking: scores rankings
- Model evaluation → Role classifier: scores classification
