Gaétan Vandenberghe

Engineering approach

From probabilistic capability to a dependable workflow.

An engineering pattern for making nondeterministic model output dependable through validation, evaluation, repair loops and human review.

Type
Engineering pattern
Focus
Reliability
Stack
LLM engineering, Evaluation, Observability, Python

A good demo is not a dependable system.

A model producing a good answer in a demo is different from a system producing usable output repeatedly. Production workflows need to detect malformed, unsupported or low-quality results and recover without hiding failure from the people who depend on them.

Constrain the interface, then evaluate.

The workflow asks the model for explicit structured output rather than unbounded prose. Schema validation checks the contract before downstream code accepts the result, separating syntactic correctness from the harder question of whether the content is actually useful.

Automated checks can cover required fields, consistency and task-specific criteria. Representative evaluation cases expose recurring failure modes and make prompt, model or pipeline changes comparable instead of relying on anecdotal impressions.

Repair, retry or escalate.

  1. Repair small structural defects when the intended output is clear.
  2. Retry with focused feedback when the result violates a known criterion.
  3. Stop after bounded attempts rather than creating silent infinite loops.
  4. Escalate ambiguous or consequential cases to a human with the relevant context.

Each step should leave enough evidence to understand what happened: model and prompt version, validation result, retry reason, latency and final disposition. That trace turns debugging from guesswork into engineering.

The system around the model.

Reliable AI comes from the system around the model. Constraints, evaluation, recovery paths and human judgment turn probabilistic capability into a dependable workflow.

Working on something similar?

Get in touch