Ben Monk.

Applied AI

AI engineering

Making a component that behaves differently every time it runs safe to build a product on.

AI engineering
Photo Ohio Supercomputer Center, CC BY-SA 3.0

AI engineering is the work of taking a model that is impressive in a demo and turning it into a feature that holds up under real traffic, real edge cases and a real bill.

Very little of it is about the model. Most of it is the system built around one.

What the work involves

Retrieval. Models know their training data and nothing about your documents. Getting the right material in front of the model at the right moment is usually where the quality of an answer is actually decided, and it is mostly a search engineering problem rather than an AI one.

Evaluation. You cannot assert equality on a language model’s output, so the usual testing safety net catches nothing. Building a set of real cases and a scoring method you trust is what makes it possible to say whether a change made the system better or worse.

Guardrails and fallbacks. The component will fail. What the product does on those occasions, whether it degrades cleanly, admits uncertainty, or confidently invents something, is a design decision that has to be made deliberately.

Cost and latency. Model calls are slow and they cost money per call. That changes what is worth building. A significant part of the job is working out which steps genuinely need a model, because often a lookup or a small classifier does most of the work.

Observability. A model returning a fluent, confident, wrong answer returns success and triggers no alert. Watching output quality, not just error rates, is the only way to catch the characteristic failure of these systems.

How I approach it

Start with the cheapest thing that could work. A clearer prompt fixes more problems than people expect, retrieval fixes most of the rest, and fine tuning is for a narrower set of cases than its reputation suggests.

Design the failure path before the happy path. The quality of an AI feature is mostly determined by how it behaves on its bad days.

Keep the model boundary narrow. The more of a task that is handled by ordinary deterministic code, the less surface there is for unpredictability to cause trouble.

Measure before and after. Impressions about whether a change helped are unreliable, and without evaluation a system drifts toward whoever spoke last.

Related reading: what an AI engineer actually does, retrieval augmented generation explained and how to evaluate model output.