WhoBuilt

Shipping complex AI applications

May 1, 2026· 1 h 39 min· 5.2K views·Watch on YouTube

Speakers

Duran, a Braintrust representative, and Osama and Mayank, senior AI/ML engineers at Trainline, lead a hands-on AI Engineer workshop in London on building and operating reliable AI applications with Braintrust.

Why AI prototypes struggle in production

Duran says the main gap is often operational rigor, rather than model capability. A demo can work while production exposes edge cases, and logs alone may not reveal why a system behaves as it does. The workshop focuses on tracking changes, finding failure modes, and improving the system through repeatable workflows.

Trainline’s AI systems and quality approach

Osama describes Trainline as a platform for booking rail tickets across carriers, with 27 million active users. Its customer-facing Travel Assistant can suggest alternative trains and handle refunds, with a human handoff when needed. Trainline combines traditional software quality checks with offline and online evaluations for its partly nondeterministic agent systems.

Build a staged agent and trace its work

The workshop builds a fictional support triage agent that gathers context, triages a ticket, checks policy, drafts replies, and decides whether to escalate. The presenters add tools and split the work into stages, then use Braintrust tracing to inspect nested calls, inputs, outputs, token counts, cost, and latency. A ticket about a Pro-to-Enterprise upgrade and website errors illustrates how the staged flow can produce an escalation.

Evaluate, manage, and improve the system

The team creates a small golden dataset of ten support cases and applies deterministic checks alongside an LLM judge for nuanced criteria such as customer-facing tone. They show how managed prompts and parameters can support shared changes, and how online scoring can assess production traces. For a case where a customer downplays an invoice deadline before a board meeting, they adjust the prompt and rerun evaluations to check the change and catch regressions.

Close the feedback loop with production data

The presenters recap a workflow from a single prompt to a five-stage agent, then tracing, evaluation, managed deployment, online scoring, and remediation. They recommend starting with an operational system, collecting real edge cases, and using them to build evaluations. Production feedback and repeated evaluation help teams improve the system over time.

Takeaways

  • Treat production readiness as an operational workflow: trace behavior, evaluate changes, and monitor real use.
  • Break complex agent tasks into explicit stages so teams can locate and fix failures.
  • Start a golden dataset with concrete edge cases, then add production failures as they emerge.
  • Use deterministic checks where possible and an LLM judge for criteria that need nuanced assessment.
  • Rerun evaluations after prompt or model changes to catch regressions before shipping.

Mentioned in this talk

Search inside this talk

What was claimed 12

Show all 12 facts

Related talks