WhoBuilt

Continuously Improving Agents with Langfuse

Oct 11, 2026· 44 min· 6.1K views·Watch on YouTube

Speakers

Annabell Schäfer and Lotte Verheyden of ClickHouse discuss how teams can use Langfuse to monitor and continuously improve AI agents at an AI Engineer workshop.

The AI engineering loop

Lotte explains that agents can appear healthy even when their responses or actions are wrong, because they are not deterministic. She divides the improvement loop into online work, tracing and monitoring, and offline work, building datasets, experimenting, and evaluating changes before deployment.

Trace what the agent does

Lotte says monitoring depends on well-structured traces, which record an agent’s steps, such as model calls and tool calls, along with details like duration, cost, token use, model, and prompt version. Teams can use aggregate metrics, user feedback, automatic evaluators, and human review to spot problems, including new or nuanced cases.

Monitor application-specific failures

Annabell demonstrates monitoring with Specs, a dad-focused IT support agent that uses support context and a help library to answer questions. She configures evaluators for user disagreement, all-caps frustration, and out-of-scope requests, showing how traces can surface issues such as unclear answers or requests about unsupported devices.

Use trace data to find broader issues

After seeding production-like traces, Annabell uses the Langfuse CLI and skill with a coding agent to inspect questions, scores, tool calls, latency, and other signals. The analysis surfaces a retrieval quality failure, latency and cost from retries, and gaps in evaluation coverage; she then asks the agent to help change the application code.

Close the loop with datasets

Annabell says teams need to maintain both their evaluation criteria and their datasets as real user behavior reveals new edge cases. Adding useful production examples to offline datasets lets teams evaluate changes and include regression checks in CI/CD before shipping.

Takeaways

  • Instrument traces carefully, since monitoring and later dataset decisions depend on what they capture.
  • Start with tracing and monitoring, then add offline evaluation as the product or risk level warrants.
  • Choose evaluators around your application’s likely failure modes, such as user disagreement or out-of-scope requests.
  • Use human review and user feedback to catch nuanced issues automatic evaluators may miss.
  • Turn informative production traces into dataset examples and use them to check changes for regressions.

Mentioned in this talk

Search inside this talk

What was claimed 9

  • feature
    Langfuse: Open source, model agnostic, and framework agnostic
    “We’re open source, model agnostic, and framework agnostic”
    YouTube
    Unverified1 source· Talk
  • feature
    AI engineering loop: Online tracing and monitoring connect production signals to offline datasets, experiments, and evaluation
    “there are two big parts: an online part—tracing and monitoring—and an offline part”
    YouTube
    Unverified1 source· Talk
  • feature
    Langfuse: Supports tracing, monitoring, evaluators, datasets, and experiments
    “tracing and monitoring ... building datasets, experimenting, and evaluating”
    YouTube
    Unverified1 source· Talk
  • integrates with
    Specs integrates with OpenAI API
    “we also use the OpenAI API endpoint to generate replies”
    YouTube
    Unverified1 source· Talk
  • uses
    “a TypeScript application that uses the OpenAI Agents SDK”
    YouTube
    Unverified1 source· Talk
  • feature
    Langfuse: Supports code-based and LLM-as-a-judge evaluators
    “I can set up code-based evaluators ... and ... LLM-as-a-judge evaluators”
    YouTube
    Unverified1 source· Talk
  • uses
    “in my case, I'll install them with Claude”
    YouTube
    Unverified1 source· Talk
  • feature
    Langfuse CLI: Exposes APIs for traces, scores, datasets, and experiment runs
    “it exposes all our APIs. You can access your traces, scores, datasets, and experiment runs”
    YouTube
    Unverified1 source· Talk
Show all 9 facts

Related talks