Think Web Engineering

Applied AI engineeringAudits and builds

Applied AI engineering that survives production.

Audits, builds and evaluation for AI projects that are stuck, over-scoped or unproven — you get the system, and the evidence for whether it actually works.

Proof

Measured, not claimed.

Client names are withheld and there are no testimonials. The numbers are the argument.

Measured outcomes from three anonymised engagements
Measurement Value Context
Duplicate images removeda photo archive ~38% ~250 GB corpus. Perceptual hashing (pHash + dHash) ran before embedding, so duplicates were dropped before the expensive stage.
Warehouse-to-labels rebuildself-published benchmark 7.1 s 4.5M rows, 54 point-in-time features, 12 vCPU, no GPU. Full rebuild, not an incremental update.
Churn labels implied by one featurelabel audit 47% Found before delivery. The reported ROC-AUC of 0.99 was the model reading a tautology, not a signal.
Environment setup for new developersan archive platform weeks → minutes Docker-based environments replaced a hand-built setup that took weeks to stand up.

Same pipeline, served — 7.9 ms p50 · 12.6 ms p99 Batch throughput 11,675 predictions/s

Capabilities

Four things, done at production standard.

The work is narrow on purpose. Everything below is something I have shipped, measured and had to defend in front of the people paying for it.

Backend depth is assumed, not advertised: Python and FastAPI, Postgres, async services, AWS, CI/CD and test automation. It is why the AI part can be deployed at all.

Agents and orchestration

Coordinator agents that delegate to sub-agents and callable skills, mixing prompt-driven steps with deterministic ones where a model should not be trusted to decide. A natural-language front end can invoke the coordinator, so the system has one entry point instead of a set of scripts.

Tool calling · sub-agent routing · deterministic steps

Retrieval and semantic search

CLIP embeddings in Postgres with pgvector, hybrid keyword and vector search, and ranking that you can inspect. Built for corpora where a wrong result costs more than a slow one.

pgvector · hybrid retrieval · evaluation of ranking quality

Vision and document pipelines

Perceptual-hash deduplication, classification, and ingestion that runs unattended at archive scale — embedding, thumbnailing and indexing without a human in the loop.

pHash · dHash · CLIP · async ingestion

Evaluation and model honesty

Calibration, paired bootstraps, drift monitoring — and the willingness to report that a model is indistinguishable from a one-line rule.

Calibration · confidence intervals · leakage audits

Work

Three projects, anonymised.

Clients are not named here and there are no testimonials. Each entry is what was built, and what it measured.

01 A photo archive

Deduplication and multimodal search across 250 GB

A private archive of roughly 250 GB of images had no reliable index and a large unknown quantity of near-duplicates. I built an ingestion pipeline that fingerprints every image, removes duplicates, generates CLIP embeddings and writes them to Postgres with pgvector — then serves search over the corpus. Ingestion, embedding, thumbnailing and indexing all run unattended.

  • −38%duplicate images removed
  • 250 GBcorpus processed end to end
  • CLIP + pgvectorsearch by description
How that was measured

Duplicates were detected with perceptual hashing (pHash for structural similarity, dHash for gradient orientation), with a Hamming-distance threshold tuned on a hand-labelled sample before the full run. Only pairs passing both hashes were collapsed.

Search is hybrid: vector similarity over CLIP embeddings combined with a keyword pass over extracted metadata. Recall was checked against a set of known queries, not assumed.

02 An archive platform for a cultural institution

Legacy systems made interoperable, then setup cut to minutes

Two legacy systems — one Ruby, one Java — had to talk to a modern archival platform without a rewrite. I wrote the interoperability layer, converted the Python backend to fully async, abstracted the message broker so RabbitMQ and SQS were interchangeable, and moved ETL to Airflow with CI/CD to AWS. New developers previously spent weeks getting an environment running.

  • weeks → minutesenvironment setup, via Docker
  • RabbitMQ / SQSone broker abstraction
  • S3 · ECS · RDSdeployed by GitHub Actions
What "interoperable" meant in practice

Neither legacy system could be replaced on the client's timeline, so the work was a translation layer: shared identifiers, mapped records, and a queue in the middle so either side could fail without taking the other down.

The async conversion was measured, not asserted — the old synchronous path blocked on every archive call, which is why setup and ingest both dragged.

03 A churn model on a public dataset

An audit that found the model was measuring nothing

A churn model reported ROC-AUC 0.99. The audit found 47% of the labels were mechanically implied by a single recency feature — the model had learned the labelling rule, not the behaviour. I redefined the population, published the honest number with a confidence interval, and tested it against a one-line rule. The model was statistically indistinguishable from that rule. We kept the rule.

  • 47%of labels implied by one recency feature
  • 0.99ROC-AUC on a tautological label
  • 1 lineof code was the better system
Why this one is the point

The auditor's job is to find the bad result before the client does. Here the headline metric was an artefact of a tautological label, and the correct output was a cheaper system plus a defensible number — not a better model.

Comparison used paired bootstraps over the same resamples, so the difference between model and rule had an interval rather than a vibe.

How it works

Audit first. Then build, if it should be built.

Audit

1–2 weeks · fixed fee · written verdict

I read the code, the data and the labels, and reproduce the numbers you have been shown. You get a short written verdict: what works, what does not, what it would cost to fix, and whether it is worth fixing.

Build

2–6 weeks · defined scope

A scoped piece of work with a written definition of done. Weekly demos on a running system, not slides. If the scope is wrong after two weeks, I say so then rather than at the end.

Handover or retainer

Documented, then optional

Runbooks, tests and a handover session with your engineers. Or a retainer for evaluation, drift monitoring and the next increment.

If the audit concludes the project should stop, that is a valid outcome and I will say it in writing. It has happened.

About

Robert Scales, senior engineer, Barcelona.

Eight years building backend and AI systems for US and EU clients — Python and FastAPI, Postgres, async services, AWS, and the evaluation work that decides whether any of it ships.

Before that I ran a pharmacy, where the error rate stayed under 0.1% because the process made errors hard. That habit transferred intact: the interesting part of an AI system is not the demo, it is whether the numbers on the dashboard mean anything.

I take one engagement at a time, so the person who scopes the work is the person who writes it. If something is unlikely to work, you hear it early, with the evidence attached.

Robert Scales CV on request
Contact

Tell me what is stuck.

A short description of the project and where it broke is enough to start. I reply within two working days.

Based in
Barcelona, Spain
Working with
US and EU clients
Engagements
Audit first, then build

A sentence or two is enough.

No newsletter, no CRM sequence. This goes to one inbox.