Project
RoleMatch
Overview

Rank job postings by how well a résumé documents each requirement, with the résumé line behind every match.
RoleMatch turns a résumé (PDF, DOCX or pasted text) into an editable profile where every item links to its exact source span. It ingests postings from the public Greenhouse and Lever boards of companies you follow, extracts required and preferred qualifications, and ranks openings with PostgreSQL full-text search plus pgvector similarity before reranking by evidence. Each requirement is shown as supported, partly supported, not shown or unclear, with the résumé excerpt. A tracker keeps stage history, the résumé version sent and deadlines.
All six planned stages are built and tested locally. Live Greenhouse and Lever calls and the Docker image build haven't been verified yet.
Problem
Job-matching tools usually give one opaque score. RoleMatch shows the reasoning instead: which requirements a résumé actually documents, which it doesn't, and what the posting leaves unclear. It never predicts interview or offer odds.
Role
Sole engineer
Stack
- API
- Python 3.13FastAPI
- Data
- PostgreSQL 16Full-text searchpgvector (HNSW)Alembic
- Jobs
- CeleryCelery beatRedis
- ML
- all-MiniLM-L6-v2 embeddings
- Frontend
- Next.js 16TypeScriptTailwind
- Quality & ops
- pytestPlaywrightDocker Compose
Architecture
A modular monolith. The frontend proxies the API so sessions stay in first-party cookies.
Next.js
Feed, evidence view, résumé review, tracker and sources; proxies /api to the backend.
FastAPI routers
Auth, résumés, preferences, jobs, sources, applications, tailoring and account deletion.
Résumé service
Sandboxed extraction with character offsets, so every profile item points back to its source.
Job ingestion
Greenhouse, Lever and manual-entry adapters, normalization, deduplication and Celery tasks.
Matching engine
Requirement extraction, eligibility checks, full-text + vector retrieval, evidence reranking, explanations.
PostgreSQL
Profiles, postings, qualifications, embeddings (HNSW cosine), applications and history.
Engineering
Engineering decisions
Hybrid retrieval, then evidence reranking
Full-text search catches exact skill names, vectors catch paraphrases, and reranking by documented evidence decides the final order.
Idempotent upserts keyed by source job ID
Re-running ingestion never duplicates a posting.
Outage-safe closing
A job is closed only after two consecutive complete listings omit it, so a failed or partial fetch never closes live jobs.
Server-side sessions
Argon2id passwords, an httpOnly SameSite cookie plus a CSRF header, and ownership checks that return 404 for other users' records.
Untrusted files parsed in a sandbox
Uploads are checked by magic bytes and parsed in a resource-limited subprocess.
Challenges & solutions
Not overstating experience
Projects and education never count as employment, overlapping jobs are counted once, and year-only dates become ranges.
Suggesting wording without inventing claims
The tailoring assistant only rewords verified profile items, and its claim checker rejects any text that adds a skill, number or name.
Rate limits and unreliable sources
Per-host rate limiting, timeouts and bounded retries with backoff that honors Retry-After.
Results & roadmap
Results & outcomes
Synthetic sanity checks, not evidence about hiring outcomes. Live job-board calls were not exercised; the adapters are tested against fixtures that follow the documented API shapes.
Ranking quality on the held-out split (nDCG@10)
0.96 vs 0.84
Source: RoleMatch vs keyword matching (0.79 for vector similarity alone). 5 synthetic personas × 36 fictional postings, labels written by me (eval/README.md).
Evidence links failing the provenance audit
0 of 716
Required-qualification extraction F1 (held-out)
0.952
Source: Hand-labeled extraction set in the repository.
Backend tests
125 passed
Source: Plus a Playwright flow: upload → review → rank → evidence → apply → assessment deadline.
Roadmap
- Résumé profile · Extraction with source spans, corrections logDone
- Job ingestion · Greenhouse, Lever, manual entry, fixtures, dedupDone
- Matching · Eligibility, hybrid retrieval, evidence rerankingDone
- Tracker · Stage history, deadlines, reminders, calendar exportDone
- Tailoring · Evidence-grounded wording with a claim checkerDone
- Live source verification · Run the live smoke test against real boardsPlanned
- Docker build verificationPlanned