[
  {
    "startMs": 12480,
    "text": "Everyone, super excited to be here. Uh, okay. My laptop's alerting me that this starts now. Uh, hi, everyone. I'm Marc, one of the founders of Langfuse. Super excited to chat about, um, what we have seen, how, how people like self-improve agents now and what kind of, like, open source reference stack, uh, we see emerging. I mean, obviously, my view is based on working with our community of people that use Langfuse to trace and evaluate their, their agents. But I think-- I try to keep the talk mostly to, to, like, more generic takeaways that work with whatever stacks you're"
  },
  {
    "startMs": 42200,
    "text": "using. Um, but yeah, happy to chat about the different pros and cons, uh, after the talk. High level, uh, I think this is the year, uh, where, uh, teams talk about, like, up-leveling the, the level of, uh, where, where they operate themselves, where increasingly good, good models just abstract everything downstream. I mean, coming from, I don't write prompts, I have loops, uh, Peter writing about it, auto research becoming really popular. So I think this is kind of where things are going on the, like, like, producing, um, application side, but also on the how to"
  },
  {
    "startMs": 72260,
    "text": "actually, um, build good, good agent applications. And, um, over the years, early models have, have expanded a lot in capabilities. Um, back when, when we started working on Langfuse, this was right when ChatGPT was released, so, uh, where, where, like, even the simplest applications didn't really work. So for example, we built, like, GitHub issue to pull request automation, similar to what Devin or Cursor are building. But back then, we could only manipulate, like, single page applications, like a single HTML file, because multi-file edits were too complicated. Since then, all of these things really accelerated a lot,"
  },
  {
    "startMs": 102300,
    "text": "and this really made, made loops now possible. And the same time, a more, like, reference stack emerged of how great AI agents are built because building agents is different from building applications. It's like, um, like a link of, like, tracing and monitoring, like, online how users really use an agent application, and then, like, an offline component of how to build datasets, how to experiment, uh, regarding, like, making changes to these agents, and then evaluating offline whether things work, then deploying new to production, then learning again for"
  },
  {
    "startMs": 132280,
    "text": "real users who use the application. Uh, so it's like this, this kind of loop, where traditionally, I mean, you have, like, observability and the data docs here on the tracing monitoring side, and you have, like, the MLOps toolings like MLflow, Weights & Biases more on the, like, offline side. Where, like, this new category emerged, and that's also why we built Langfuse, because you need to bring the online and the offline together. As, as otherwise, uh, like, you either benchmark on data that's inaccurate, so the datasets are not on loop and, like, uh, not in sync with what's happening in production, or you're monitoring, like, production data, but you don't really benchmark offline, so you need to"
  },
  {
    "startMs": 162280,
    "text": "bring the, the both together. But this has been, like, a lot of manual labor because you need to look at traces, update these datasets, think about, like, new evaluators, uh, then make these changes, create new hypothesis. Like, it's, it's, like, a lot of work going into this process. And since starting working on Langfuse, we try to educate teams how to, how to do this process well. But it's, it's usually, like, they ask that, like, \"Oh, models got better now. How can we take ourselves out of the loop to, uh, to automate it?\" Because it's really tedious, uh, to get things going. And that's what I wanna talk about, how we see how people go"
  },
  {
    "startMs": 192220,
    "text": "from manually driving this loop to using AI to, to drive this loop. Um, w-we use the visualization, um, like, of, for example, like the Loopcraft article or, like, many, many articles in the space that, like, layer different loops on top of each other. How, I mean, at the, at the lowest level, you just have, like, this token loop of what's the next, what's the next token that's produced. And on the very high level, it's, uh, like, like, the most abstract form o-of thinking where you as a human are still involved. So what we see how, um, uh, we, we go through them one by one."
  },
  {
    "startMs": 222380,
    "text": "High level, I just wanna highlight these are, again, possible because models improve. So, uh, when, when we started working on Langfuse in twenty twenty-three, w-like, I mean, we had GitHub Copilot, so, like, the lowest level or the, uh, level two. Um, the level three was possible, like, more in twenty twenty-four, and now twenty twenty-five, twenty twenty-six is more like the higher level loops of actually agents reasoning about what, what to even fix, uh, how to propose new fixes, and how to, how to verify whether they actually work. Where humans are currently still involved is, one, you, uh, need to align"
  },
  {
    "startMs": 251960,
    "text": "datasets of example questions of how the agents are used. This is, like, where, where humans need to review, um, uh, like, like what, what gets amended to the dataset and how to then evaluate whether the agents actually work. These are the, the two blue things in, in loop number three. Then on the proposal of fixes, because if, um, like, your agent proposes how to change an agent, you still wanna see what was changed because you have the risk of, like, over fitting it to, um, to, like, the dataset. And the failure definition, um, so I mean, usually"
  },
  {
    "startMs": 281980,
    "text": "agents find all sorts of different, uh, failure patterns, but maybe some of them don't really matter that much and you're like, \"Huh, this kind of use case for the agent, it doesn't really matter that much. Like, this is, like, out of what the agent should be actually be doing.\" So we don't need to over fit no application to this random quirk that we found in production, but we wanna, like, be in the loop to, to monitor this. And now coming from this loop pattern, we try to dissect it again into more like a workflow where, where we currently see A-AI used the most is in proposing fixes. So if we have"
  },
  {
    "startMs": 311800,
    "text": "production traces, and we have, like, even criterion datasets of how to reproduce issues that we find in production, then there's how do we hill climb against the datasets? That's, like, a really cool, uh, way to kind of like loop your way to a success with, with agents, because usually there are like ten different things of what you could be doing. I don't know. Use a different model, like aggregate context in a new different way. Try whatever you find on X, uh, in a given week to, to see whether it can, like, uh, make a dent into improving the agent. But really, like, you maintain the boundary of what you optimize"
  },
  {
    "startMs": 341680,
    "text": "against, and you use AI mostly for, like, proposing improvements to the agent implementation. Like, over the last, I'd say month, we've seen more and more teams also using, uh, like, like AI and, and their loops to maintain eval criteria and maintain datasets. So, uh, usually what goes in here is you wanna, like, align how a dataset, uh, looks like for an agent with what actual users are doing. So for example, if we have an customer support application, like support agent, then the dataset should be, like, common support"
  },
  {
    "startMs": 371360,
    "text": "questions. But, like, users do all sorts of things with a support application, so you need to continuously keep it in line with, uh, with what users are doing, and you can use agents for that. And for evals as well, if you see usual error patterns, then you can reproduce the error patterns and propose new eval criteria on these often datasets. So for example, I don't know, I wa-- I don't wanna name competitors, I wanna be concise, I wanna answer in the same language as the user actually requested, um, like they question my customer support application, so you can also propose new evaluators. This is, I think, rather"
  },
  {
    "startMs": 401500,
    "text": "new-ish over the last months, um, and where we see, like, the AI more auto looping. However, usually teams are now still involved in reviewing these changes because they create the new boundary for how then other agents try to auto improve against it. If you give this completely out of fam, you risk, like, that you just create more slop. Where, uh, we've used this in, like, a blog post of ours, where I'd say the target of an AI application is always changing because you don't really know. Like, usually you start with a very high level task of, I stick with customer"
  },
  {
    "startMs": 431100,
    "text": "support. You stick with someone says, \"Hey, in our company, cu-customers need to wait a long time for support, uh, answers, and we have a lot of people employed to respond to them.\" AI should be able to do this automatically, or at least aid in customer support. But it's a very vague target because people don't even know what happens in customer support every day. So it's kind of like, \"Oh, we wanna automate all of it.\" However, then, on the way of doing this, you figure things out based on, like, error cases of what you even need to do. And that's, like, this kind of, like, map that you-- Like, you assemble the plane while you're flying it. Um, and, uh, how we then look at"
  },
  {
    "startMs": 461100,
    "text": "the, uh, at this kind of, like, looping graphic is, you really wanna be, like, involved in setting the, setting, like, the, the goals and how you make changes to datasets, evaluators. You wanna be in that loop involved because you set thereby the direction, and then AI can automate against it. And then off of the newly implemented changes, you will see new error classes and you can then, like, change course again on the most highest level. But thereby you pull yourself, uh, out of a lot of, like, the more manual and tedious work on the lower levels."
  },
  {
    "startMs": 491620,
    "text": "Um, this is then the high level view of how, how I would conceptualize, uh, like the different scenarios that you can find yourself in. I'd say if you implement this, uh, like, AI workflow well of tracing online, uh, how your agents are working, implementing evals on how they are working, um, having datasets, uh, of example questions, and then benchmarking against them, you are in this era-- uh, in this class. Like, very high time invest because you need a team to really work with this data every week. But also, quality of the, of the agent is pretty high. I"
  },
  {
    "startMs": 521600,
    "text": "mean, that's what, uh, teams have been, for example, using Langfuse for, for the last years, and this is how you can get to, I'd say, success with your agent application. Um, if you're fully automated, I would say you don't really need to invest any time because you're just like, I don't know, Codex goal mode your way to success or, like, you add higher level loops on top of it. But you also risk that, like, it produce a lot of tokens but don't really make sense. So I think you wanna be in this kind of, like, promise land of, you don't really need to invest a lot of time, but you're, like, in the loop at the most important steps of, like, setting the"
  },
  {
    "startMs": 551480,
    "text": "direction of where you wanna go, but you take yourself out of everything that's tedious. Thereby, you're way less time invested than running it manually, but also the quality can be even higher because usually if you need to do everything manually, you're bottlenecked by your own time, your own, like, perseverance, endurance, uh, or, like, patience to look through so much data, and AI can just look so-- through, like, so much more error cases. This agent will be higher performing, and you need less time invest. That's the-- I think that's what we are w-going for. And how this then looks like is,"
  },
  {
    "startMs": 581480,
    "text": "uh, you involved at the top, but also, I mean, you want ideally your application to feed in interesting signal. So for example, when we talk about the, uh, like, customer support application use case, usually, I mean, customers can swear at the support agent. Customers can be like, \"Oh, no, you don't understand. Uh, like, uh, this was not correct.\" Or, like, you can propose messages to an internal agent who then can accept them or change them when sending them out. So there's, like, a lot of, like, implicit signal that can feed into your process without you as the agent developer needing to do"
  },
  {
    "startMs": 611420,
    "text": "this manually. Uh, thereby you have, like an, like an in stream of, of signal that your loop can act on. Um, so it's either you, your team, or some signal coming in. Um, and the lower level, uh, loops can be automated. That, that's high level how we, how we think about it. And like a, uh, like we put together, like, a super quick demo application, um, that can, that can show this. Um, so for example, like we as the Langfuse team, we have a big problem now because our, like, engineering team uses AI a whole lot, thus they ship a whole lot,"
  },
  {
    "startMs": 641420,
    "text": "and somehow we need to update our customers, uh, and user base, uh, what is, what is new every week. Because, uh, like in recent weeks, like, a lot was released, uh, and usually you need to update documentation, update a changelog, post about it on socials. And historically, like, engineers did this themselves because they maybe released, like, a bigger feature, like, once every month. So it's okay to spend a couple of hours. But now if they take themselves out and really ship a lot of, like, products, they wanna ideally, uh, like, automate also that kind of, like, release process, because otherwise we are bottlenecked by how fast we can"
  },
  {
    "startMs": 671400,
    "text": "communicate about changes. So, um, we thought about, like, putting together, like, a changelog writer that just uploads, like, like, updates a lot of, like, the public assets based on what we've shipped. Um, however, then the question is, i-is, like, how we communicate good? Because if we communicate badly about what we've released, then, I mean, we, we kind of like sabotage our releases if we, like, misrepresent, for example, what has even been released. So, um, setup is we have a merged PR, we have a changelog writer that, uh, suggests a change to"
  },
  {
    "startMs": 701000,
    "text": "documentation, but then there's like a, just like a code review step as like a GitHub PR where someone can review and either, like, approve on GitHub and get it merged or, like, submit, like, change requests of, like, well, what needs changes in this, um, uh, in this, in this change in documentation and, and the changelog. Then the change writer would act on this again to update the draft until it's finally released. And now both of these kinds of like, either like approvals or, uh, requests for changes can get feeded into like the AI observability and"
  },
  {
    "startMs": 731032,
    "text": "evals to, to serve as a basis for auto-improvement of that changelog writer agent. So what we've now done is, um, just use a coding agent pointed at the, like, Langfuse agent skills, but generally, I mean, this would also work with other systems, but yeah, Langfuse is like, uh, well positioned for this to, to ask like, \"Okay, well what has happened in this application? How can we improve it?\" I'll, I'll pause a couple times please, otherwise it, it'll go, it'll go by very fast. So what we, for example, here identified, that the writer, uh, so"
  },
  {
    "startMs": 760892,
    "text": "the changelog writer is factually, uh, like very correct in how it makes changes to documentation, but clarity is low. The edit ratio of us humans making ch-- like submitting change requests is still high, and that we leak internal jargon to our customers because maybe our code has like internal comments that we leave there for ourselves for the future, but, uh, like our customers don't think about our application as like, I don't know, like an ingestion pipeline or as like, I don't know, some kind of like"
  },
  {
    "startMs": 790952,
    "text": "batched eval queue. Like they don't know. This is like implementation detail. We should talk about it as like um, user domain language, and that's like, uh, something we have identified here where now the agent suggests changes to the datasets and evaluators to test for leaking jargon and, um, also like increasing clarity in customer domain language, basically. So, um, agent now closes this gap, suggests changes to the datasets and evaluators,"
  },
  {
    "startMs": 821152,
    "text": "and now, um, has an idea of how to change the agent implementation to basically fix this problem. Because in the end, it's kind of like just like a, a problem of how we provide context, how we like provide the skill that then educates this, um, content writer. And now we can backtest it basically on the updated dataset to see whether the new implementation would do better than the old implementation. And I'll stop here again, where we have basically the baseline. So, um, basically we reproduce the issue of"
  },
  {
    "startMs": 850652,
    "text": "user-facing language. So let's talk about features in a way of how users would talk about it. So we reproduce this kind of problem with the V1 baseline that's basically existing implementation of the agent. And agent came up with a new implementation where we see the V2 candidate. We are still doing on format compliance and accuracy in the same way as we did before, but we improved on like user-facing language. So we see a positive delta, which sounds like a good change now. Um, so, uh, agent reasons about it, uh, as this, I mean, this is a bit-- I mean"
  },
  {
    "startMs": 880652,
    "text": "internal application, it's a bit YOLO. So we are like, okay, we are good of, of just merging this and then acting again on the next change because this agent never publishes anything to actual production. It just raises PRs on a repo, so it's okay if it kind of like auto-improves, and then we just provide feedback again to whatever the next increment is. So, um, here we use our like prompt management logic so that the agent can just basically feature release this new, um, implementation. And, uh, now it just summarizes basically, um, how, how we"
  },
  {
    "startMs": 910632,
    "text": "acted on this. So high level, um, this is what we have seen like most of our best users do already, uh, when they, when they build agents, like collect production signals, uh, track them alongside like detailed execution traces, and then run agents like on a loop, uh, usually like a cron job, like every day, every week, whenever you have like a batch of basically interesting user data again to then act on it. Um, either it's just user feedback, how, how this happens in this case, or internal labeling from like a production system. But it could also be you ask people to annotate"
  },
  {
    "startMs": 940672,
    "text": "data like in-app. For example, in Langfuse we also allow like for annotations to feed into that, uh, into that queue. And yeah, that's very high level, uh, what we've seen. Happy to give you like a more deep dive, um, demo at our, at our booth or after this talk. I just wanted to, to wrap it up very concisely with how we see this, the space evolves. And, um, and I think what's, what's interesting here is it drives the need for like a very scalable data system because you'll wanna have agents really loop on this data and, uh, like produce lots of queries. This, we see how Langfuse was historically"
  },
  {
    "startMs": 970652,
    "text": "very write-intensive to like, um, ingest evals and traces. Now it's way more read-intensive because agents can like tr-- like chew through so much more data. Interesting, number one. And two, you wanna really like own the data layer because, uh, like now the traces of like, for example, a year ago are interesting context and you don't wanna want them to be locked up in like, uh, like a more commercial system or something where, uh, you need to sample data or retain them for a long-- short time period. But we wanna like retain them for a long time period and not sample them. And yeah, this really drives the need for like a scalable, cheap"
  },
  {
    "startMs": 1000612,
    "text": "solution and, uh, we've worked with many customers on this, so happy to talk, uh, one-on-about, uh, one-on-one about this if you're interested. Thank you so much for your time."
  }
]
