Add AI workflows to your existing product without silent hallucinations or runaway bills
Most companies do not need a new AI app or a full-time ML team. They have an existing product handling invoices, support tickets, intake forms, or internal ops, and need reliable LLM extraction and routing that a human can verify and an engineering team can measure.
When teams bring me in
- Leadership wants AI automation in an existing workflow, but requirements are still fuzzy.
- Prompt prototypes look good on five examples and break silently on real customer data.
- No way to measure whether a model or prompt change actually improved accuracy before shipping.
- Concerns about multi-tenant data isolation, prompt injection, or uncapped token bills.
How I solve it
Schema-checked outputs backed by deterministic gates
Treat model confidence as one signal, not truth. Pair structured JSON Schema extraction with code-level validation gates, verbatim source-quote checks, and domain math checks.
Human-in-the-loop review and opt-in automation
Start with human review by default. Lease tasks safely with Postgres SKIP LOCKED, bind approvals to exact extraction revisions, and only auto-approve categories calibrated against frozen configs.
Measured evals, multi-tenancy, and cost caps
Run the exact production pipeline code over dev/calib/test splits with Wilson lower bounds, enforce Postgres row-level security, and reserve worst-case LLM budget atomically before calling any provider.
What you get
- Workflow scoping blueprint turning vague ops goals into concrete schemas, failure modes, and accuracy targets.
- Production pipeline integrated into your existing API/database with async queues and idempotent webhooks.
- Offline eval harness with recorded replay cassettes, calibration thresholds, and per-tenant spend limits.
Proof and engineering notes
Technical write-up
Frequently asked questions
- Do we need to rebuild our app or switch stacks to add AI workflows?
- No. I integrate directly into your existing TypeScript/Node.js, Python/FastAPI, and PostgreSQL codebase using background jobs, transactional outboxes, and clean service boundaries.
- How do you stop an LLM workflow from auto-approving bad extractions?
- Every extraction passes deterministic validation gates (JSON Schema, required fields, verbatim source-quote matching, and domain rules like invoice totals) before confidence thresholds or opt-in auto-approval are even evaluated. Uncertain items always wait for a human.
- How do we prevent runaway OpenAI/Anthropic bills?
- Before making any live model call, the worker atomically reserves worst-case cost against a per-tenant daily budget row in Postgres and settles to actual cost afterward, so concurrent workers cannot overshoot your cap.
- Can you help us scope the workflow if our requirements are still vague?
- Yes. We start with a short diagnostic using 30-50 of your real historical records to define the schema, error tolerance, human review UX, and cost per item before writing production code.
Other ways I help
Cloud & video cost optimization
Cut runaway AWS egress, MediaConvert, or metered video bills. Previously reduced a production video platform's spend 80% ($5K to $1K/month).
Backend & distributed systems
Turn vague requirements into reliable backend architecture: Postgres, ClickHouse analytics, idempotent queues, Redis Streams, and Terraform CI/CD.