Skip to content
ZX
← Notes

Building a resume–job matching workbench with LangGraph

Notes on orchestrating context preparation, scoring, validation and storage in a FastAPI and Vue 3 application.

Updated

Matching a resume to a job description looks simple on the surface. In practice, there are several steps that need to be controlled separately: preparing the source material, producing a structured assessment, checking that the output is usable, and storing results for later analysis.

The workflow

The workbench uses an OpenAI-compatible API behind a FastAPI backend and a Vue 3 frontend. LangGraph orchestrates four stages:

  1. Context preparation — gather and normalise the resume and job inputs.
  2. Scoring — ask the model for a structured assessment.
  3. Validation — check JSON shape and required fields.
  4. Storage — persist the result for later queries.

Keeping these as explicit graph nodes makes failures much easier to locate than a single long prompt.

Validation is not a retry

A common mistake is to treat a schema failure as a transport failure. If the output is valid JSON but violates the schema, resending the same request does not add any new information. The workbench uses bounded format repair: at most one repair attempt with the validation error included in the new request, then a stable failure if that does not work.

Caching and analysis

Dual-fingerprint caching avoids repeating expensive calls for equivalent inputs. On the analysis side, SQL aggregation, joins and window functions answer questions about match quality across batches of results.

The project passed 203 automated tests, including Windows CI. That number mattered more than any single feature: a workflow with model calls and external boundaries needs a lot of small, deterministic tests to stay changeable.

Source: github.com/xz1028/resume-mass-apply