An end-to-end Streamlit application that helps HR teams upload multiple candidate resumes, match them against a job description using TF-IDF / cosine similarity, score and rank candidates across five weighted categories, and chat with an AI HR assistant (Groq + Llama 3.1 8B Instant) about the results.







scikit-learn, no FAISS / PyTorch / GPU required).llama-3.1-8b-instant) with quick-question
buttons and free-form natural language chat, grounded in the current
ranking results.resume_screening/
├── app.py # Main Streamlit application (UI + page routing)
├── theme.py # Centralised CSS theme, header/footer helpers
├── resume_parser.py # PDF text extraction & information parsing
├── ranking_engine.py # Weighted scoring & ranking algorithms
├── vector_store.py # Lightweight TF-IDF vector store
├── chatbot.py # Groq API integration (HR assistant)
├── cv_generator.py # Sample CV generator (10 candidate profiles)
├── sample_cvs/ # 10 pre-generated sample candidate PDFs
├── assets/ # Favicon / logo assets
├── .streamlit/config.toml # Streamlit theme & server config
├── requirements.txt
├── .env.example
└── README.md
Clone or download this repository, then open it in VS Code.
Create a virtual environment (recommended):
python -m venv venv
# Windows
venv\Scripts\activate
# macOS / Linux
source venv/bin/activate
Install dependencies:
pip install -r requirements.txt
Configure your Groq API key:
cp .env.example .env # Windows: copy .env.example .env
Open .env and paste your key:
GROQ_API_KEY=gsk_your_real_key_here
You can also paste the key directly into the app’s “Groq API Key”
field on the input page for a single session, without editing .env.
Run the app:
streamlit run app.py
The app opens at http://localhost:8501.
| Category | Weight | Method |
|---|---|---|
| Skills | 35% | Matched skills / required skills mentioned in the job description |
| Experience | 30% | Detected years of experience vs. years required in the JD |
| Education | 15% | Highest qualification detected (PhD > Masters > Bachelors > …) |
| Certifications | 10% | Number of certifications + relevance to the job description |
| Projects | 10% | TF-IDF cosine similarity between project text and job description |
Overall Score = 0.35*Skills + 0.30*Experience + 0.15*Education + 0.10*Certifications + 0.10*Projects
Color bands: Green >= 80%, Yellow 60-79%, Red < 60%.
sample_cvs/ ships with 10 pre-generated candidate PDFs spanning AI/ML
Engineer, Full Stack Developer, Data Scientist, DevOps Engineer, NLP
Research Engineer, Backend/Frontend Developer, Cloud Architect, Computer
Vision Engineer and a Junior Developer - deliberately varied so ranking
against the default “Senior AI/ML Engineer” job description produces a
realistic spread across all three score bands.
Regenerate them any time with:
python cv_generator.py
pip install -r requirements.txt
inside your activated virtual environment.GROQ_API_KEY in
.env, or re-enter it on the input page.streamlit run app.py --server.port 8502.Python 3.13 · Streamlit · PyPDF2 · scikit-learn (TF-IDF, cosine similarity) · Pandas / NumPy · Plotly · Groq API (Llama 3.1 8B Instant) · ReportLab (sample CV generation) · python-dotenv
No PyTorch, no FAISS, no GPU required - runs on any Windows, macOS or Linux machine.
Hafiz Muhammad Faizan
⭐ If you found this project helpful, consider giving it a star!