# kumardhananjaya/talentiq-ai architecture

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

- Interactive diagram: https://gitdiagram.com/kumardhananjaya/talentiq-ai
- Repository: https://github.com/kumardhananjaya/talentiq-ai

## Overview

TalentIQ AI is a recruitment platform for managing candidates and jobs, parsing uploaded resumes, and ranking candidate–job fit. The main workflow runs from the recruiter’s frontend through REST services to backend routes; matching calculates skill, experience, and semantic scores and persists ranked results. Resume uploads follow a separate extraction-and-merge path. The README also describes analytics, recruiter-tuned matching, comparisons, and interview-question generation, but the provided tree does not show distinct implementations for all of them. Links reflect the excerpts, source index, or README; unsampled details are not inferred.

Main entry points: [`backend/app/api/candidates.py`](https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/api/candidates.py) (Candidate routes), [`backend/app/services/matching_service.py`](https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/services/matching_service.py) (Hybrid matching), [`frontend/src/App.tsx`](https://github.com/kumardhananjaya/talentiq-ai/blob/main/frontend/src/App.tsx) (Application routes), [`frontend/src/pages/Dashboard.tsx`](https://github.com/kumardhananjaya/talentiq-ai/blob/main/frontend/src/pages/Dashboard.tsx) (Analytics dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Recruiter frontend"]
  node_app["Application routes<br/>[App.tsx]"]
  node_dashboard["Analytics dashboard<br/>[Dashboard.tsx]"]
  node_candidate_ui["Candidate management<br/>[Candidates.tsx]"]
  node_job_ui["Jobs and matches<br/>[Jobs.tsx]"]
  node_candidate_client["Candidate API client"]
  node_job_client["Job API client<br/>[jobService.ts]"]
end

subgraph group_api["Backend API"]
  node_candidate_api["Candidate routes<br/>[candidates.py]"]
  node_job_api["Job routes<br/>[jobs.py]"]
end

subgraph group_candidate["Candidate services"]
  node_candidate_service["Candidate operations"]
  node_resume_parser["Resume extraction<br/>[resume_parser.py]"]
  node_llm_parser["LLM extraction"]
  node_resume_merge["Resume merge"]
end

subgraph group_matching["Matching engine"]
  node_matching_service["Hybrid matching"]
  node_semantic_service["Semantic scoring"]
  node_embedding_service["Embedding generation"]
  node_match_persistence["Match persistence"]
end

subgraph group_data["Persistence"]
  node_database[("Database session<br/>[database.py]")]
  node_candidate_model[("Candidate records<br/>[candidate.py]")]
  node_job_model[("Job records<br/>[job.py]")]
  node_match_model[("Match records")]
end

node_recruiter(("Recruiter"))
node_gemini["Google Gemini"]

node_recruiter -->|"uses"| node_app
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_candidate_ui
node_app -->|"routes to"| node_job_ui
node_dashboard -->|"requests data"| node_candidate_client
node_dashboard -->|"requests data"| node_job_client
node_candidate_ui -->|"manages candidates"| node_candidate_client
node_job_ui -->|"manages jobs"| node_job_client
node_candidate_client -->|"calls REST"| node_candidate_api
node_job_client -->|"calls REST"| node_job_api
node_candidate_api -->|"delegates"| node_candidate_service
node_candidate_api -->|"gets session"| node_database
node_candidate_api -->|"parses resume"| node_resume_parser
node_candidate_api -->|"extracts entities"| node_llm_parser
node_candidate_api -->|"merges results"| node_resume_merge
node_llm_parser -->|"requests extraction"| node_gemini
node_job_api -->|"gets session"| node_database
node_job_api -->|"requests matches"| node_matching_service
node_candidate_service -->|"reads and writes"| node_candidate_model
node_candidate_service -->|"generates vectors"| node_embedding_service
node_matching_service -->|"reads candidates"| node_candidate_model
node_matching_service -->|"uses job"| node_job_model
node_matching_service -->|"calculates semantics"| node_semantic_service
node_matching_service -->|"saves matches"| node_match_persistence
node_match_persistence -->|"writes matches"| node_match_model
node_embedding_service -.->|"optional integration"| node_gemini

click node_app "https://github.com/kumardhananjaya/talentiq-ai/blob/main/frontend/src/App.tsx"
click node_dashboard "https://github.com/kumardhananjaya/talentiq-ai/blob/main/frontend/src/pages/Dashboard.tsx"
click node_candidate_ui "https://github.com/kumardhananjaya/talentiq-ai/blob/main/frontend/src/pages/Candidates.tsx"
click node_job_ui "https://github.com/kumardhananjaya/talentiq-ai/blob/main/frontend/src/pages/Jobs.tsx"
click node_candidate_client "https://github.com/kumardhananjaya/talentiq-ai/blob/main/frontend/src/services/candidateService.ts"
click node_job_client "https://github.com/kumardhananjaya/talentiq-ai/blob/main/frontend/src/services/jobService.ts"
click node_candidate_api "https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/api/candidates.py"
click node_job_api "https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/api/jobs.py"
click node_candidate_service "https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/services/candidate_service.py"
click node_resume_parser "https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/services/resume_parser.py"
click node_llm_parser "https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/services/llm_resume_parser.py"
click node_resume_merge "https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/services/resume_merge_service.py"
click node_matching_service "https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/services/matching_service.py"
click node_semantic_service "https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/services/semantic_matching_service.py"
click node_embedding_service "https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/services/embedding_service.py"
click node_match_persistence "https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/services/match_persistence_service.py"
click node_database "https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/database/database.py"
click node_candidate_model "https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/models/candidate.py"
click node_job_model "https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/models/job.py"
click node_match_model "https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/models/candidate_job_match.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_app,node_dashboard,node_candidate_ui,node_job_ui,node_candidate_client,node_job_client toneBlue
class node_candidate_api,node_job_api toneAmber
class node_candidate_service,node_resume_parser,node_llm_parser,node_resume_merge toneMint
class node_matching_service,node_semantic_service,node_embedding_service,node_match_persistence toneRose
class node_database,node_candidate_model,node_job_model,node_match_model,node_recruiter,node_gemini toneIndigo
```

## Components

### Recruiter frontend

- [Application routes](https://github.com/kumardhananjaya/talentiq-ai/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Analytics dashboard](https://github.com/kumardhananjaya/talentiq-ai/blob/main/frontend/src/pages/Dashboard.tsx): `frontend/src/pages/Dashboard.tsx`
- [Candidate management](https://github.com/kumardhananjaya/talentiq-ai/blob/main/frontend/src/pages/Candidates.tsx): `frontend/src/pages/Candidates.tsx`
- [Jobs and matches](https://github.com/kumardhananjaya/talentiq-ai/blob/main/frontend/src/pages/Jobs.tsx): `frontend/src/pages/Jobs.tsx`
- [Candidate API client](https://github.com/kumardhananjaya/talentiq-ai/blob/main/frontend/src/services/candidateService.ts): `frontend/src/services/candidateService.ts`
- [Job API client](https://github.com/kumardhananjaya/talentiq-ai/blob/main/frontend/src/services/jobService.ts): `frontend/src/services/jobService.ts`

### Backend API

- [Candidate routes](https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/api/candidates.py): `backend/app/api/candidates.py`
- [Job routes](https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/api/jobs.py): `backend/app/api/jobs.py`

### Candidate services

- [Candidate operations](https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/services/candidate_service.py): `backend/app/services/candidate_service.py`
- [Resume extraction](https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/services/resume_parser.py): `backend/app/services/resume_parser.py`
- [LLM extraction](https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/services/llm_resume_parser.py): `backend/app/services/llm_resume_parser.py`
- [Resume merge](https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/services/resume_merge_service.py): `backend/app/services/resume_merge_service.py`

### Matching engine

- [Hybrid matching](https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/services/matching_service.py): `backend/app/services/matching_service.py`
- [Semantic scoring](https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/services/semantic_matching_service.py): `backend/app/services/semantic_matching_service.py`
- [Embedding generation](https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/services/embedding_service.py): `backend/app/services/embedding_service.py`
- [Match persistence](https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/services/match_persistence_service.py): `backend/app/services/match_persistence_service.py`

### Persistence

- [Database session](https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/database/database.py): `backend/app/database/database.py`
- [Candidate records](https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/models/candidate.py): `backend/app/models/candidate.py`
- [Job records](https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/models/job.py): `backend/app/models/job.py`
- [Match records](https://github.com/kumardhananjaya/talentiq-ai/blob/main/backend/app/models/candidate_job_match.py): `backend/app/models/candidate_job_match.py`

### Other components

- **Recruiter**
- **Google Gemini**

## Connections

- Recruiter → Application routes: uses (evidence: `README.md`)
- Application routes → Analytics dashboard: routes to (evidence: `frontend/src/App.tsx`)
- Application routes → Candidate management: routes to (evidence: `frontend/src/App.tsx`)
- Application routes → Jobs and matches: routes to (evidence: `frontend/src/App.tsx`)
- Analytics dashboard → Candidate API client: requests data (evidence: `frontend/src/pages/Dashboard.tsx`)
- Analytics dashboard → Job API client: requests data (evidence: `frontend/src/pages/Dashboard.tsx`)
- Candidate management → Candidate API client: manages candidates (evidence: `frontend/src/pages/Candidates.tsx`)
- Jobs and matches → Job API client: manages jobs (evidence: `frontend/src/pages/Jobs.tsx`)
- Candidate API client → Candidate routes: calls REST (evidence: `frontend/src/services/candidateService.ts`)
- Job API client → Job routes: calls REST (evidence: `frontend/src/services/jobService.ts`)
- Candidate routes → Candidate operations: delegates (evidence: `backend/app/api/candidates.py`)
- Candidate routes → Database session: gets session (evidence: `backend/app/api/candidates.py`)
- Candidate routes → Resume extraction: parses resume (evidence: `backend/app/api/candidates.py`)
- Candidate routes → LLM extraction: extracts entities (evidence: `backend/app/api/candidates.py`)
- Candidate routes → Resume merge: merges results (evidence: `backend/app/api/candidates.py`)
- LLM extraction → Google Gemini: requests extraction (evidence: `backend/app/services/llm_resume_parser.py`)
- Job routes → Database session: gets session (evidence: `backend/app/api/jobs.py`)
- Job routes → Hybrid matching: requests matches (evidence: `backend/app/api/jobs.py`)
- Candidate operations → Candidate records: reads and writes (evidence: `backend/app/services/candidate_service.py`)
- Candidate operations → Embedding generation: generates vectors (evidence: `backend/app/services/candidate_service.py`)
- Hybrid matching → Candidate records: reads candidates (evidence: `backend/app/services/matching_service.py`)
- Hybrid matching → Job records: uses job (evidence: `backend/app/services/matching_service.py`)
- Hybrid matching → Semantic scoring: calculates semantics (evidence: `backend/app/services/matching_service.py`)
- Hybrid matching → Match persistence: saves matches (evidence: `backend/app/services/matching_service.py`)
- Match persistence → Match records: writes matches (evidence: `backend/app/services/match_persistence_service.py`)
- Embedding generation → Google Gemini: optional integration
