π€ AI Resume Screening Agent Explainable NLP-powered candidate screening and ranking system built for automated resume analysis.
An end-to-end AI Resume Screening Agent that evaluates multiple resumes against a given Job Description (JD) using a transparent hybrid scoring approach.
The system combines TF-IDF NLP similarity, technical skill matching, experience relevance, and education signals to rank candidates and provide explainable screening recommendations.
π Project Overview Recruiters often need to evaluate a large number of resumes against a single Job Description. Manually comparing candidates can be time-consuming and inconsistent.
This project provides a lightweight and explainable solution that can:
π Parse resumes from TXT, PDF, and DOCX formats π Analyze resumes against a Job Description π§ Calculate TF-IDF cosine similarity π οΈ Detect and compare relevant technical skills πΌ Evaluate experience relevance π Identify education signals π Generate an overall candidate score π Rank candidates automatically π‘ Provide transparent reasoning for each recommendation π Export results to CSV and JSON π Provide an interactive Streamlit web interface β‘ Process 10+ resumes in a single run π― Key Features Feature Description π Multi-format Resume Parsing Supports TXT, PDF and DOCX resumes π NLP Similarity Uses TF-IDF + cosine similarity π οΈ Skill Matching Identifies matched and missing skills πΌ Experience Analysis Extracts years of experience using lightweight heuristics π Education Analysis Detects relevant degree and education signals π Candidate Ranking Sorts candidates using a weighted scoring model π‘ Explainable Results Provides reasoning behind candidate scores π Structured Outputs Generates CSV and JSON reports π Streamlit UI Interactive browser-based screening interface π» CLI Support Run the screening pipeline directly from the terminal π API-Key Independent Core screening pipeline does not require an external LLM API π§ System Architecture The screening pipeline follows:
βββββββββββββββββββββββ
β Job Description β
ββββββββββββ¬βββββββββββ
β
βΌ
βββββββββββββββββββββββ
β Resume Collection β
β TXT / PDF / DOCX β
ββββββββββββ¬βββββββββββ
β
βΌ
βββββββββββββββββββββββ
β Text Extraction β
ββββββββββββ¬βββββββββββ
β
βΌ
βββββββββββββββββββββββ
β Feature Extraction β
β β
β β’ Skills β
β β’ Experience β
β β’ Education β
ββββββββββββ¬βββββββββββ
β
βΌ
βββββββββββββββββββββββ
β NLP Scoring β
β TF-IDF + Cosine β
β Similarity β
ββββββββββββ¬βββββββββββ
β
βΌ
βββββββββββββββββββββββ
β Hybrid Score Engine β
β β
β 55% NLP Similarity β
β 30% Skill Match β
β 10% Experience β
β 5% Education β
ββββββββββββ¬βββββββββββ
β
βΌ
βββββββββββββββββββββββ
β Candidate Ranking β
ββββββββββββ¬βββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββ
β CSV / JSON / Streamlit UI β
βββββββββββββββββββββββββββββββ
βοΈ Scoring Methodology
The project uses a hybrid and explainable scoring framework.
π Final Score Final Score = 55% Γ TF-IDF Semantic Similarity + 30% Γ Skill Match + 10% Γ Experience Relevance + 5% Γ Education Relevance
The final score is normalized to a 0β100 scale.
πΉ 1. TF-IDF Similarity β 55%
The system converts the Job Description and resumes into TF-IDF vectors and calculates cosine similarity.
This provides an NLP-based measure of textual relevance between the candidateβs resume and the job requirements.
πΉ 2. Skill Match β 30%
The system identifies skills from a predefined skill vocabulary and compares:
Job Description Skills β Candidate Skills β Matched Skills + Missing Skills
This makes technical compatibility explicit.
πΉ 3. Experience Relevance β 10%
Experience information is extracted using lightweight regular-expression heuristics.
For the current Junior/Fresher use case:
0β2 years β 100% 3 years β 80% 4β5 years β 55% 5+ years β 30% πΉ 4. Education Relevance β 5%
The system detects relevant degree and education terminology such as:
BTech / B.Tech BE / B.E BSc / B.Sc BCA Computer Science Data Science Information Technology Statistics Mathematics π·οΈ Candidate Recommendations
Candidates are classified according to their final score:
75+ β Strong Shortlist 60β74.99 β Shortlist 45β59.99 β Review Below 45 β Low Match
These thresholds are configurable in app.py.
π Project Structure ai-resume-screening-agent/ β βββ π app.py βββ π README.md βββ π requirements.txt βββ π .env.example βββ π job_description.txt β βββ π sample_data/ β βββ π resumes/ β βββ candidate_01.txt β βββ candidate_02.txt β βββ candidate_03.txt β βββ β¦ β βββ candidate_12.txt β βββ π outputs/ βββ ranked_candidates.csv βββ ranked_candidates.json βββ sample_run_summary.json π οΈ Technology Stack Programming & Frameworks π Python π Streamlit Machine Learning / NLP π€ Scikit-learn π TF-IDF Vectorization π Cosine Similarity π€ Regex-based information extraction Document Processing π PyPDF π python-docx Data & Output π CSV ποΈ JSON π» Installation 1οΈβ£ Clone the repository git clone https://github.com/YOUR_USERNAME/ai-resume-screening-agent.git cd ai-resume-screening-agent 2οΈβ£ Create a virtual environment Windows python -m venv .venv .venv\Scripts\activate macOS / Linux python3 -m venv .venv source .venv/bin/activate 3οΈβ£ Install dependencies pip install -r requirements.txt βΆοΈ Running the Project π» CLI Mode
Run the screening pipeline using:
python app.py βjd job_description.txt βresumes sample_data/resumes βtop 10
Example output:
=== Resume Screening Agent ===
Processed: 12 resumes JD: job_description.txt
1 | candidate_04 | 52.77 | Review 2 | candidate_02 | 50.77 | Review 3 | candidate_01 | 50.46 | Review 4 | candidate_12 | 50.16 | Review 5 | candidate_08 | 49.43 | Review
Generated files:
outputs/ranked_candidates.csv outputs/ranked_candidates.json π Streamlit Web Application
Launch the interactive UI with:
streamlit run app.py
Then open:
http://localhost:8501 Streamlit Workflow
The interface provides:
π Job Description input π€ Resume upload π Candidate ranking π Score breakdown π οΈ Matched skills β οΈ Missing skills π‘ Candidate reasoning β¬οΈ CSV download β¬οΈ JSON download π Output Schema
The generated candidate results contain:
rank candidate final_score semantic_similarity skill_match experience_score education_score matched_skills missing_skills recommendation reasoning
Example:
{ βcandidateβ: βcandidate_04β, βfinal_scoreβ: 52.77, βsemantic_similarityβ: 27.63, βskill_matchβ: 78.57, βexperience_scoreβ: 100.0, βeducation_scoreβ: 80.0, βrecommendationβ: βReviewβ, βrankβ: 1 } π§ͺ Sample Dataset
The repository includes 12 synthetic/sample resumes for demonstration and evaluation.
The sample dataset allows the complete screening workflow to be tested without requiring external candidate data.
Example:
python app.py
βjd job_description.txt
βresumes sample_data/resumes
βtop 10
π Explainability
A key design goal of this project is transparent candidate evaluation.
Instead of producing only a single score, the system exposes the underlying signals:
Final Score β βββ TF-IDF Similarity βββ Skill Match βββ Experience Score βββ Education Score
For each candidate, the system also reports:
β Matched skills β Missing skills π Similarity percentage πΌ Estimated experience π Education signal π‘ Screening reasoning
This makes the system easier to inspect and debug than a completely black-box ranking approach.
π― Design Philosophy
The project intentionally uses a lightweight, reproducible, and explainable NLP approach rather than requiring a large language model for the core screening pipeline.
Why TF-IDF? β‘ Fast π» Runs locally π No external API dependency π° No inference cost π Easy to interpret β»οΈ Reproducible Why Hybrid Scoring?
Text similarity alone may not accurately represent candidate suitability.
Therefore, the system combines:
NLP Relevance + Technical Skills + Experience + Education = Candidate Ranking β οΈ Limitations
This project is designed as a research/portfolio prototype and has several limitations:
TF-IDF is less semantically powerful than transformer-based embeddings. Skill extraction currently uses a predefined dictionary. Unusual or synonymous skill descriptions may not be detected. Experience extraction uses lightweight regex heuristics. Scanned image-only PDFs require OCR and are not currently handled. Education detection is keyword-based. The system should support human recruiting decisions rather than replace human judgment. The current implementation does not perform formal fairness or bias auditing. π Future Improvements
Planned research and engineering improvements include:
π§ Advanced NLP Sentence-BERT / transformer embeddings Semantic search Context-aware skill extraction Resume-to-JD embedding similarity π€ LLM Integration Evidence-grounded candidate summaries Structured interview-question generation Explainable candidate comparisons Strict source-grounded reasoning π Document Intelligence OCR for scanned resumes Improved PDF parsing Section-aware resume extraction Entity extraction for education and experience π Analytics Candidate score distributions Skill-gap visualization Candidate comparison dashboard Hiring pipeline analytics βοΈ Responsible AI Fairness auditing Bias detection Explainability evaluation Human-in-the-loop review workflows π§ͺ Engineering Unit testing Integration testing CI/CD with GitHub Actions Improved configuration management Production deployment π Environment Variables
The current core pipeline does not require an external API key.
An .env.example file is included for potential future LLM integration:
OPENAI_API_KEY=
No API key is required for the current TF-IDF-based screening workflow.
π Use Cases
This prototype can be extended for:
π¨βπΌ Recruitment screening π§βπ» Technical hiring π Campus recruitment π Resume shortlisting π’ HR automation π Candidate-job matching π Recruitment analytics π§ͺ NLP/AI research experiments βοΈ Responsible AI Notice
Resume screening can influence employment decisions.
This project is intended as a decision-support and research prototype, not as an autonomous hiring system.
Human recruiters should review candidate profiles, verify qualifications, and consider factors beyond automated scores.
Automated ranking should not be treated as a definitive measure of a candidateβs ability or suitability.
π Project Status Status: π’ Working Prototype
β CLI screening pipeline β Streamlit web interface β TXT/PDF/DOCX parsing β TF-IDF similarity β Skill matching β Experience scoring β Education scoring β Candidate ranking β Explainable reasoning β CSV output β JSON output β 10+ resume batch processing π Challenge Alignment
This project follows an end-to-end AI-agent-style workflow:
INPUT β Job Description + Resumes β RETRIEVE / PARSE β Resume Text Extraction β THINK / SCORE β NLP Similarity + Skills + Experience + Education β RANK β Candidate Shortlist β OUTPUT β CSV + JSON + Streamlit Dashboard
The implementation prioritizes reproducibility, transparency, and local execution.
π¨βπ» Author
Your Name
| AI / Machine Learning Researcher | Python | NLP | Generative AI |
π GitHub: https://github.com/YOUR_USERNAME
β Support the Project
If you find this project useful:
β Star the repository π΄ Fork the project π Open an issue π‘ Suggest improvements π€ Contribute to the project
π License
Add an appropriate open-source license before public release.
For example:
MIT License π Keywords
AI Artificial Intelligence Machine Learning NLP Natural Language Processing Resume Screening Candidate Ranking Recruitment Automation HR Tech TF-IDF Scikit-Learn Python Streamlit Explainable AI Talent Acquisition Job Matching Resume Parser AI Agent
One correction before you publish: your current ZIP contains __pycache__/app.cpython-313.pyc, so make sure that is excluded with .gitignore. Also, your README currently says the Streamlit command is streamlit run app.py -- --ui, but your actual app.py only enters the Streamlit UI when --ui is passed; the command you successfully used in your screenshot was streamlit run app.py, which Streamlit runs correctly because it executes the script in its Streamlit context. For the GitHub README, I therefore recommend the simpler command shown above.