# aditya699/recruitmatch- architecture

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

- Interactive diagram: https://gitdiagram.com/aditya699/recruitmatch-
- Repository: https://github.com/aditya699/recruitmatch-

## Overview

RecruitMatch is a Flask recruitment application: recruiters upload job descriptions and CVs, the system extracts structured requirements and candidate profiles, ranks candidates by semantic similarity, and presents matches for follow-up. A separate search flow matches a custom job description against candidate data; interview invitations are drafted and sent by email. The graph includes both Flask entry points and the documented dashboard capability. Source excerpts establish the principal calls; README statements support user-facing workflow links where route/template wiring is not shown.

Main entry points: [`V1/simplified_server.py`](https://github.com/aditya699/recruitmatch-/blob/main/V1/simplified_server.py) (Recruitment dashboard), [`V1/server.py`](https://github.com/aditya699/recruitmatch-/blob/main/V1/server.py) (Full web interface), [`V1/email_send.py`](https://github.com/aditya699/recruitmatch-/blob/main/V1/email_send.py) (Interview email), [`V1/jd.py`](https://github.com/aditya699/recruitmatch-/blob/main/V1/jd.py) (JD analyzer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Recruiter interface"]
  node_main_app["Recruitment dashboard"]
  node_full_app["Full web interface<br/>[server.py]"]
  node_templates["Dashboard views"]
end

subgraph group_analysis["Recruitment analysis"]
  node_jd["JD analyzer<br/>[jd.py]"]
  node_cv["CV processor<br/>[cv.py]"]
  node_matching["Semantic matching<br/>[match.py]"]
end

subgraph group_persistence["Recruitment data"]
  node_cv_store[("CV database<br/>[cv_data.db]")]
  node_jd_store[("Job summaries<br/>[job_summaries.db]")]
  node_match_store[("Match results<br/>[match_results.db]")]
end

subgraph group_communication["Candidate outreach"]
  node_email["Interview email<br/>[email_send.py]"]
end

node_recruiter(("Recruiter"))
node_ollama{{"Ollama LLM"}}
node_smtp{{"Gmail SMTP"}}

node_recruiter -->|"uploads and searches"| node_main_app
node_main_app -->|"renders views"| node_templates
node_main_app -->|"summarizes jobs"| node_jd
node_main_app -->|"extracts profiles"| node_cv
node_main_app -->|"requests matches"| node_matching
node_main_app -->|"requests invitations"| node_email
node_recruiter -->|"uses dashboard"| node_full_app
node_full_app -->|"summarizes jobs"| node_jd
node_full_app -->|"processes CVs"| node_cv
node_full_app -->|"builds matches"| node_matching
node_full_app -->|"sends invitations"| node_email
node_jd -->|"extracts requirements"| node_ollama
node_cv -->|"extracts profile data"| node_ollama
node_matching -->|"gets embeddings"| node_ollama
node_email -->|"drafts invitation"| node_ollama
node_email -->|"sends message"| node_smtp
node_cv -->|"writes profiles"| node_cv_store
node_jd -->|"writes summaries"| node_jd_store
node_matching -->|"writes rankings"| node_match_store
node_email -->|"reads top candidate"| node_match_store

click node_main_app "https://github.com/aditya699/recruitmatch-/blob/main/V1/simplified_server.py"
click node_full_app "https://github.com/aditya699/recruitmatch-/blob/main/V1/server.py"
click node_templates "https://github.com/aditya699/recruitmatch-/tree/main/V1/templates"
click node_jd "https://github.com/aditya699/recruitmatch-/blob/main/V1/jd.py"
click node_cv "https://github.com/aditya699/recruitmatch-/blob/main/V1/cv.py"
click node_matching "https://github.com/aditya699/recruitmatch-/blob/main/V1/match.py"
click node_cv_store "https://github.com/aditya699/recruitmatch-/blob/main/V1/cv_data.db"
click node_jd_store "https://github.com/aditya699/recruitmatch-/blob/main/V1/job_summaries.db"
click node_match_store "https://github.com/aditya699/recruitmatch-/blob/main/V1/match_results.db"
click node_email "https://github.com/aditya699/recruitmatch-/blob/main/V1/email_send.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_main_app,node_full_app,node_templates toneBlue
class node_jd,node_cv,node_matching toneAmber
class node_cv_store,node_jd_store,node_match_store toneMint
class node_email toneRose
class node_recruiter,node_ollama,node_smtp toneIndigo
```

## Components

### Recruiter interface

- [Recruitment dashboard](https://github.com/aditya699/recruitmatch-/blob/main/V1/simplified_server.py): `V1/simplified_server.py`
- [Full web interface](https://github.com/aditya699/recruitmatch-/blob/main/V1/server.py): `V1/server.py`
- [Dashboard views](https://github.com/aditya699/recruitmatch-/tree/main/V1/templates): `V1/templates`

### Recruitment analysis

- [JD analyzer](https://github.com/aditya699/recruitmatch-/blob/main/V1/jd.py): `V1/jd.py`
- [CV processor](https://github.com/aditya699/recruitmatch-/blob/main/V1/cv.py): `V1/cv.py`
- [Semantic matching](https://github.com/aditya699/recruitmatch-/blob/main/V1/match.py): `V1/match.py`

### Recruitment data

- [CV database](https://github.com/aditya699/recruitmatch-/blob/main/V1/cv_data.db): `V1/cv_data.db`
- [Job summaries](https://github.com/aditya699/recruitmatch-/blob/main/V1/job_summaries.db): `V1/job_summaries.db`
- [Match results](https://github.com/aditya699/recruitmatch-/blob/main/V1/match_results.db): `V1/match_results.db`

### Candidate outreach

- [Interview email](https://github.com/aditya699/recruitmatch-/blob/main/V1/email_send.py): `V1/email_send.py`

### Other components

- **Recruiter**
- **Ollama LLM**
- **Gmail SMTP**

## Connections

- Recruiter → Recruitment dashboard: uploads and searches (evidence: `readme.md`)
- Recruitment dashboard → Dashboard views: renders views (evidence: `readme.md`)
- Recruitment dashboard → JD analyzer: summarizes jobs (evidence: `V1/simplified_server.py`)
- Recruitment dashboard → CV processor: extracts profiles (evidence: `V1/simplified_server.py`)
- Recruitment dashboard → Semantic matching: requests matches (evidence: `V1/simplified_server.py`)
- Recruitment dashboard → Interview email: requests invitations (evidence: `V1/simplified_server.py`)
- Recruiter → Full web interface: uses dashboard (evidence: `readme.md`)
- Full web interface → JD analyzer: summarizes jobs (evidence: `V1/server.py`)
- Full web interface → CV processor: processes CVs (evidence: `V1/server.py`)
- Full web interface → Semantic matching: builds matches (evidence: `V1/server.py`)
- Full web interface → Interview email: sends invitations (evidence: `V1/server.py`)
- JD analyzer → Ollama LLM: extracts requirements (evidence: `V1/jd.py`)
- CV processor → Ollama LLM: extracts profile data (evidence: `V1/cv.py`)
- Semantic matching → Ollama LLM: gets embeddings (evidence: `V1/match.py`)
- Interview email → Ollama LLM: drafts invitation (evidence: `V1/email_send.py`)
- Interview email → Gmail SMTP: sends message (evidence: `V1/email_send.py`)
- CV processor → CV database: writes profiles (evidence: `V1/cv.py`)
- JD analyzer → Job summaries: writes summaries (evidence: `V1/jd.py`)
- Semantic matching → Match results: writes rankings (evidence: `V1/match.py`)
- Interview email → Match results: reads top candidate (evidence: `V1/email_send.py`)
