interviewstreet / hiring-agent
- четверг, 25 июня 2026 г. в 00:00:02
AI agent to evaluate and score resumes.
Resume-to-Score pipeline that extracts structured data from PDFs, enriches with GitHub signals, and outputs a fair, explainable evaluation.
Hiring Agent parses a resume PDF to Markdown, extracts sectioned JSON using a local or hosted LLM, augments the data with GitHub profile and repository signals, then produces an objective evaluation with category scores, evidence, bonus points, and deductions. You can run fully local with Ollama or use Google Gemini.
|
Flow
|
Key modules
|
Python 3.11+
The repository pins .python-version to 3.11.13.
One LLM backend (either of them)
ollama serve.$ git clone https://github.com/interviewstreet/hiring-agent
$ cd hiring-agent
$ python -m venv .venv
# Linux or macOS
$ source .venv/bin/activate
# Windows
# .venv\Scripts\activate
$ pip install -r requirements.txtPull the model you want to use. For example:
$ ollama pull gemma3:4bIf you want different results, you can pull other models such as:
# For higher system configuration
$ ollama pull gemma3:12b
# For lower system configuration
$ ollama pull gemma3:1bCopy the template and set your environment variables.
$ cp .env.example .envEnvironment variables
| Variable | Values | Description |
|---|---|---|
LLM_PROVIDER |
ollama or gemini |
Chooses provider. Defaults to Ollama. |
DEFAULT_MODEL |
for example gemma3:4b or gemini-2.5-pro |
Model name passed to the provider. |
GEMINI_API_KEY |
string | Required when LLM_PROVIDER=gemini. |
GITHUB_TOKEN |
optional | Inherits from your shell environment, improves GitHub API rate limits. |
Provider mapping lives in prompt.py and models.py. The config.py file has a single flag:
# config.py
DEVELOPMENT_MODE = True # enables caching and CSV exportYou can leave it on during iteration. See the next section for details.
pymupdf_rag.py and pdf.py read the PDF using PyMuPDF and convert pages to Markdown-like text.to_markdown routine handles headings, links, tables, and basic formatting.prompts/templates/*.jinja define strict instructions for each section
Basics, Work, Education, Skills, Projects, Awards.pdf.PDFHandler calls the LLM per section and assembles a JSONResume object (see models.py).github.py extracts a username from the resume profiles, fetches profile and repos, and classifies each project.evaluator.py uses templates that encode fairness and scoring rules.open_source, self_projects, production, and technical_skills, plus bonus and deductions, then an explanation for evidence.score.py prints a readable summary to stdout.DEVELOPMENT_MODE=True it creates or appends a resume_evaluations.csv with key fields, and caches intermediate JSON under cache/.Provide a path to a resume PDF.
$ python score.py /path/to/resume.pdfWhat happens:
cache/resumecache_<basename>.json.cache/githubcache_<basename>.json.resume_evaluations.csv..
├── .env.example
├── .python-version
├── config.py
├── evaluator.py
├── github.py
├── llm_utils.py
├── models.py
├── pdf.py
├── prompt.py
├── prompts/
│ ├── template_manager.py
│ └── templates/
│ ├── awards.jinja
│ ├── basics.jinja
│ ├── education.jinja
│ ├── github_project_selection.jinja
│ ├── projects.jinja
│ ├── resume_evaluation_criteria.jinja
│ ├── resume_evaluation_system_message.jinja
│ ├── skills.jinja
│ ├── system_message.jinja
│ └── work.jinja
├── pymupdf_rag.py
├── requirements.txt
├── score.py
└── transform.py
LLM_PROVIDER=ollamaDEFAULT_MODEL to any pulled model, for example gemma3:4bmodels.OllamaProvider calls ollama.chatLLM_PROVIDER=geminiDEFAULT_MODEL to a supported Gemini model, for example gemini-2.0-flashGEMINI_API_KEYmodels.GeminiProvider adapts responses to a unified formatPlease read the CONTRIBUTING.md for detailed guidelines on filing issues, proposing changes, and submitting pull requests. Key principles include:
MIT © HackerRank