Latest / Agentic Conversations (formally mlops.community) / Product Metrics are LLM Evals // Raza Habib CEO of Humanloop // #320
Transcript
- 0:07how you are looking at product metrics and combining those with
- 0:13evals. So I think that there's no real
- 0:16difference between product metrics and evals, or at least
- 0:19like the best evals are the same as product metrics.
- 0:22What do I, what do I mean by that?
- 0:24So I think a lot of what you're trying to solve with evals is
- 0:27you're trying to get a measure of the quality of your AI
- 0:30system. And what's changed with
- 0:32generative AI and large language models is a lot more of the use
- 0:35cases are very subjective to measure performance on.
- 0:38If you are like writing an e-mail or summarizing a document
- 0:41or answering a question, there isn't like one right answer
- 0:44anymore. And so it's hard to say like
- 0:46what even is the correct answer. Like take a concrete example of
- 0:49summarization. Meeting summarization is so
- 0:51contextual as to whether or not it's a good summary.
- 0:54If you have a sales call, you want a different type of
- 0:56summary. Different salespeople will care
- 0:58about different things like did you pick up key information?
- 1:01So there's no one correct answer anymore.
- 1:03So in some sense, like the best eval, like the value would you
- 1:06wish you could have in practice would be the end user outcome.
- 1:10Like did the user get the outcome that they wanted?
- 1:12Were they able to achieve their goal?
- 1:14Did they use the tax that they like it that they, you know,
- 1:17depending on the use case that did the agent achieve the goal
- 1:19it was supposed to do for the person and the way that they
- 1:21expected? Was the customer support message
- 1:24actually helpful? And what evals are really trying
- 1:27to do is give you a proxy for that during development because
- 1:31you can't have that necessarily before you put stuff into
- 1:34production. And so hopefully those two
- 1:37things are very correlated and product metrics and evals are
- 1:41not that different. And a lot of the evals that
- 1:43people are creating with LM is judge or like automated evals
- 1:47are often run as production metrics as well, right?
- 1:50So on every utterance they're actually scoring it with either
- 1:53a classifier or a piece of code or an LM is judge and then
- 1:56monitoring that for how things are drifting over time or to be
- 2:00alerted if something changes. And do you see this as like the
- 2:02happy path in whatever the product is?
- 2:06There's a next step that I'm trying to take.
- 2:09And if that gets accomplished after I have some interaction
- 2:13with AI, then that's a win. And you can easily see that's
- 2:18black and white, like I took that step.
- 2:20I I made the next best action or I didn't?
- 2:24Yeah. So in practice, the we see like
- 2:273 very common types of sort of like in production evals as like
- 2:33default end user metrics and then and then ones that are more
- 2:35bespoke or kind of use case specific.
- 2:37So the most like basic ones that everyone does, you know, you see
- 2:42it, you see them in lots of apps.
- 2:43So like the simplest thing is just end user feedback, thumbs
- 2:45up, thumbs down or scores, things like that.
- 2:48They're somewhat useful. You don't actually get as much
- 2:49of it as you would want, and it biases towards the extremes.
- 2:52I always laugh at those because it's like the people that are
- 2:55given the thumbs up and thumbs down are just a very small
- 2:58subset of your user base. But it's still it's still useful
- 3:01data, right? So something we'll often see
- 3:02people do in human loop is like look at the examples that got a
- 3:05bad rating because they want to try and understand like really
- 3:08where are the failure modes? Like where is the system going
- 3:10wrong? Then you get corrections.
- 3:14So if people are like generating text or getting an answer to
- 3:18something, you know, they're editing a legal document or
- 3:20something like that and being given suggested edits, then they
- 3:23probably like edit the text before they use it a little bit.
- 3:26And so having that like correction can be very useful
- 3:28signal both like how much do they correct it, but also as a
- 3:32as a stored data point of what the right answer was in that
- 3:35case. And then finally what you said
- 3:37of like actions like what is the natural next action?
- 3:41And does the user take that? Do they send the message?
- 3:44Do they copy the text? You know, whatever it is
- 3:46contextual in your application. Those we see people use a lot as
- 3:50baseline. And then things that we see on
- 3:52top are people will often build custom LMS judge or code
- 3:56evaluators that are very use case specific.
- 3:59And those might be monitoring tone of voice, whether or not
- 4:03there is, you know, stuff is on brand or stuff like this that
- 4:06that may be a little bit more subjective to monitor.
- 4:09And they they might want that only in development, or they
- 4:11might not want that in development and in production as
- 4:13well. Yeah, because when you get into
- 4:15the enterprise, they can't just Yolo things into production.
- 4:19Yeah, exactly right. So, so when we built the first
- 4:23version of Human Loop, like the initial focus was all around
- 4:27helping people to measure how well the system was working in
- 4:29production and use that to guide improvements.
- 4:31And that's still a core piece of the platform.
- 4:34But as we went upmarket and we started to sell more to mid
- 4:37market and enterprise companies, then, yeah, you have this
- 4:39problem that like you have to be able to be confident that it
- 4:42works well in development before you're willing to, you know,
- 4:45roll it out even to a beta group or to all your users.
- 4:48And so you need some way of actually building a rigorous set
- 4:50of testing metrics in dev that hopefully are predictive of what
- 4:54will happen when you actually deploy to production.
- 4:56So basically you went in the human loop with that idea and I
- 5:00like that you talk about the evolution and you also see how
- 5:03things change. I talked to you what like 3-4
- 5:06years ago when human limp was starting.
- 5:09Just over 2 years ago, yeah. So it was about it was it was
- 5:12just a couple of months before ChatGPT came out actually, as I
- 5:15think we recorded that episode. Classic.
- 5:17Great timing and. Yeah, that that is.
- 5:19That is roughly how I split the world now, before and after
- 5:21ChatGPT. Some people it's Christ, the
- 5:25others exactly it's ChatGPT. Yeah, BC it was it was about 3
- 5:29months BC. Yeah.
- 5:30So what have you changed? How have you like seen the
- 5:36product develop and grow and you're thinking around AI in
- 5:42production in general? Yeah.
- 5:44So you know, when we started, LMS are still very new.
- 5:48They're mostly being used just by startups.
- 5:50The applications were much more limited, so people were building
- 5:53like the single prompt based apps.
- 5:55It was, you know, the earliest cases were copywriting or
- 5:57various forms of writing assistant user comes to the
- 6:00website, describes what they want, spits out a blog post or
- 6:02helps them, you know, brainstorm.
- 6:05And the models were kind of just about good enough for that.
- 6:07But for more complicated use cases like question answering or
- 6:10agents, people were trying and building demos.
- 6:13And you know, even even 2 1/2 years ago, like you had the
- 6:15first agent demos, but the models weren't smart enough to
- 6:18make that reliable. And so the first version of
- 6:21human Loop was really focused on helping people who are building,
- 6:25you know, this first generation of LM applications to understand
- 6:28how well they were working in production.
- 6:29Because if you can't measure it, it's very difficult to improve
- 6:32it, know how to make it better over time.
- 6:35And subjectivity and stochasticity was like the
- 6:38challenge, right? And it's still the challenge.
- 6:40But if you think about copywriting or writing
- 6:41assistance, you know, that's an extreme point of like evaluation
- 6:45is very subjective. And for a lot of engineers, it
- 6:47was the first time that they were building software where
- 6:50every time you run it, you get different results, right?
- 6:52People in the machine learning community, this is relatively
- 6:54normal for them. But I think that if you are not
- 6:57from a machine learning background and that was actually
- 6:59quite a new experience. And so the the first version of
- 7:02human was very simple. It allowed you to monitor what
- 7:06was happening in in production. So basically every time someone
- 7:08was interacting with your system to get the inputs and the
- 7:10outputs, gather and user feedback and match that against
- 7:13different prompts. So you could kind of do AB
- 7:15testing or comparisons of prompts in production.
- 7:19What's changed since then is as the models have gotten smarter,
- 7:22the complexity of the use cases has gone up enormously.
- 7:25So we've gone from like simple writing apps to people are
- 7:28automatically negotiating legal contracts, right?
- 7:30So people like File, Vine and Antra are our customers, or
- 7:33we've got people building language learning assistance at
- 7:35Duolingo or at Gusto. They're building, you know,
- 7:38complex agents that can actually go in and do tasks that
- 7:42accountants were previously doing in payroll software.
- 7:44So we've gone a long way from hey, just generate me a blog to
- 7:48actually good do something complicated for me.
- 7:51Multi. Step yeah.
- 7:52And so we've had to build out, you know, still the same.
- 7:56The, the fundamental problem is the same, which is that I'm
- 7:59trying to take this unreliable base thing, the LLM, and build a
- 8:03reliable, trustworthy application on top of it.
- 8:06But the stakes have gone up, right as we started to work with
- 8:09enterprises. They care a lot more about
- 8:12avoiding mistakes, about having guardrails in place.
- 8:15The complexity applications have gone up.
- 8:17So tracing and observability actually becomes way more
- 8:19important. The way that people build has
- 8:22changed as well. So original human loop was just
- 8:25this in production, gathering feedback.
- 8:28Since then, we built that out into a full tracing and
- 8:30observability system. So if you have an agent that's
- 8:32going off and doing things, it'll let you see the full path
- 8:35of what did that system do like so user asked the question, then
- 8:39every turn of the conversation or every step that the agent
- 8:42takes, you have that recorded and you can augment that with
- 8:45feedback or evaluation data. So you have this very rich data
- 8:48set that allows you to do both governance but also improve your
- 8:51system. Like what is and isn't working
- 8:53and how do I guide that? And then coupled to that, I
- 8:56think what's become the core of the application actually is an
- 8:59evals tool. And this is really used
- 9:02primarily in development, but what it allows people to do is
- 9:05to write down essentially the criteria that the system needs
- 9:09to pass to be good and have a data set of test cases that they
- 9:13can then iterate against. So LM development is very
- 9:16iterative. You build the first version of
- 9:18the pipeline as quickly as possible, get something that
- 9:20works end to end. And then you're looking to go
- 9:22from something that works end to end to something that's good
- 9:24enough to trust in production. And you're iterating over
- 9:27prompts, you're doing over tool definitions, over preprocessing
- 9:30and POS processing code. You're trying out different
- 9:33models, you're trying out different data, store the data
- 9:36sources for the context. If you don't have a way to know,
- 9:39as you make those changes, am I making things better or worse?
- 9:43That's very difficult to actually make progress and not
- 9:45just spin your wheels. And So what evals do is they
- 9:48allow you to get quantitative feedback on every change that
- 9:51you make so that you can actually tell, like, am I
- 9:54improving things? And that's really helpful during
- 9:56development to actually get to a system that works well.
- 9:59And I think we spoke alongside file via Net like recent AI OPS
- 10:03conference that you guys had organized and they were able to
- 10:06take a system, you know of just over 50% accuracy on doing
- 10:09information extraction to 90% plus.
- 10:12But it would have been impossible without this constant
- 10:15feedback loop. Yeah, like evals were the most
- 10:19important thing, huh? Yeah, at least at least for
- 10:21them. And I think, I think it's, it's
- 10:24one part amongst many, but it's it's kind of an essential
- 10:27baseline. Like if you don't have good
- 10:28evals, I don't think you're going to be able to get very far
- 10:32on the other pieces. So it's foundational.
- 10:35Stay with me here. Yeah?
- 10:38Have you heard the parable of the scorpion and the frog?
- 10:43I have, But you know, maybe we should, maybe we should remind
- 10:46the audience. All right, so, so there's this
- 10:49parable of a scorpion and a frog and the scorpions trying to get
- 10:53across the river. And so it sees a frog and it
- 10:56says, hey, will you give me a lift?
- 10:58I need to get across the river, so can you take me?
- 11:01And the frog is like, yeah, but you're a scorpion and you got a
- 11:05tail. And if you sting me, then I'm
- 11:07going to drowned and I'm going to die.
- 11:11And the scorpion said, don't be ridiculous.
- 11:14Why would I sting you if I'm on your back?
- 11:17And then you drowned, and I also drowned.
- 11:19And so the frog thinks about it for a SEC and goes, OK, I'll buy
- 11:24into that one. Yeah, get on.
- 11:25And so the frog's taking the scorpion across the river.
- 11:31The scorpion can't help itself. It just boom.
- 11:34At a certain point it stings the frog and they both go down and
- 11:39they drowned. And the reason I'm saying this
- 11:41as? They're drowning, the frog says
- 11:43to slip. And why did you sting me?
- 11:45And he says it's just in my nature.
- 11:46That's it. That was the that's the key
- 11:48part. Yeah.
- 11:48It's in my nature, right. And the reason I think about
- 11:52that story is because a lot of times I wonder if these LLMS
- 11:58were caging them and trying to put all of these guard rails
- 12:03around them and all of this different stuff.
- 12:05We're doing all this wild engineering, like evals and like
- 12:09everything that we can muster up when these hallucinations are
- 12:15just part of the nature of the LLM and we don't like them, but
- 12:21we have to figure out a way to like contain them.
- 12:24Yes, I feel like there's maybe multiple things going on here
- 12:27and there's there's a few things to talk about.
- 12:29Let's put a pin in the hallucination question.
- 12:31I really want to come back to that.
- 12:33But I think there's an extent to which sometimes what people are
- 12:36doing is working around the limitations in the current
- 12:39generation of models, right? So some of what people are doing
- 12:42is oh, the system is like not reliable enough or you know, the
- 12:47models aren't smart enough. So we have to figure out a way
- 12:49around that. And that's a stopgap solution.
- 12:52But I think even if you had the model to be arbitrarily smart,
- 12:56like let's say you just have an API to Einstein or whatever
- 12:58Dario says his data center of geniuses.
- 13:02I don't think the need to like try and iterate on your system
- 13:05to achieve your goal goes away. You still have to figure out
- 13:08like, what is the context the model needs to be able to do
- 13:11this goal? Is it doing the goal in the way
- 13:13that I expect? If I change things over time, is
- 13:16that still true? So, you know, opening eye
- 13:18release is a new model and I want to try it out.
- 13:21Like, what is the impact of that change on my metrics?
- 13:24Like maybe the accuracy of a system goes up, but people don't
- 13:27like the tone of voice as much or something like this.
- 13:30So it's not necessarily about mitigating limitations of the
- 13:35system so much as like even if you have the smartest model in
- 13:38the world, it's always going to be stochastic, right?
- 13:42Like by nature of these systems, and we're not trying to get rid
- 13:44of that stochasticity, that's often a benefit.
- 13:48And it's always going to have like slightly different
- 13:50characters with the models. Because I think the, again, sort
- 13:53of sticking to lines from Dario, since I think he has some good
- 13:56lines and he says we don't so much build these systems as grow
- 13:59them. There's a certain
- 14:00unpredictability in the character of different models.
- 14:03And that's a feature, not a bug, because it means we get lots of
- 14:06different personalities or styles or skills or variances
- 14:09and ability that I think people like and can make use of.
- 14:13I don't think that takes away the need for evaluation if
- 14:17you're coming. Like if you're a software
- 14:18engineer, you're writing unit tests, you're writing
- 14:20integration tests. Like why would it be any
- 14:22different with AI? It's just that the types of
- 14:24tests you need to write are different.
- 14:25And in fact, if you come from a machine learning background,
- 14:28like you were always building a test set of cases and measuring
- 14:30metrics on them, It's just that the types of metrics and how you
- 14:33do it are changing. And then on the point of
- 14:36hallucination, when I speak to people like this colloquially, I
- 14:39find it very hard to get out of people like a coherent
- 14:41definition of what they mean by hallucination as opposed to just
- 14:44the model being wrong. Like when you talk about
- 14:47hallucination, you're implying an intent to the model.
- 14:51And so, like most people, I don't think have a clear idea in
- 14:54their head of the distinction between those two things.
- 14:57Like maybe, maybe academics have defined a good distinction, but
- 15:00when people say the model hallucinated when it answered a
- 15:02question, what's the difference between that and it just got the
- 15:05answer wrong? Yeah, I guess hallucination is
- 15:09the wrong answer at the end of the day, So it makes sense that
- 15:13they're one in the same. But the the idea there then is
- 15:21mitigating the wrong answers, not mitigating the
- 15:24hallucinations. In a way it's like, let's just
- 15:27figure out how to be more consistent with right answers.
- 15:31And we can do that by, like what you're saying, having this
- 15:35overview of how the system is changing over time.
- 15:40I feel like when people use the word hallucination, it implies
- 15:43something about their mental model of like what the LLM is
- 15:45doing. And I'm not sure exactly what
- 15:48that mental model is that they're thinking of, but it
- 15:52feels at least conceptually muddy to me.
- 15:56Like, I don't think people are clear on what they mean, and I
- 15:58think it would just be clearer to say like that LLM is being
- 16:01factually inactive. It's getting things wrong.
- 16:03Yeah. I like that on the inside of
- 16:06what you've built, you've got this system running, right?
- 16:09And you're recognizing that there's changes that are
- 16:12happening to the system continuously.
- 16:15But then there's the production environment and there's logs and
- 16:20traces that are coming back, and it goes to those product
- 16:23metrics, like you're getting product metrics back, you're
- 16:26getting information back. So how are you using that to
- 16:29update your system and how are you making it easy for that loop
- 16:34to just continuously be happening and ideally like get
- 16:40better each time? Yeah.
- 16:41So maybe maybe this is a good point for me to kind of explain
- 16:44the different pillars of what's in human loop, because I think
- 16:46understanding like what we've put into the LM Evals platform
- 16:49and why we chose those pillars kind of answers this question.
- 16:52So there's like really 3 core pillars.
- 16:53We've talked about two of them. So one is the in production
- 16:56tracing and observability, The other is like having data sets
- 17:01and evaluators that you can run during development.
- 17:03And then the final pillar that we haven't talked about, but
- 17:05it's kind of the answer to this question is tools for managing
- 17:09prompts, iterating on them, collaborating between the
- 17:13technical people and the non-technical people who have
- 17:15the domain knowledge, maybe to be able to change a prompt or to
- 17:19to like look at an output and sort of score it in some way.
- 17:22So some concrete examples here would be, you know, we mentioned
- 17:26Filevine earlier. At Filevine, it's like lawyers
- 17:28who are doing a lot of the prompt engineering.
- 17:31At Duolingo, it's like language learning experts at fundraise,
- 17:35they have their kind of real estate experts and product
- 17:37managers be involved in writing the prompt.
- 17:39So, so at a lot of our companies, the people who are
- 17:42either looking at the evals and scoring them, you know, Gusto,
- 17:45its customer support staff, or the people who are writing
- 17:47prompts are not the engineers themselves.
- 17:50And so part of the platform as well is separating out the
- 17:54configuration, which is the prompts and the tool definitions
- 17:56from the code so that you can iterate, you can iterate on the
- 18:00prompts independently, but still have them versioned and tracked
- 18:03in the way that you would have with traditional software.
- 18:05So those are the components. And then now we can kind of
- 18:08answer your question of like, OK, well, I'm monitoring all of
- 18:10this stuff in production. How do I actually use that to
- 18:12make things better? And the usually the cycle is
- 18:15that someone will be looking at an eval or they'll be looking at
- 18:18logs from production and they'll have some hypothesis about why
- 18:22the system isn't working the way it's supposed to be working or
- 18:24something that's wrong. Like so they'll spot inaccuracy
- 18:27in a rag system, or they'll spot the tone of voices wrong or
- 18:30something like that. And they'll this.
- 18:32Person is usually technical, non-technical.
- 18:34We actually see it with both. So it's often PMS. So PMS sort
- 18:37of bridge that gap or it might be the engineers themselves
- 18:39looking at the the eval logs. They will then say, OK, I think
- 18:43what's going on is that the model is not getting the context
- 18:45it needs right. My guess is that the problem is
- 18:48that actually the RAG system is like not retrieving enough.
- 18:50We should go in like improve the recall of the RAG system.
- 18:55Well, they can then go make that change within human loop, right?
- 18:57They can actually update the configuration of the tool, or
- 19:01they can go and change a prompt, or they can trigger a fine tune
- 19:04of a model. And then they can run the eval
- 19:06and see like, did I actually make things better on my metrics
- 19:08or not? And then there's the ability to
- 19:11deploy that change from there. And so for a lot of the changes
- 19:15you might be wanting to make, which are changes to prompts,
- 19:17tool definitions, or trying to run some kind of fine tuning
- 19:20job, you can often do that without having to go into code.
- 19:24And so that allows the non-technical people to iterate
- 19:26very quickly and frees the engineers to do their thing as,
- 19:31you know, what they want to do from the PMS and the
- 19:33non-technical domain experts. And something we see a lot
- 19:37otherwise is APM wants to make a change to a prompt or wants to
- 19:40try something. And that might involve a full
- 19:42app redeployment. Maybe they have to open a ticket
- 19:45and a system like JIRA or Linear to be like, please update this
- 19:48prompt. And then an engineer will go
- 19:49like, edit that in code, then they'll do the app redeployment.
- 19:53It's like, oh, actually that made, you know, that didn't make
- 19:54the change I was expecting. Or if they don't have good evals
- 19:57in place, then people are nervous to make changes because
- 19:59they're worried about regressions.
- 20:00I like how you're bridging the gap between all these different
- 20:04personas. So it's as technical as you want
- 20:06to be, or as subject matter expert.
- 20:09It is really, it's really 3 personas that we interact with a
- 20:12lot. And maybe this goes as well to
- 20:13like what we've seen the most successful teams do when they're
- 20:16building products. And so you have your.
- 20:19Nice segue by the way. You have, you have your, your
- 20:22product engineers or the actual software engineers who are
- 20:24building the system, they're making the API calls to the LMS.
- 20:27They're actually, you know, building all the pipelines, but
- 20:31oftentimes they're not the right people to be able to define what
- 20:35good looks like. And they're not necessarily the
- 20:36right people to write the prompts.
- 20:38And the people who are usually best at that are the product
- 20:41managers. You know, writing a spec is not
- 20:44that different to writing eval is actually like there's some
- 20:46definition of what does good look like.
- 20:48And oftentimes there might be a third persona that may or may
- 20:52not be the PM themselves, which is the person who has the domain
- 20:55expertise to kind of define what the goal is and what good looks
- 20:59like. So sometimes that's just a
- 21:01product manager, but sometimes it's a separate person.
- 21:03And that's where the lawyer comes in and says, wait a
- 21:05minute, Yeah, You think this is OK?
- 21:08And so the way those people get used is either they're being
- 21:11used just to provide feedback. So sometimes what people will do
- 21:13is as part of the eval loop, they'll map the system over a
- 21:17data set of test cases. They'll have the lawyer or the
- 21:19domain expert, whatever the use case is come in, look at each
- 21:22output and score it as like pass, fail with a critique.
- 21:26So hey, this one is good, it's fine.
- 21:29This one was bad because and then that binary data of like
- 21:32which ones were good enough? And the reasons then become what
- 21:36informs the next round of either prompt engineering or updates.
- 21:40And sometimes the lawyer will go to the prompt engineering
- 21:43themselves. Sometimes the engineers or PMS
- 21:44will do it. But that feedback cycle is
- 21:48really useful. And often also it gets used to
- 21:50build the LMS as judge. So you know that human feedback
- 21:54is invaluable, but very expensive and hard to scale.
- 21:57And oftentimes what you can do is take this combination of pass
- 22:00fail feedback and critiques and then essentially kind of distill
- 22:04that into a prompted LM that you can now use at scale.
- 22:07And as long as it correlates highly.
- 22:09So the human judgement, you've now got a way to do more
- 22:14scalable evaluation that can also be done in production.
- 22:17So evals are being done primarily by folks that are
- 22:23RPMS. People talk about how data scientists can fill that role
- 22:29really well to create these evals to also help explore in
- 22:33the prompt exploration space, and it's very akin to what a
- 22:38data scientist is used to doing. It's very helpful to have
- 22:41someone on the team who has a background in stats or machine
- 22:45learning or data science just for the rigor of understanding,
- 22:48like how to do evaluation well. Like understands the distinction
- 22:52between sort of held out data versus not held out data and
- 22:55what kind of metrics you might want to calculate.
- 22:57And that you, you know, if you're dealing with stochastic
- 22:59systems, you probably want to run them multiple times and get
- 23:01averages and stuff that will be like obvious and intuitive to
- 23:04anyone from a stats background. But someone who's like not done
- 23:07that style of thinking might not even know to think about that.
- 23:10And so the typical makeup that we see is usually there's like,
- 23:13you know, the normal number of engineers you would have on any
- 23:15product team, maybe one data scientist and then the PMS and
- 23:20the domain experts and they're collaborating together, right?
- 23:22So each of those people is bringing something to the table.
- 23:25The data scientists usually don't have the relevant domain
- 23:29knowledge to be good at doing the prompt iteration.
- 23:32And So what you really want is to be able to give them tools
- 23:35that allow the non-technical people to come in and iterate
- 23:38without being blocked by either of these other groups and they
- 23:41can share information between them.
- 23:43The way this works in human loop is that when you want to run an
- 23:45evaluation, you map your your application or your LM system
- 23:49over a data set. It generates all the outputs and
- 23:51then it scores them. And one of the ways it can score
- 23:53them is with human feedback. So it creates a queue of jobs
- 23:57for the domain experts to come in and actually provide that
- 24:00feedback. And then do you also map it to
- 24:04the product metrics? So not during development, but
- 24:07during production, what happens is that people add some login
- 24:10calls or we have integration with open telemetry so they can
- 24:12send data to human loop of what is the agent doing.
- 24:16And then once those traces land on human loop, people can set up
- 24:19evaluators to be in monitoring mode.
- 24:21And So what that means is that every time a trace comes
- 24:23through, the evaluator says an LLM is judge evaluator will look
- 24:27at the output score it. And basically you're building
- 24:30this data set of traces augmented with product metrics
- 24:34or augmented with end user feedback.
- 24:36And so when APM comes into the app, the a typical workflow
- 24:39might be OK, show me the cases where the LLM thought this was
- 24:42bad. Or show me the cases where a
- 24:43user gave me bad feedback. I'm going to look at those and
- 24:47try and determine whether I need to go change a prompt or fine
- 24:50tune a model or update my rag system.
- 24:51I'm going to use that to guide where my failures are.
- 24:54And now you said that you can update the rag system from
- 24:57within human loop. So there's some there's some
- 25:00amount of that people can do within human loop and some that
- 25:03might require busting out into more powerful tools.
- 25:07So within human loop, people are often specifying configuration.
- 25:10So they're specifying chunk sizes like what metrics being
- 25:13used to like actually do the retrieval, whether it's like a
- 25:17traditional IR method or they're doing something with like
- 25:20semantic similarity. So they have a tool definition
- 25:23within human loop that's high level configuration for the
- 25:26retriever and they can edit that.
- 25:28And the way it works is we're kind of like a CMS for prompts
- 25:30and tool definitions. So in production, the way it
- 25:34works is the production application basically speaks to
- 25:36human loop and says, hey, what's the prompt that's currently
- 25:38deployed or what's the tool configuration that's currently
- 25:41deployed? Human loop sends that back and
- 25:43then the retriever gets called or it gets cached locally and
- 25:46then the retriever gets called. So you're managing the
- 25:48configuration which is the prompt and tool definitions from
- 25:51within human loop and that allows you to iterate quickly
- 25:54and make changes very fast on the application.
- 25:57And so that configuration, how are you tracking it over time or
- 26:00tracking changes? Is it just in GitHub?
- 26:03So we have sort of a version control system built into human
- 26:06loop that tracks it. And then we also have serialized
- 26:08versions of all of these. We call them files.
- 26:10So every tool in prompt in human loop has its file type and
- 26:14there's a dot prompt file format or a dot tool file format that
- 26:18people also check into Git. So people can have like a sync
- 26:20with Git if they want and still will be using git for
- 26:23versioning. But we're also keeping track of
- 26:25the history of changes. We've got audit logs, you can
- 26:27see who changed what on human loop natively.
- 26:30So if people are doing it through the UI, as a
- 26:31non-technical person, you have the same rigor as you would have
- 26:34if an engineer was committing code.
- 26:36Let's say I update a prompt or I start seeing something is going
- 26:40a little bit weird and so then I'm going to change out a model.
- 26:44What is the CICD process? So typically the workflow would
- 26:48be someone goes into human loop, they would make the change in
- 26:53our editor, save a version of that prompt and they'd trigger
- 26:56an evaluation. And sometimes these evals are
- 26:59actually triggered as part of like just typical CICD.
- 27:03So someone is running CICD, you know, and a GitHub action is
- 27:06going to call human lip to run the eval report and then they
- 27:09get back the metrics and the DIF from so they can set thresholds
- 27:13on like we have to be above certain metrics before
- 27:15something's going to be committed to prod and then it
- 27:17goes to prod. So it's actually like very much
- 27:20just the normal CICD people are used to.
- 27:22The only difference is that one of the GitHub actions or one of
- 27:26the hooks in your CICD system will be calling an eval report
- 27:29on human loop for that change. OK.
- 27:31What have you been seeing as far as use cases and actual like AI?
- 27:37That is, you're making people money.
- 27:40It's always easy and fun to talk about all these evals and
- 27:43everything that you can be doing, but at the end of the
- 27:46day, if you're not looking at what the real potential is.
- 27:52Or yeah, where's the, where's the business?
- 27:53Where's the business impact? The real use cases are and.
- 27:56So how have you been seeing folks succeed in this
- 27:59department? Yeah, absolutely.
- 28:01So we see more customer facing use cases.
- 28:03So there's kind of two buckets where I think people are either
- 28:06saving money or making money with with Gen.
- 28:08AI. So there's like internal process
- 28:11like automation. People are building customer
- 28:14service support agents, right? Whereas previously before they
- 28:16might have had humans take a certain amount of time, they can
- 28:19improve their deflection rates or increase the success with
- 28:22things like customer support. That's like a very obvious use
- 28:24case that at scale I know is saving companies 10s of millions
- 28:28of dollars. And I can't name names, but like
- 28:30at least at least one company I know is saving on the order of
- 28:33$30 million a year from what they had before.
- 28:36Not bad. But then what we spend a lot
- 28:39more time on is customer facing applications.
- 28:42So less internal process automation.
- 28:44And the reason why we naturally end up spending time on that or
- 28:46our customers are building that is in an internal app, people
- 28:50will tolerate a certain amount of bugginess or kind of it
- 28:52can't. It doesn't need to be 100%
- 28:54accurate, but as soon as you're putting something in front of
- 28:56customers, then reliability and like confidence that it's going
- 28:59to perform the way you expect goes up way higher and the need
- 29:02for evals and tracing and observability becomes an
- 29:06essential thing. So we mentioned earlier
- 29:08Filevine, which is a legal tech company.
- 29:10And the reason I'll talk about them is because we had a case
- 29:12study together that there's also shared.
- 29:14Shout out to Brianna. Shout out to Brianna from, from
- 29:17Filevine, but they're, you know, they've released something like
- 29:206 new AI products in their contracts, sort of lifecycle
- 29:23management product and, and tools for lawyers across the
- 29:28last year and a half that are generating, I think 10s of
- 29:30millions of dollars of revenue for them, net new revenue and
- 29:33growing very quickly. So, so legal tech is like 1 like
- 29:37vertical that, you know, there are other companies, Harvey
- 29:41Antra that are like doing, you know, ironclad that are doing
- 29:44amazing things with LMS in the legal space.
- 29:47So those are applications that I think are generating significant
- 29:49revenue. Coding tools is like a vertical
- 29:52where we know there's a lot of revenue being generated.
- 29:54Cursor windsurf, now you've got cloud code from Anthropic
- 29:57natively, like Opening Eye has their own tools.
- 30:00GitHub copilot was the OG, right?
- 30:02So that's another set of vertical applications that we
- 30:05know people are getting a ton of value from.
- 30:07Can we pause right there for GitHub Copilot?
- 30:09Because talk about opening up a whole market and then just
- 30:13losing it. It's so incredible how much work
- 30:18they did to create this whole new field and then let Cursor
- 30:22come and eat their lunch. Yeah, You know, it's
- 30:25interesting, like we'll see how I think the game is still very
- 30:28early. Like I think it's too old to too
- 30:29early to call how it will play out.
- 30:32There's not that much differentiation even now between
- 30:34these different coding tools. Developers are very fickle.
- 30:37They swap models and they swap which tool they're using very
- 30:40quickly, true, so I wouldn't call it yet.
- 30:43Yeah. But yeah, it's GitHub Copilot.
- 30:48I feel like is it's true that you never know, it could come
- 30:52out of nowhere or rise like the phoenix from the ashes.
- 30:56Yeah, I mean, I'm, I'm interested to see what what the
- 30:58model providers themselves start to produce.
- 31:00Well, there was talks about windsurf being bought by.
- 31:03Rumors that opening eyes going to buy windsurf.
- 31:05Or it already bought them, who knows.
- 31:07And then you've got Cloud code, you've got opening eyes codec.
- 31:10So you know they're already releasing their own tools.
- 31:13They're very they're very clearly entering the game of
- 31:14competing directly on on coding tools.
- 31:17Yeah. And Copilot has some kind of
- 31:22partnership that I saw with one of the, I think it might be
- 31:26anthropic. Interesting because so early on
- 31:29they had a very close Co partnership with Microsoft
- 31:31because because Microsoft open eye relationship and the early
- 31:34get up copilot models were the early codecs models from open AI
- 31:38sort of checked over the wall like you know.
- 31:40All right, so continue. I I cut you off, you there's so
- 31:43in. Terms of vertical applications
- 31:44like legal, tech is definitely a domain where people are making a
- 31:46ton of money. Coding is 1 where people are
- 31:48making a ton of money. Another pocket that we see is at
- 31:51Tech. So we have a bunch of companies
- 31:53who are building tools for teachers or for students or AI
- 31:56tutoring. So one of our customers there is
- 31:58McMillan, who are building an AI tutor, but Duolingo for a kind
- 32:02of language learning love Duolingo and a bunch of and a.
- 32:05Bunch of others help. If you've ever tried to, you
- 32:08think you've got like a level 7 or level 10 and then you go to
- 32:11the country and you're like yo hablo espanol to hablas espanol.
- 32:18But I. Think I think that's going to
- 32:19get a lot better with improved AI tools.
- 32:21I hope right You can actually practice conversations.
- 32:23Exactly because I need to learn German.
- 32:25I've been living in Germany for too long to not be able to speak
- 32:28German. But you don't speak German.
- 32:29Yeah, exactly. I always.
- 32:30Assumed that because you were in Germany, you were German.
- 32:33I was Deutsch. No, I am very not Deutsch, and
- 32:36it's starting to show now. My daughter's six and she speaks
- 32:39German incredibly. And so I'm missing out on a lot
- 32:44of half the conversation because she'll speak to my wife in
- 32:46German. And then so Duolingo I'm going
- 32:50to start using it again and see if.
- 32:51See if you can get fluent in German.
- 32:53And because of human loop, I'm going to say, Raza, you saved
- 32:56me. No, you're the reason I speak
- 32:58German. I don't know if.
- 32:58We can take too much credit. I think the good, the good folks
- 33:00is these companies are doing the hard work, but we're we're
- 33:02hopefully facilitating. So yeah, those are, I think, 3
- 33:05concrete examples. I could probably, you know, name
- 33:07more from some. I think those are like still
- 33:12applications that are maybe like one generation back from the
- 33:15state-of-the-art in the sense that, you know, there's been a
- 33:17progression of complexity of things that people are building
- 33:19with LMS from right at the beginning, everyone was building
- 33:22these like writing assistants kind of very, you know, the only
- 33:25thing that really had traction in the beginning was like
- 33:26marketing automation. Copy AI was copy the.
- 33:30One Jarvis. That was the one.
- 33:33They raised a ton of money. There is a ton of money.
- 33:36I don't know. I don't know what's happened.
- 33:37To them and then we'll open AI. When and Chaji BT came out it
- 33:40was like oh we don't need copy AI anymore.
- 33:43But interesting, some of these companies have managed to keep
- 33:46reinventing themselves, like Writer I think is doing really
- 33:48well. And they started off in a very
- 33:51similar vein. But you know, what they did
- 33:53differently was that they were always focused on private models
- 33:56rather than building on top of the large public elements.
- 34:00So they seem to be going fine. But yes, you had kind of
- 34:02copywriting and then I think you started to get like rag systems
- 34:06and people realizing, hey, we can actually use this for
- 34:08customer support or for, you know, actual question answering
- 34:11in various ways. And we're only now seeing like
- 34:14more agentic applications really get deployed.
- 34:18And I think the first version of agents is still very much like
- 34:21the skew morphic. I'm going to go do what I used
- 34:24to do with a human with an agent.
- 34:27But we're starting to see some of our customers build things
- 34:29that go one step further and are imagining things that like
- 34:32wouldn't have been possible before LMS. So there's still a
- 34:36gentic applications, but they're not, I'm going to go replace a
- 34:38human there. I'm going to go do something
- 34:40that couldn't be done before. And a concrete example of this,
- 34:43one of our customers, a company called Windmill.
- 34:45And you know, the problem they're solving is that
- 34:48performance management in large companies sucks.
- 34:50You get a review from a customer like, you know, you start not a
- 34:53reason customer. You get like feedback from your
- 34:55manager and like a cycle like once every six months.
- 34:58The manager doesn't really understand like what's going on.
- 35:01It's it's not a great experience.
- 35:03But what you can do if you have an army of like LM agents is
- 35:06they can go out and they can speak to everyone in your
- 35:08company all the time. They can proactively ask them
- 35:10questions, they know whose colleagues you know are, and
- 35:14they can then aggregate that information back up and share it
- 35:17in both directions. The managers can have a much
- 35:19better idea of like on the ground what's happening.
- 35:21And also you can get like real time or continuous feedback from
- 35:25both your peers and your manager on how you're doing mediated by
- 35:28these LMS. They can effectively have, you know, conversations
- 35:32with everyone and it's still very early, but that's an
- 35:36example of like an application that I think wouldn't have been
- 35:38possible. You couldn't sort of imagine
- 35:40doing that before LLM. So I'm quite excited about
- 35:43people pushing agents in that direction.
- 35:45That's a fun thread to pull on because you can go in the
- 35:50direction of now that we have the ability to talk to people at
- 35:56scale, what can we do? Yeah, absolutely.
- 35:58I imagine they're talking of people in various formats.
- 36:03It's maybe that you get on a call and there's.
- 36:06I think in this case it's in Slack, but you could imagine it
- 36:08being a voice agent. You could, you know, and it's,
- 36:10it's, it'll just send you a Slack message with a few
- 36:12questions and it or it'll or it'll, you know, say, hey, we
- 36:14spoke to the colleagues who work most closely with you and they
- 36:18think you're doing a great job. But here's, you know, here's
- 36:20what you're doing. Well, but we've got this theme
- 36:22that came up across four different people where you might
- 36:24want to improve. And you know that wouldn't have
- 36:27been possible before. I take feedback horribly, so I
- 36:31would not like that tool at all. Yeah, I think, I think you can
- 36:36imagine like more pro human, pro social and less pro social
- 36:40versions. I think this is actually taking
- 36:42a very productive approach and just really trying to help
- 36:44people communicate better. Yeah, It reminds me of this idea
- 36:48that a friend of the pod, Fausto had, and he was saying, you
- 36:52know, what about when everyone joins the community, they get on
- 36:55a call with an avatar and they're asking quest.
- 37:00The avatar's asking questions on why are you joining this
- 37:03community? What is interesting for you?
- 37:05Are you looking for a job? Are you looking just to learn
- 37:07more? Are you looking for other people
- 37:09in the field? Because we kind of know the
- 37:12buckets that people will fall into when they join the
- 37:15community. And it's one of like the seven
- 37:19things and so. To what extent can you not do
- 37:22that just with the sort of form when they sign?
- 37:24Up because people don't fill out forms.
- 37:25That's the problem. OK. 9 out of 10 people just go,
- 37:29yeah fuck that. Like I'm not going to take 5
- 37:33minutes and fill this out, even though if they did and we knew
- 37:39more information and we knew like, wow, 5 out of 10 people
- 37:43who joined are looking to we meet others in the field.
- 37:47We, we have this program where we set people up one-on-one
- 37:51matching program with other people in the community.
- 37:55And so we can suggest that to them and make sure that they
- 37:58know that we have this program. But if you never get the data,
- 38:02you don't know. And so I can suggest it, but
- 38:05maybe it 5 out of 10 times it falls flat.
- 38:07Yeah. And one of the things that I
- 38:09think is interesting that you can do with this tech that you
- 38:12couldn't do with just a form is ask follow up questions and
- 38:16asked so follow up questions that are specific based, you
- 38:18know, adaptive forms. I don't think it's probably like
- 38:22possible before. So again, it goes back to being
- 38:24able to talk to people in a much deeper way at scale.
- 38:27Yeah. But building those systems, like
- 38:30there's so much added complexity, right?
- 38:31So the windmill PMS are kind of like iterating on, you know,
- 38:34they've got 10s or maybe more prompts at this stage, like
- 38:37hundreds of versions of those that each of those needs to be
- 38:39benchmarked. It's a complicated system, and
- 38:42being able to separate out, like iterating on the prompts from
- 38:46having that in your code base where they might be scattered
- 38:48all over is a is a very big win. I do appreciate that you
- 38:55extracted out of the code base so you're not going through
- 38:58lines and lines of codes or just like searching for that one
- 39:01prompt. You want to have a very clear
- 39:04picture of exactly what context you're sending to the model.
- 39:07So this is one of the beefs I also have with like a lot of the
- 39:09LLM frameworks, like agent frameworks and things like that,
- 39:12where, and I won't name any specific names, but people will
- 39:15know if they're using them. They all do this to a certain
- 39:18extent, yeah. Many of many of people have
- 39:20already talked about this on the Internet.
- 39:23But oftentimes they're hard coding prompts within the
- 39:26framework and so you as the end user don't have a clearview of
- 39:29exactly what am I sending the model.
- 39:31Prompt engineering and building with LMS is not complicated.
- 39:35Like all you need to really understand is like exactly what
- 39:37context of the model received so that you can reason about
- 39:40whether or not it's possible for the model to answer or achieve
- 39:43the task. And then what things do I need
- 39:45to change or give it more information on for it to be able
- 39:48to either adjust the tone or get closer to reliability.
- 39:51Like edge cases. I might not have thought of much
- 39:53like communicating with a colleague, but if there's a
- 39:56bunch of like hidden stuff that the models also being told.
- 39:59All this random body language. So I think like just making it
- 40:03really easy for people to see like exactly, exactly what is
- 40:06the context that's going to the model, which is the tracing
- 40:08observability and also having the prompt separated and
- 40:10centralized. So if you don't have them
- 40:12scattered around the code base. How often are you seeing folks
- 40:16use variables in their prompts? Oh, like all the time.
- 40:21That's a common pattern now, right?
- 40:23Yeah, so like we talk about prompt templates.
- 40:25So when we talk about prompts in human loop, we really mean the
- 40:28choice of the model, the hyper parameters and then the prompt
- 40:30template where that template is going to have, you know, at in
- 40:34production variables that are coming either from user or
- 40:37feedback or they're going to be being filled in from a retrieval
- 40:39system. So you have a a template with
- 40:43gaps you know people use maybe like mustache style sort of
- 40:46handles or ginger templating or something like this to specify
- 40:49the prompt template. Because it brings up the other
- 40:53piece that we were talking about earlier on the recommender
- 40:55systems. Yeah.
- 40:57So the, the context here was we were saying that the closest
- 40:59analogy to building with sort of very subjective use cases before
- 41:05LMS was probably recommender systems.
- 41:07A lot of machine learning has correct answers that recommended
- 41:10systems don't like what is the best movie to recommend or
- 41:13clothing item to recommend. There's not one correct answer.
- 41:16And in that way it's very analogous to building LM systems
- 41:20where, you know it's subjective as to what what good is.
- 41:22Then you were saying, well now when I want to go for a movie, I
- 41:26look at. 100% go to ChatGPT now. Yeah.
- 41:30I know, and I think you're an outlier.
- 41:31I probably I probably AM. We'll we'll ask the chat and
- 41:35we'll see what people say like listeners can let us know.
- 41:40But if you're not doing this, you should be.
- 41:41So my let me let me make my pitch quickly, which is just
- 41:44that if you're if you're a heavy user of one of these LM systems,
- 41:47ChatGPT clawed, whatever it might be like it's learning a
- 41:50lot about you. It knows a lot about your
- 41:51preferences through the memory. Now it also like, can you, you
- 41:55can describe to it what you want in a way that like is very hard
- 41:59to do with like a traditional Rex system that just says like,
- 42:02you know, how similar are you to the other people?
- 42:04So, you know, you can do weird things.
- 42:06You can be like, hey, I'm in the mood for a political thriller
- 42:10that's like, slightly dark. In the style of Guy Ritchie.
- 42:12Yeah, I recently and the style of Guy Ritchie, I recently
- 42:14watched a movie that I really liked and I'm like, I'm in the
- 42:17mood for something similar. Like what else is out there
- 42:19that's like this or I really like Christopher Nolan's films.
- 42:23Like which other directors also play on themes of time travel or
- 42:26whatever it might. You can't get that from a Rexis.
- 42:29No, yeah, I was thinking like, oh, here's the last five films
- 42:33that I really enjoyed. You can do this.
- 42:35Too. Give me yeah, give me five more.
- 42:37Or at least give me two, because I'm probably not going to watch
- 42:41all 5 right now. Yeah.
- 42:42And I don't think this is a replacement for traditional
- 42:44Rexis, but as a as a it is, it is interesting though to see,
- 42:49you know, you can do embeddings that are like conditioned on
- 42:53descriptions or text or things like that.
- 42:54So I think these two worlds will collide a bit.
- 42:58I think you're an outlier because of the cognitive load
- 43:01that takes. And even though for you, you're
- 43:04sitting there and you're like, no, this is really cool because
- 43:06I can be really creative and you can get a much better
- 43:09recommendation than just scrolling through the horizontal
- 43:14bars on Netflix. But then I was looking at it and
- 43:18I was saying, yeah, but man, clicking is so much easier than
- 43:23trying to articulate what movie. And, and really, I think that's
- 43:27what it comes down to is like, if I go on Netflix and I just
- 43:31scroll around for a while and it knows what I have watched
- 43:35already and it's already bringing me different films,
- 43:39then it's much easier to just go, yeah, all right, this looks
- 43:43good. I, however, I don't think I am
- 43:46that person either because usually I'll get my movie
- 43:49recommendations from folks on Tiktok.
- 43:52OK, interesting I'll see different people on TikTok
- 43:55breakdown like here's the top ten these movies this insert
- 43:59like favorite type of movie. But for the most part, the
- 44:05recommender systems where you're just clicking or scrolling.
- 44:08If we're going to a recommender system, like Tik Tok's got the
- 44:10best one, right? And so if you extrapolate it
- 44:15out, maybe for a movie, yeah. But if it was for a social
- 44:18network like TikTok, I'm in the mood for something funny.
- 44:21It has to do with, like, cats and this and that.
- 44:24And it's going to be much more effort to get something where
- 44:28you can just get those signals and scroll.
- 44:31Yeah, I think, I think that's probably true.
- 44:33This isn't something I've given a a great deal of thought to.
- 44:35Although something that occurs to me just off the top of my
- 44:38head is that like one of the hard problems with like
- 44:40recommender systems is that you're like very often in a
- 44:43small data regime, right? Like new person joins and you
- 44:45know very little about them. And like being able to go from
- 44:48like a description of that person or like looking some
- 44:51stuff up about them and then using that to like find which
- 44:54people are like them might be might be a very interesting way
- 44:57to overcome those cold starts. That's a cool way of plugging it
- 45:00in, yeah. But not not something I'm
- 45:02personally expert on, so I will avoid having two strong
- 45:05opinions. Well, Speaking of things you are
- 45:07expert on, as you look forward, what's around the corner for
- 45:10you? So there's there's really two
- 45:12things. Yeah.
- 45:13And one of them we're launching actually, you know, in the next
- 45:16week or two. So maybe by the time this
- 45:17podcast comes out, it'll be. It'll be by editing.
- 45:20In at least in beta and and sort of being used by people, but so
- 45:24one of them is we're trying to give much better support for
- 45:27people who are prototype and and building agents and agent
- 45:31evaluations as well are just much harder than evaluating
- 45:33simpler system. Because of the steps involved.
- 45:36Yeah, because there's like this branching tree of so many things
- 45:39that the agent can do. So having good coverage over
- 45:41what might the agent do is hard. Also oftentimes to evaluate an
- 45:45agent or even run one it you know they're interacting with
- 45:48users or or other systems, you have to be able to mock those
- 45:51systems as part of your eval. So if there is a user who is
- 45:54asking questions as part of the agent, you know, if one of the
- 45:57tools the agent has is like get information from user, then to
- 46:00run a good eval, you need to be able to like mock the user.
- 46:03Or if it's calling third party API is like, you need to have
- 46:05that integration into your eval system.
- 46:07So evaluating agents is just more complicated.
- 46:10And so we're, we're launching a new agent builder as well as
- 46:14much better tooling around how do I evaluate complicated
- 46:17agents? So today there's I think decent
- 46:19support for this in human loop, but this will just simplify both
- 46:22the DX and UX and I think be pretty strong there.
- 46:26And then the one I'm very excited about is auto
- 46:29optimization. We're trying to come up with a a
- 46:32better name for this and maybe you can help me out with names.
- 46:35We haven't. We haven't.
- 46:35Released this yet auto. Optimization, but the, but the
- 46:38premise is, you know, people are spending so much time in human
- 46:42loop today tweaking prompts, adjusting tool definitions, like
- 46:45iterating on these different components.
- 46:47And actually we've done a bunch of research now in prototype on
- 46:51having AI systems do a lot of this iteration for you.
- 46:55And because we have access to your evaluation scores and your
- 46:59data sets, we can run that. So once you've set up basically
- 47:02your data set and evals, we can have the AI proposed changes to
- 47:06prompts, update parts of the system, rerun the eval, look at
- 47:10the eval report. And then like a human data
- 47:12scientist would like sort of think about like, oh, what is
- 47:15the cause of the failure? Make an adjustment and rerun
- 47:19until the the score improves to certain certain point.
- 47:22That works better today than like we've benchmarked it
- 47:26against DSP, why we've been benchmarked it against it.
- 47:29Has a bit of DS. It's it's got a DSP vibe to it,
- 47:33but one we're looking at like entire pipeline.
- 47:36So not just kind of prompts or those parts.
- 47:38Because they do the auto prompt optimization, but you're saying
- 47:41the entire pipeline. What if it is the?
- 47:43It's the model that you need to change out.
- 47:45Yeah. And so let's test 5 different
- 47:48models here and see if that gives us any.
- 47:50Yeah. So there's and there's quite a
- 47:51lot of complexity to getting it to work well.
- 47:55And then we've benchmarked it against kind of the best things
- 47:57we can find in the academic literature.
- 47:59And you know, we're currently outperforming.
- 48:02So we're going to sort of be running that in beta starting
- 48:04very soon actually with sort of small group of early customers.
- 48:07And then I'm hoping in a few months or a couple of months
- 48:10time kind of launch that to GA. And so if something that you
- 48:13know, our top users are spending 10 hours a week or something you
- 48:16know of of this iteration now I think we can probably just
- 48:19automate all of that. Wow.
- 48:21All of it. A large fraction.
- 48:24So it's basically like you're going from the, you're going to
- 48:28more of a declarative, yeah, way of working.
- 48:31Just say give me your emails and I'll give you what you need.
- 48:33Give me give me your emails and that kind of first version of
- 48:36the system that works 80% accurate or whatever.
- 48:39And a lot of the iteration that you were doing to get from there
- 48:42to the system that's 90% plus, you know, all those hours that
- 48:46Brianna's team at file line spent in human loop with
- 48:49expensive lawyers like we can, we can maybe do a really good
- 48:53first cut of that or or at least automate a significant fraction
- 48:56of that work. So those two are the are the
- 48:59sort of new things that we're most excited about.
- 49:02Lawyers are expensive. Engineers are expensive.
- 49:06PMS aren't cheap. So.
- 49:08Especially good ones, especially in AI.
- 49:10If you're thinking about hey this 10 hours now open are
- 49:15opened up for the lawyer to be creating more evals.
- 49:19Or or just doing anything else? Lawyer work, whatever lawyers
- 49:22do. Yeah, go Bill some hours.
- 49:25Yeah. So I think that's going to be
- 49:26quite transformative. And I think that it's we have to
- 49:32build the foundations first. You can't actually, like someone
- 49:35couldn't show up today and they're like, hey, we want to
- 49:36build like the optimization system for AI products because
- 49:40the first thing they'd have to do is like, they'd be like, OK,
- 49:42well, what we need is the ability to like build evals and
- 49:45run them over data sets and put that in the like closed loop of
- 49:47the optimization. I mean, people are doing.
- 49:49It's like Anthropic has some experimental API's around prompt
- 49:53improvement. So if you go into the Anthropic
- 49:55console or if you go into their API, they're like, take a prompt
- 49:58and they'll rewrite that prompt for you sort of using best
- 50:01practices for Claude. But it doesn't tell you anything
- 50:04about like how good did it get better or for your use case.
- 50:08And I think having this eval suite coupled to the auto
- 50:11optimization gives us a unique advantage over anyone else's
- 50:15building in the space. It sounds a bit magical and so I
- 50:19want to see it when you release it.
- 50:21Like come and show us because. I would, I would love to come
- 50:24back. And I mean, what we're going to
- 50:25try and do, the reason why we're launching it in beta for us with
- 50:28small number of customers is exactly this, that we know there
- 50:31will be skepticism because the promise is so big.
- 50:34Yeah. And So what we would like to do
- 50:37is we want to launch it with like concrete case studies to
- 50:39kind of help people kind of get over that initial skepticism.
- 50:43But I know from having used it in kind of our research work and
- 50:46having a very good intuitive sense of what people are trying
- 50:49to do, I have very high confidence that this will work.
- 50:52And so are there things that whether it is creating a more
- 50:59fine-tuned prompt or just having more prompts that you can pull
- 51:03from or having more eval data points, does that add to the
- 51:10success rate? Or is it like whatever, give us
- 51:14that baseline and we'll add on to it with synthetic data, with
- 51:18some evals that we get and we don't even need you around?
- 51:24No, we still so we like the taste of the end user is not
- 51:28something that we can ever like replace and they express what
- 51:33they want, right. You said moving to a decorative
- 51:35approach in two ways, right, in the definition of the evals and
- 51:39the feedback they give us, right.
- 51:41So one of the things that we can do is much the same way that we
- 51:43might that the human teams today ask the domain expert for
- 51:47feedback in terms of score these outputs.
- 51:50That's something that we can ask for.
- 51:52And then the auto evals that are already there also guided.
- 51:54So we cannot like, you know, there's no, there's no free
- 51:58lunch. We're not magically able to
- 52:00build a better system than you like without your input.
- 52:04But what we're changing is that like all we need from you, as
- 52:07you say, it's decorative is like for you to express what you want
- 52:10clearly through like decisions and feedback.
- 52:13So like, yes, this one, not that one.
- 52:14Preference data, definitions of evaluation, some minimum
- 52:18criteria of what good looks like and a first version of the
- 52:21system from which we can infer your goal.
- 52:23And then from that we can run. So when you tell people about
- 52:27human loop, how do you describe it?
- 52:30So we describe Human Loop as the LLM eval platform for
- 52:33enterprises. And we're focused on evals
- 52:35because that tends to be the most foundational piece.
- 52:38It's not the only part of Human Loop, right?
- 52:39We're really trying to give you all the tools you need to do
- 52:42prompt management, to do observability, to do evaluation,
- 52:45to get a reliable AI system. And I think we're quickly
- 52:47becoming the kind of sort of industry standard for evals.
- 52:51So that's the bit we lead with because I'd rather be, you know,
- 52:55100% clear and 80% accurate.