LLM All work and writing

Article by Gonzalo Luque Martin, October 2026

Evals before features: shipping LLM features on sensitive data

In a regulated business, the question is never "does the demo work?" It is "how do we know it works, for whom, and what happens when it doesn't?" Answer that first, and the feature becomes much easier to build and to approve.

Why demos lie

An LLM feature can look excellent in a demo and still be wrong one time in ten. With a recipe app, that is an annoyance. With an insurance claim summary or a health coaching message, it is a compliance problem, a support cost and a trust problem.

The difference between a prototype and a product is not the model. It is whether you can measure quality, notice when it drops, and explain to a compliance officer what the system does with personal data. That work is cheaper at the start than after launch.

Start with the decision, not the model

Before writing a prompt, write down three things:

  1. What decision or action does the output feed? A human reading a draft is very different from an automated message to a customer.
  2. What does a bad output cost? Wrong, incomplete, inappropriate tone, leaked personal data, or advice the business is not allowed to give. Rank them.
  3. What does "good enough to ship" mean in numbers? For example: at least 90% of answers rated correct by a domain reviewer, zero answers that reveal another person's data, and every answer citing a source.

These become your acceptance criteria. They also become the line in the contract and the slide for the risk committee.

Build the eval set before the feature

An eval set is a list of realistic inputs with a description of what a good answer looks like. Fifty well-chosen cases beat five hundred random ones. Cover:

On sensitive data, the eval set itself needs care. Prefer synthetic or pseudonymised cases written with domain experts. If real data is needed, keep it inside the client's environment, minimise it, and treat the eval set as personal data with its own access controls and retention.

Grade in layers

Not every check needs a human or another model. Grade from cheapest to most expensive:

LayerExamplesWhen it runs
Deterministic checksValid JSON, required fields present, length limits, cites a source, no personal data patterns in outputEvery test run and every production response
Model-graded checksFaithfulness to the source document, tone, policy compliance, using a rubricEvery test run, sampled in production
Human reviewDomain experts rating correctness and usefulnessBefore launch, after major changes, on a small production sample

Model-graded checks are useful but are themselves a model. Calibrate them against human ratings on the same cases, and only trust the grader on dimensions where it agrees with your experts.

Make evals a gate, not a report

Evals only help if they block bad changes. Run them in CI whenever the prompt, model, retrieval setup or tools change, and fail the build when a metric drops below the agreed threshold. Model providers update models; a pinned version and a regression run before switching are part of change management, the same as a database upgrade.

Keep a short changelog of prompt and model versions with their eval scores. When someone asks why the assistant answered differently last month, you have the answer.

Guardrails around the model

The model should not be the only line of defence. Around it:

Privacy by design is mostly architecture

Most data protection questions about LLM features are answered by the architecture diagram:

In Switzerland the revised FADP applies, and health data is sensitive personal data. In the EU, health data falls under Article 9 GDPR, and the AI Act adds obligations depending on the use case. Getting the data flows right early makes these conversations short.

Monitor after launch

Production is where the real eval set lives. Sample responses for review, track the deterministic checks on every response, watch refusal and fallback rates, and add every real failure to the eval set. Over time, the eval set becomes the most valuable asset of the feature: it encodes what your business considers a good answer.

A minimal checklist

  1. Acceptance criteria in numbers, agreed with the business and compliance
  2. An eval set of 50 to 200 cases, including must-refuse and adversarial cases
  3. Layered grading, with model graders calibrated against humans
  4. Evals in CI as a release gate, with pinned model versions
  5. Guardrails before, inside and after the model
  6. A data flow diagram with providers, regions, retention and deletion
  7. Production sampling that feeds back into the eval set

Working on an AI feature that touches sensitive data? I help health, insurance and finance teams set up exactly this, from the first eval set to production monitoring.

Get in touch