Architecture

Every part, and what it gave on the last runs

From the adverts a caller sends to the figures on this site. Pick a part to see how it is built, how it behaves, and the numbers it produced. Everything runs in the EU.

Data of …

In
Serve
Process
Check
every 5 batches
Out

the part shown belowwhat it receives from or hands to

Python package

Library

The method itself: splits each must-have item into single requirements and normalises each one; turns job titles into roles.

How it is built

  • karimi_normalise.process(), the same rules as the research analysis
  • Steps: clean the item, translate it to English (opus-mt; Chinese and other scripts by their own models), split by rules, normalise into years, level, head and core, look the core up
  • Conventions decided on the project lead's reviews: a precise name wins and its context goes to extra; one role written several ways is one requirement, different roles are separate

How it behaves

  • Deterministic: the same input gives the same output, every row stamped with the rules and dictionary versions
  • Runs locally inside the container: no text goes to an outside service
  • Every kind of error found in a review becomes a test case before the rule that fixes it

What it gave on the runs

Rules version
…
Requirements per item
…
Items kept whole
…
Translated
…
Receives
Hands on
All

Every part in one table

PartBuilt withHow it behavesEach run gives
Karimi adverts
the partner's job adverts
An export of European job adverts of August 2026; the Software and data family is the one processed hereThe same table comes back with columns added, every original column keptAdverts in, the same table back with columns added
API
FastAPI on Cloud Run
FastAPI service on Cloud Run, europe-west1 (Belgium)Up to 200 adverts per call answer at once (/v1/process); more go to a batch job (/v1/jobs)The normalised adverts, and a job id whose check follows
Batch job
Cloud Run Job
Cloud Run Job karimi-batch, 4 CPU, 8 GiB, up to 24 hoursReports progress after every chunk; a run silent for 90 minutes is marked dead by the sweepResults, run report and CSVs for a whole file
Library
Python package
karimi_normalise.process(), the same rules as the research analysisDeterministic: the same input gives the same output, every row stamped with the rules and dictionary versionsRequirements with group, topic and match; roles; a run report with lights
Dictionary
frozen, versioned
Rebuilt from the partner's adverts with every new rules version, then frozen: a sha256 for every file, never overwritten, never edited in placeFound word for word: known. Cosine 0.90 or more: same group. 0.80 to 0.90: same topic only. Below: newFor every requirement: known, group, topic or new
Tests and quality card
before every release
Pattern cases for every reviewed batch, a fingerprint of the rule files, and gates on human labels (pytest)A rule changed without a new version number fails the buildOnce per version, not per run: the figures on the Metrics page
The batch loop
how the rules improve
1. a batch of 1,000 unseen adverts is sent to the API as an outside caller wouldThe goal: a batch where every wrong row is found by an agent and a person only confirms itPer round: errors found by the agents and by the person, detectors added, the residual
Check
a Cloud Run Job
Cloud Run Job karimi-check, started by the API or the batch job after each runThe colour follows the errors: the inspector's share plus the judge's rejections × the share placed by similarity. Green under 3%, yellow 3–6%, red above 6%A verdict per run, its findings, and one line in the history
Inspector agent
rules, every requirement
A detector per kind of error (errors.py), each one born from an error a person or an agent foundIts share of flagged requirements is part of the run's colourRequirements flagged, per kind
Judge agent
Qwen3-4B, local
Qwen3-4B (instruct, 4-bit) run by llama.cpp inside the check job: no external model APIIts rejections, weighted by the share placed by similarity, are part of the run's colourShare of decisions rejected per kind, against the reference
Curator agent
rules + the judge
Detects at the end of every run, where the dictionary is: a vendor before a name, a version after it, a generic word after it, an acronym in bracketsNever removes the vendor: Google Studio is not Studio, AWS GuardDuty asks for AWSSpellings joined, rejected and waiting, each with the run that found it
Archivist agent
the catalogue of errors
error_catalogue.json, edited by a person; read by the archivist on every runA kind that comes back above three times its residual turns the run yellowEvery known kind of error, with its state on the latest runs
Explorer agent
Gemini, Vertex AI EU
Gemini 3.5 Flash on Vertex AI, EU multi-region endpoint: the one place where requirement text reaches a model outside the containerFlags, never counts: right on only a third of human counts, so it never colours a runCandidate kinds of error, for a person to decide
A person's review
100 random rows
On the Metrics page, after Google sign-in; sent from 50 rows onGives the share wrong with its 95% interval, and every agent measured against itThe human measure of a run, and of the agents
Retest
every 5 batches, ours
Runs locally, on the same steps as a job and its check, with the local judgeOurs only: it is not published, adds nothing to Explore and is not reviewedHow much the new rules improved the old batches
Storage
EU buckets
Cloud Storage buckets in the EU: jobs, dictionaries, build stagingA job's files are deleted after 30 daysresults.jsonl, report.json, postings.csv, requirements.csv, check.json
Publisher
the Explore page
explore.py, run by the check job and by the morning sweepA run goes in when its errors are not red and the judge is trusted; new requirements never keep it outExplore's counts, and why each run went in or not
Observability
Cloud Logging and Monitoring
One JSON log line per request and per chunk of 500, with Cloud Run's trace idLog lines carry codes and counts, never requirement textTimings, failures and alerts for every run
This site
public, aggregates only
Reads the public endpoints GET /v1/metrics and /v1/explore, with no key; the review and the explorer's decisions by sign-inCounts, shares, lights and versions only: no advert and no requirement of a callerThe Explore, Metrics and Architecture pages