← Portfolio

Deterministic LLM Localization Pipeline (TradeTEST-ES)

Showcase report: 01_live-dashboards/tradetest-es-bilingual-qa-report.html · Code: 02_ai-engineering-code/tradetest-es-pipeline/

Problem. Translate ~3,400 content items (DB rows, quiz questions, lessons, UI strings, affiliate pages) from English to Mexican Spanish — unattended, without quality drift.

What I built. A resumable CLI pipeline (Bash orchestration + Python helpers) wrapping OpenAI Codex through a 5-stage quality chain:

1. Build a style guide + term glossary

2. Translate

3. QA audit for errors

4. Back-translate to English to catch meaning drift

5. Final confidence gate (0–100 score, LOW/MED/HIGH risk)

Engineering details that matter.

Why it matters. This is the core applied-AI competency: turning a non-deterministic model into a deterministic, auditable, fail-closed pipeline with QA gates and cost discipline.

Talk track (screen-share)

I had thirty-four hundred items to translate and zero appetite to babysit it. So I wrapped the model in a five-stage chain: build a glossary, translate, QA-audit, back-translate to catch meaning drift, then a confidence gate that scores every item. Watch what happens here in the report: each item gets a LOW/MED/HIGH risk and a confidence number, so a human only reviews the risky ten percent. It's idempotent, so if it crashes overnight I just re-run the same command and it skips finished work. And the database write is dry-run first. The headline: I turned a non-deterministic model into a deterministic, auditable pipeline with a cost ceiling.

GG · Applied AI Engineering portfolio · synced to youdontneedmy.help design