ai-resume-screening-agent

AI Resume Screening Agent

An explainable AI-powered resume screening agent that evaluates and ranks multiple candidates against a given Job Description (JD). The system parses resumes, extracts relevant information, calculates a hybrid relevance score, ranks candidates, and provides reasoning for each recommendation.

1. Project Overview

Recruiters often need to review a large number of resumes for a single job opening. Manually comparing resumes against a Job Description can be time-consuming and inconsistent.

The AI Resume Screening Agent automates the initial screening process by:

The project is designed as a lightweight, reproducible screening system that supports human decision-making rather than replacing human recruitment decisions.


2. Agent Objective

The agent takes a Job Description and a collection of resumes and produces a ranked shortlist of candidates with scores, matched skills, missing skills, recommendations, and reasoning.


3. Expected Capabilities

The implementation addresses the capabilities specified for the Resume Screening Agent:

  1. Parse resumes in PDF, DOCX, and text formats.
  2. Extract relevant skills, experience, and education information.
  3. Calculate relevance against a Job Description using NLP similarity.
  4. Rank candidates according to their calculated scores.
  5. Produce an ordered and scored candidate list.
  6. Provide reasoning for candidate recommendations.
  7. Process 10 or more resumes in a single run.

4. Core Features

Resume Parsing

The system supports:

The extracted text is normalized before being processed by the screening pipeline.

Skill Matching

The system identifies relevant technical and professional skills from the Job Description and candidate resumes.

It calculates the proportion of matching skills between the Job Description and each resume.

NLP Similarity

TF-IDF vectorization is used to represent the Job Description and resumes as numerical vectors.

Cosine similarity is then calculated to determine how closely each resume matches the Job Description.

Experience Analysis

The system uses lightweight extraction logic to identify years of professional experience and compare the candidate’s experience with the requirements.

Education Analysis

Relevant education and degree information is detected and incorporated into the overall candidate score.

Candidate Ranking

Candidates are sorted by their final score from highest to lowest.

Explainable Results

Each candidate result includes:

Batch Processing

The system can process 10 or more resumes in a single run.


5. System Architecture

```text Job Description | v Resume Collection | v Resume File Parser | +————-+————-+ | | | v v v Skills Experience Education | | | +————-+————-+ | v TF-IDF Vectorization | v Cosine Similarity | v Hybrid Score Engine | v Candidate Ranking | +———-+———-+ | | v v Ranked CSV Output Ranked JSON Output | v Streamlit UI

  1. Scoring Methodology

The candidate’s final score is calculated using a weighted hybrid scoring model:

Final Score = 55% TF-IDF Semantic Similarity

TF-IDF is used to represent the Job Description and resume text numerically.

Cosine similarity measures the textual relevance between the two documents.

This component receives the highest weight because overall alignment with the Job Description is the primary screening signal.

6.2 Skill Match — 30%

The system compares skills identified in the Job Description with skills found in each resume.

A higher percentage of matching skills results in a higher skill-match score.

6.3 Experience Relevance — 10%

The system evaluates experience-related information extracted from the resume and compares it with the Job Description requirements.

6.4 Education Relevance — 5%

Relevant education and degree information contributes to the final score.

  1. Recommendation Thresholds

The final score is mapped to a recommendation category:

Score Recommendation 75 and above Strong Shortlist 60–74.99 Shortlist 45–59.99 Review Below 45 Low Match

These thresholds are intended to assist recruiters with initial screening and should not be treated as automatic hiring decisions.

  1. Technology Stack Programming Language Python NLP and Machine Learning Scikit-learn TF-IDF Vectorization Cosine Similarity Document Processing PyPDF python-docx User Interface Streamlit Data Formats TXT PDF DOCX CSV JSON
  2. Project Structure ai-resume-screening-agent/ │ ├── README.md ├── app.py ├── requirements.txt ├── job_description.txt │ ├── sample_data/ │ └── resumes/ │ ├── candidate_01.txt │ ├── candidate_02.txt │ ├── candidate_03.txt │ ├── candidate_04.txt │ ├── candidate_05.txt │ ├── candidate_06.txt │ ├── candidate_07.txt │ ├── candidate_08.txt │ ├── candidate_09.txt │ ├── candidate_10.txt │ ├── candidate_11.txt │ └── candidate_12.txt │ └── outputs/ ├── ranked_candidates.csv └── ranked_candidates.json
  3. Prerequisites

Before running the project, install:

Python 3.10 or later pip Git

Verify Python:

python –version

Verify pip:

pip –version

  1. Installation

Clone the repository:

git clone https://github.com/YOUR_USERNAME/ai-resume-screening-agent.git

Move into the project directory:

cd ai-resume-screening-agent

Create a virtual environment:

python -m venv .venv Windows .venv\Scripts\activate macOS/Linux source .venv/bin/activate

Install dependencies:

pip install -r requirements.txt

  1. Running the Agent

The project can be executed from the command line using the included Job Description and sample resumes.

python app.py –jd job_description.txt –resumes sample_data/resumes –top 10

The agent will:

Load the Job Description. Discover the resume files. Parse supported resume formats. Extract relevant candidate information. Calculate NLP similarity. Calculate skill, experience, and education scores. Calculate the final candidate score. Rank candidates. Generate recommendations and reasoning. Save the results.

  1. Sample Dataset

The repository includes 12 sample resumes:

sample_data/resumes/

The sample dataset allows the complete screening workflow to be reproduced without requiring external candidate data.

The agent processes the resumes together and generates a ranked candidate list.

  1. Output Files

The screening results are available in:

outputs/ CSV Output outputs/ranked_candidates.csv

The CSV contains the ranked screening results in a tabular format.

JSON Output outputs/ranked_candidates.json

The JSON file provides a structured representation of the screening results.

Candidate results include information such as:

Rank Candidate Final Score Semantic Similarity Skill Match Experience Score Education Score Matched Skills Missing Skills Recommendation Reasoning

  1. Running the Streamlit Interface

The project also provides a Streamlit interface for interactive screening.

Run:

streamlit run app.py

After starting the application, open the local Streamlit URL displayed in the terminal.

The interface allows users to:

Provide a Job Description. Upload resumes. Process multiple resumes. Screen candidates. View candidate rankings. Review scores. Inspect matched and missing skills. Review candidate recommendations and reasoning. Download screening results.

  1. Sample Workflow Input Job Description | v Upload / Load Resumes | v Parse Resume Content | v Extract Candidate Information | v Calculate NLP Similarity | v Calculate Skill Match | v Evaluate Experience | v Evaluate Education | v Calculate Final Score | v Rank Candidates | v Generate Explanation | v Export CSV / JSON
  2. Design Decisions Why TF-IDF?

TF-IDF was selected as the primary NLP similarity technique because it provides:

Lightweight implementation Deterministic results Fast execution Easy reproducibility Transparent similarity calculations No model training requirement No dependency on an external LLM API for the core screening pipeline

It is appropriate for a lightweight resume-screening baseline and makes the scoring process easier to inspect and explain.

Why Hybrid Scoring?

Using only text similarity can overlook important structured information such as skills and experience.

The hybrid scoring model combines:

Textual relevance Skill alignment Experience relevance Education relevance

This provides a broader screening signal than relying on a single similarity metric.

Why Rule-Based Skill Matching?

Skill matching is intentionally transparent. The system can identify which skills matched and which skills were missing, making the result easier to review.

Why Lightweight Extraction?

Experience and education extraction use straightforward extraction logic rather than requiring a large NLP model. This keeps the project lightweight, reproducible, and easy to execute.

  1. Tradeoffs TF-IDF vs. Transformer Embeddings

TF-IDF is computationally lightweight and easy to interpret, but it does not understand deeper semantic relationships between words.

Transformer-based embeddings could provide stronger semantic matching but would introduce additional model dependencies and computational requirements.

Rule-Based Skill Matching vs. Advanced Entity Extraction

Rule-based matching is transparent and predictable, but its effectiveness depends on the available skill vocabulary.

A more advanced implementation could use Named Entity Recognition or embedding-based skill extraction.

Lightweight Experience Extraction vs. Advanced NLP

Regex-based extraction is simple and deterministic but may not correctly interpret every resume format or complex experience statement.

A future version could use a dedicated information-extraction model.

  1. Limitations

The current implementation has several limitations:

TF-IDF does not capture deep semantic relationships. Skill matching depends on the defined skill vocabulary. Experience extraction uses lightweight extraction logic. Education extraction may not cover every possible resume format. Scanned image-only PDFs may require OCR. Resume formatting can affect extraction quality. The scoring model should be treated as a screening aid rather than a final hiring decision.

  1. Future Improvements

Potential improvements include:

Sentence-BERT or other embedding-based semantic similarity Advanced skill/entity extraction OCR support for scanned resumes More robust experience extraction Improved education classification Fairness and bias evaluation Automated unit and integration tests CI/CD integration More diverse resume datasets Human-review feedback integration Evidence-based explanation generation

  1. Reproducibility

The repository contains the Job Description, sample resumes, dependencies, and sample outputs required to reproduce the screening workflow.

A fresh environment can run the project using:

git clone https://github.com/YOUR_USERNAME/ai-resume-screening-agent.git cd ai-resume-screening-agent python -m venv .venv

Activate the environment and install dependencies:

pip install -r requirements.txt

Run the sample screening:

python app.py –jd job_description.txt –resumes sample_data/resumes –top 10

This processes the included sample resumes and produces ranked screening results.

  1. Agent-Specific Deliverables

This repository includes the deliverables required for the Resume Screening Agent.

Job Description job_description.txt Sample Resumes sample_data/resumes/

The repository contains 12 sample resumes for batch screening.

Ranked Output outputs/ranked_candidates.csv outputs/ranked_candidates.json Scoring Method

The scoring methodology and weighting strategy are documented in this README under the “Scoring Methodology” section.

  1. Challenge Compliance

The project is designed to satisfy the expected capabilities of the Resume Screening Agent:

Requirement Implementation Parse PDF/DOCX/Text resumes Supported Extract skills Supported Extract experience Supported Extract education Supported NLP similarity against JD TF-IDF + Cosine Similarity Rank candidates Supported Scored output CSV and JSON Reasoning Candidate-level reasoning Process 10+ resumes 12 sample resumes included Job Description Included Sample resume folder Included Scoring explanation Documented

  1. Responsible Use

This system is intended to support initial resume screening and candidate prioritization.

The generated score should not be used as the sole basis for employment decisions. Recruiters should review candidate qualifications, context, and application materials before making hiring decisions.

  1. License

This project is provided for educational, demonstration, and portfolio purposes.