# sanjayssnit/agentic-resume-screening architecture

> Architecture diagram of the GitHub repository sanjayssnit/agentic-resume-screening, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sanjayssnit/agentic-resume-screening
- Repository: https://github.com/sanjayssnit/agentic-resume-screening

## Overview

This is a PDF resume-screening application. A user uploads a resume in the Streamlit interface; the backend extracts its text, extracts details from that text and a bundled job description, evaluates the candidate, and returns screening feedback for display. The graph preserves the distinct parsing, resume extraction, job-description extraction, and evaluation stages, plus the prompt layer. The candidate-evaluation implementation and prompt contents were not sampled, so their internal calls are not shown; the backend’s orchestration is visible in app/main.py.

Main entry points: [`app/main.py`](https://github.com/sanjayssnit/agentic-resume-screening/blob/main/app/main.py) (Screening API), [`app/agents/resume_extractor_agent.py`](https://github.com/sanjayssnit/agentic-resume-screening/blob/main/app/agents/resume_extractor_agent.py) (Resume extractor), [`app/agents/jd_extractor_agent.py`](https://github.com/sanjayssnit/agentic-resume-screening/blob/main/app/agents/jd_extractor_agent.py) (Job description extractor), [`ui/app.py`](https://github.com/sanjayssnit/agentic-resume-screening/blob/main/ui/app.py) (Streamlit UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_streamlit["Streamlit UI<br/>[app.py]"]
end

subgraph group_backend["Screening workflow"]
  node_api["Screening API<br/>[main.py]"]
  node_pdf_parser["PDF text parser<br/>[parsepdf.py]"]
  node_job_description["Job description PDF"]
end

subgraph group_analysis["AI analysis"]
  node_resume_extractor["Resume extractor"]
  node_jd_extractor["Job description extractor"]
  node_candidate_evaluator["Candidate evaluator"]
  node_prompts["Analysis prompts<br/>[prompts.py]"]
end

node_user(("User"))
node_openai{{"OpenAI API"}}

node_user -->|"uploads PDF"| node_streamlit
node_streamlit -->|"submits resume"| node_api
node_api -->|"parses resume"| node_pdf_parser
node_api -->|"extracts details"| node_resume_extractor
node_api -->|"reads PDF"| node_job_description
node_api -->|"parses job PDF"| node_pdf_parser
node_api -->|"extracts requirements"| node_jd_extractor
node_api -->|"evaluates candidate"| node_candidate_evaluator
node_resume_extractor -->|"uses prompt"| node_prompts
node_jd_extractor -->|"uses prompt"| node_prompts
node_resume_extractor -->|"requests analysis"| node_openai
node_jd_extractor -->|"requests analysis"| node_openai
node_api -->|"returns screening result"| node_streamlit

click node_streamlit "https://github.com/sanjayssnit/agentic-resume-screening/blob/main/ui/app.py"
click node_api "https://github.com/sanjayssnit/agentic-resume-screening/blob/main/app/main.py"
click node_pdf_parser "https://github.com/sanjayssnit/agentic-resume-screening/blob/main/app/parsepdf.py"
click node_job_description "https://github.com/sanjayssnit/agentic-resume-screening/blob/main/resources/job_description.pdf"
click node_resume_extractor "https://github.com/sanjayssnit/agentic-resume-screening/blob/main/app/agents/resume_extractor_agent.py"
click node_jd_extractor "https://github.com/sanjayssnit/agentic-resume-screening/blob/main/app/agents/jd_extractor_agent.py"
click node_candidate_evaluator "https://github.com/sanjayssnit/agentic-resume-screening/blob/main/app/agents/candidate_evaluation_agent.py"
click node_prompts "https://github.com/sanjayssnit/agentic-resume-screening/blob/main/app/prompts.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_streamlit,node_user toneBlue
class node_api,node_pdf_parser,node_job_description toneAmber
class node_resume_extractor,node_jd_extractor,node_candidate_evaluator,node_prompts,node_openai toneMint
```

## Components

### User interface

- [Streamlit UI](https://github.com/sanjayssnit/agentic-resume-screening/blob/main/ui/app.py): `ui/app.py`

### Screening workflow

- [Screening API](https://github.com/sanjayssnit/agentic-resume-screening/blob/main/app/main.py): `app/main.py`
- [PDF text parser](https://github.com/sanjayssnit/agentic-resume-screening/blob/main/app/parsepdf.py): `app/parsepdf.py`
- [Job description PDF](https://github.com/sanjayssnit/agentic-resume-screening/blob/main/resources/job_description.pdf): `resources/job_description.pdf`

### AI analysis

- [Resume extractor](https://github.com/sanjayssnit/agentic-resume-screening/blob/main/app/agents/resume_extractor_agent.py): `app/agents/resume_extractor_agent.py`
- [Job description extractor](https://github.com/sanjayssnit/agentic-resume-screening/blob/main/app/agents/jd_extractor_agent.py): `app/agents/jd_extractor_agent.py`
- [Candidate evaluator](https://github.com/sanjayssnit/agentic-resume-screening/blob/main/app/agents/candidate_evaluation_agent.py): `app/agents/candidate_evaluation_agent.py`
- [Analysis prompts](https://github.com/sanjayssnit/agentic-resume-screening/blob/main/app/prompts.py): `app/prompts.py`

### Other components

- **User**
- **OpenAI API**

## Connections

- User → Streamlit UI: uploads PDF (evidence: `ui/app.py`)
- Streamlit UI → Screening API: submits resume (evidence: `ui/app.py`)
- Screening API → PDF text parser: parses resume (evidence: `app/main.py`)
- Screening API → Resume extractor: extracts details (evidence: `app/main.py`)
- Screening API → Job description PDF: reads PDF (evidence: `app/main.py`)
- Screening API → PDF text parser: parses job PDF (evidence: `app/main.py`)
- Screening API → Job description extractor: extracts requirements (evidence: `app/main.py`)
- Screening API → Candidate evaluator: evaluates candidate (evidence: `app/main.py`)
- Resume extractor → Analysis prompts: uses prompt (evidence: `app/agents/resume_extractor_agent.py`)
- Job description extractor → Analysis prompts: uses prompt (evidence: `app/agents/jd_extractor_agent.py`)
- Resume extractor → OpenAI API: requests analysis (evidence: `app/agents/resume_extractor_agent.py`)
- Job description extractor → OpenAI API: requests analysis (evidence: `app/agents/jd_extractor_agent.py`)
- Screening API → Streamlit UI: returns screening result (evidence: `ui/app.py`)
