TRANSCRIPT 🔗
speaker-0: All right, welcome back to the weekly AI Clarity Podcast. From Hamill, evals can be a dry subject, data pipelines, metrics, LM as a judge calibration, but that doesn't mean we can't have fun with it. I agree. I've been collecting these memes while teaching our AI Evals course, Hamill says. If you've ever shar stared at a 100% pass rate and felt suspicious, or watched someone reach for a new vector database before running a single eval, you'll probably relate. Let's go ahead and start with this one. This is Hamill's favorite.
speaker-1: Well,
speaker-0: Let's watch it together.
speaker-1: It's good, it's Who's
speaker-0: The background music makes it really like Yeah, so you made this back when you were at three thousand alumni. Yeah. Yo, okay, wait. So tell me more about that meme. Clearly there were so many it industry insider level things, the terms and phrases. What inspired this meme and
speaker-1: Yeah, what inspired that meme was there was there's a framework called HTMX.
speaker-0: H K Max. So
speaker-1: HTMX had this some person created a meme for HTMX. And it was exactly this. It was like all the things that HTMX is trying to like avoid. And you could probably see it on Twitter somewhere. It's like HTMX. you could see like the original like it was just like this. It was the same video. Same video. But was for HTMX.
speaker-0: Okay. So you clearly, as this is going, started making memes as a way to make light of, but also poignantly center on the problems and solutions of a valve analysis. And this is you so you saw this HTMX video and this inspired you to make an
speaker-1: If you see the HTMX video you'll get it. You'll be like, I can see I mean it's just amazing. It might be hard to find, but it was just like you know, it was like front end web development, all the paper cuts that you get and like what HTMX is trying to solve for. They had like this exact same thing. I was like, I can do this for you. This is a perfect video, it's hilarious.
speaker-0: It is so hilarious. Did the background music come with that origin? Dude,
speaker-1: Yeah, yeah.
speaker-0: that background music just makes the video. Where it's like this holy, like pure, like amazing solution to all of your problems, the silver bullet. Yeah. Yeah. It's so perfect.
speaker-1: It's great.
speaker-0: Okay. I especially like this, like where he slaps the tape. Yeah. Right there. New model dropped, it was fuck it. Incomplete prompts. Fuck data valves. I need a graph TV. We just talked about that. Fuck it. Unpredictable inputs. We
speaker-1: Give out
speaker-0: should buy two data valves. I I wonder if this tape would actually be good. Like I have usages for
speaker-1: Tape is yeah. I think tape is good actually.
speaker-0: The tapes actually fire. Unlike unlike HTMX, guess. All right. Next meme. When you're asked how can we trust the LM judge? And there's two monkeys sitting side by side, one in a brick, one's real, one is a stuffed animal. Tell me more about this meme.
speaker-1: Yeah, it's like, okay, most people they have an LM judge, they just have a prompt that says like, Hey, is this good? Or they might have a better prompt than that, but they that's all they got is a prompt. You need to align an LM judge with human labels. And so this is just making fun of the fact that most people when asked how their el how they know their LM judge is good, they have nothing to they ha they have no answer. They're like really sheepish about it. They'd rather go hide. Yeah. And that's where the meme comes from.
speaker-0: I see. I see. I thought it was something about w looking at itself and how the LM drug. There's
speaker-1: It's like we got you. We know you can't hide.
speaker-0: nowhere to hide. Especially when users are knocking on the door and generating random user queries. Or when you b made this as a demo and you think it's sick and then you bring it to your executive and they ask you it's something that you never expected.
speaker-1: Yeah, like how do you know if it's good though? Like how do you know if the judge is good?
speaker-0: How do actually measure this thing? All questions that AI builders should be asking. All right. Next meme. Our vows need to be application specific. We can't just use some generic helpfulness score, but all the vendors sell them. It's an industry standard. It's fast. Generic metrics create a false sense of confidence. We need to do real error analysis. The guy throws over the table and chair. You're overcomplicating it. Our users don't care about a coherent score. They care that the application actually works. Wow, that's a very powerful statement that just like when you put it out there, it's like, yeah, nobody gives a shit about helpfulness scores, coherent scores. Your users don't care. It's if they got value from using the thing. Yeah. Right? Did it improve my life? Is it good? Yeah. Right? Yeah. Okay. So what do AI builders need to know about a valves and error analysis from this meme and what it
speaker-1: Yeah, I mean that means like hey, like don't use off the shelf metrics, don't use off the shelf frameworks. Like look at your data, make metrics that are specific to your problem.
speaker-0: And I like this sort of backwardsness, which is the person that's saying let's go with the generic thing is saying you're overcomplicating it. But it's like, but you actually are. You're you're trying to bring in all these fake scores.
speaker-1: No, this this meme is the kind of argument you're going to have as an AI builder, that as a practitioner, someone on your team is gonna be like, let's just use the framework and you're gonna have to fight them just like this.
speaker-0: Just like this. So expect maybe tables and chairs thrown over, but hold your ground and say our users don't care about a coherent score. They care that the application actually works. Very good meme. High quality meme. Actually, okay, let's start rating these memes. Okay. How would you rate this? With
Load full transcript
this out of ten in terms of let's say
speaker-1: I I made it like eight.
speaker-0: 'Cause you were saying like the other meme, the pompous one, it wasn't like as strong. No. What'd you rate that one?
speaker-1: That one's like a five. That was more educational. Okay.
speaker-0: Okay. So now we're getting to a rubric around memes.
speaker-1: All right, wait.
speaker-0: That's kinda hilarious. What about this meme? Going back to going back to your favorite inval meme. This is ten out of ten. This is the gold stand. Can you really this is
speaker-1: Yeah. I'm laughing as a work of art. I'm laughing you.
speaker-0: Even just thinking about it. Wait, I just wanna see the model dropping. Yeah.
speaker-1: I love it. It's great.
speaker-0: All right, next meme. When the dashboard shows 100% pass rate on neurovalves, this is a monkey in a suit and tie. What do AI builders need to know about the message of this meme and what inspired this?
speaker-1: Yeah, so like look, if you have a bunch of evals and they're all one hundred percent, it's just like hundred percent across the board, no mistakes, nothing. you should feel really bad about that. Like 'cause it's not telling you anything. We just keep saying a hundred percent all the time. Even if you reach hundred percent across the board one time, just means your evals are weak. You should try to construct a situation where you're not saturating your evals, you're giving yourself ch challenging problems in which to hill climb against.
speaker-0: Say more on saturation and hill climbing.
speaker-1: Yeah, saturation is just like, hey, you've exhausted the eval. It's not giving you any more signal. You've totally, you know, conquered that thing. It's not providing you with a challenge. It's not guiding you towards improvement because you already conquered it. And so it's not a good it's unlike unit test. Unit tests that you have in software, you want it to pass 100% of the time. Evals are meant to challenge you. It's a goal that you're trying to move towards. And so you shouldn't sandbag it.
speaker-0: So give me an example of saturation and it being a challenge to the agent building work for your your courses analogy is always this recipe chatbot. Right. So tell me more about recipe chatbot as an analogy and then grounding your message here in that.
speaker-1: Yeah, so if you have like a recipe chat bot that's like help you with creating a recipe for your daily cooking needs, okay. you might have different evals like not adhering to vegan preferences or giving people diabetic guidance when it shouldn't. Mm-hmm. You want to stay away from that. Something like that. Like you have all these things that might be going wrong. You don't want to just have hundred percent pass rate on all of those. You wanna have try to think of some more like challenging evals. Now if your product is super simple, it's fine. Yeah. But if you have like some commercial pro product,
speaker-0: Like a health thing.
speaker-1: yeah, then
you know, if you're truly challenging yourself, you should not have a hundred percent evals. Yeah. And yeah, like if your product is trivial, okay fine. But then like who cares anyway. Like you just like maybe you shouldn't have evals, maybe you don't need that many it's maybe evals or just y you can kinda be loose about it. Yeah. So that's all I mean.
speaker-0: I see. Okay. So if you're reading a hundred percent pass rates on your avows week over week as an AI builder team, you're probably this monkey in this team. Yeah. Definitely. It kind of reminds me of this saying of just the idea of smelling your own farts. You know, like you're just into that. Like, hey dude, like we just want to know we're doing a good job. It's like, no, you're not. Like we want to know where we're doing a bad job and we could do better. So great. Monkey meme. Another monkey meme. Could an L L just do my avows for me? Super hardcore thinking face. Yeah. So what should AI builders understand about the message of this meme and what inspired this meme?
speaker-1: Everyone wants to ask this like, hey, this evals shit, like, can we just get a LM to do it for us? After all, LMs do all kinds of other monotonous stuff for you and certainly evals sound monotonous. They sound like a chore. Just let the LM, just let the AI do it. What could possibly go wrong? And that's why this this is monkey meme because it's really just a d dumb ass idea. Like you don't want to do that 'cause you're gonna miss a lot of errors if you do it this way. You have to look at your data because you don't even know what you want until you look at your data. There's certain types of things that an LM has no chance of finding things that take product judgment and taste that maybe look okay on the surface but they're not okay when you go through and read the trace. For example, okay like if you have a sales assistant and the user has an objection, like I can't afford this They I might say, Okay, thank you. No problem. And like as far as like L L Ms are trained to be helpful, but that's not what you want for a sales assistant, you might want to handle the objection or think about alternatives. So it's a common example. There's all kinds of examples that have come up.
speaker-0: With you one example I thought was super funny. I was doing some work for this is a small piece of work like a year ago. And this AI builder and I hopped on a call and they were like, Hey, we have this sales assistant, customer support agent on the website, their e-commerce platform. And they made this sick demo and they thought, great, this is gonna work. And it took them, you know, all of an hour to make a sick demo. And then they decided, my gosh, because everybody around them didn't know how a an agent worked, especially last year. Nobody really knew. It's just markdown file, system prompt, like and then it evolved to harness artifacts and management and avows and data sets and more rigorous engineering. But this is before the before days. So then fast forward they they pitch it to their executive team as like, we completed the project in record time. Because they thought it would take forever. And then the first thing the executive did was ask it about its competitors. And then the Agent started recommending competitor products. And so this is a perfect use case of like that engineer or that AI builder only prototype something. But to go from prototype to production, you have to consider all those things. And like you said, an LM wants to be helpful. So if you ask it, hey, it's even if you dress it up with a system prompt of like, hey, you are this platform's customer support agent. And unless you have a grading rubric and a valve and a data set of examples where how do you handle a user query centered around the competition. Like you're not going to cover that case. Right. So yeah, that that's a case where they literally just had the LM do the evals for them and bootstrap this whole thing very quickly. But that removes the whole expertise of how the customer support team would normally handle that case. Yeah. Anyway, just kind of hilarious. Like customer support agent for a product recommends competitor product. Like that's like that's just such a meme, dude. Like all right. Next meme. Claude, find all errors. Make no mistakes. Is this Chris Williamson? The super buff like strongman guy?
speaker-1: I have no idea. But it's like a meme for like yeah, someone trying to I mean it's like yeah.
speaker-0: Wait, I go okay, wait, what should AI builders know about the message of this meme and what inspired this? What will like
speaker-1: It's really the same thing as the Last of the Monkey memes, like you can't just let AI do your evals.
speaker-0: So is this guy supposed to be like dumb? Like is that
speaker-1: No, he's just like it's kind of this guy that's like super locked in. Yeah. And he's like this
speaker-0: What he does.
speaker-1: and he's like you know, just like a power user. Yeah. He's like aggressively using the computer. Super aggressive. And he's like, Okay, make no mistake. Yeah.
speaker-0: There are no mistakes. No, I will not tolerate any mistakes. Okay. Sick. All right, it's meme. Ooh, I like the I like animals. When someone suggests you write a hundred evaluators before you've looked at data, and this bear's holding out his hands and he's saying, How about no? All right. What should AI builders understand about the message of this meme? And what what is
speaker-1: Really tempting to sit there and brainstorm all the ways your app can fail and be like, Hey, I'm just gonna write evals for all the ways apps can fail, like like you brought up the competitor thing. Yeah. So you can brainstorm five hundred things like that and you can sit there and write evals for all of them and you should not do that because number one, evals are expensive. You have to maintain them, you have to validate them, etc. And then number two, like you so you have to prioritize what
you Because they're expensive, you need to prioritize your time. And it's best to prioritize it towards failures that are actually happening in your application. So you get more immediate ROI instead of just trying to like all these hypothetical use cases.
speaker-0: Interesting.
speaker-1: It's okay to like have some hypothetical use cases in mind. If you do have hypothetical use cases in mind, you should try to actually reproduce it. So if you're afraid of it mentioning a competitor product, you gotta try. to r make sure your product is doing that and then use that as an email. But generally speaking, you wanna ground it first in like actual user errors.
speaker-0: So talk to me about that concept but applied to, say, a pre product market fit team versus a post product market fit team. I'm guessing the flop
speaker-1: still want some users, like even pre pro product market fit, like you want to try to have some pilot users or some like friendly users. And you wanna try to see if you can ground your Evals in actual problems they're having instead of hypothet hypothetical problems. Because again, you need to get ROI quickly from Evals. Mm. Because like it's a it can be expensive, it's time consuming, it can be kind of boring. So you know and it's not boring if you find issues and start fixing things and you're like, this this is actually really useful.
speaker-0: So is that actually just digging into that? Because you've taught over 5,000 students now, AI evals, how to objectively measurably improve your agents and LN-based products. So you you mentioned this a lot, which is like, yes, this is the boring stuff. But actually, and the core message is but actually looking at your data is the most important fucking habit. Like, do that, your agent product will improve. And that's something that I see in my own work is just part of it is evangelizing. the unglamorous part of just looking at your data and like doing the annotations and recording expert judgment. So there's a question there, which is, have you thought about how to make that a stickier habit or more enjoyable habit?
speaker-1: Yeah, I mean the best way to make that more stickier is to build your own annotation apps. To remove all the friction and the pain of looking at data. We can go through people.
speaker-0: Quick, so so for an AI builder that like doesn't even know what annotations are, is
speaker-1: Quick.
speaker-0: this fly by annotations, why they're important and then why you would like build a a specific annotation app.
speaker-1: So you might have logs of your product, typically traces. These are like JSON logs of what happened in your user sessions, like all the back and forth turns with the AI, tool calls, retrieval, whatever. And basically you want to be able to review all that data. But okay, you don't want to just put it in a spreadsheet, because that's going to be painful to look at. You don't want to just open the JSON file and VS code or cursor, because that's going to
be painful. What how can you make it as least painful as possible, make a simple web application that renders those logs and those traces, hides information that usually isn't helpful, shows you like the highest value thing, and allows you to paginate through these log files quickly and then annotate where you think an error is happening. And then also like help you search through your logs. Because AI is really good at that. So that helps make it less painful and sometimes you need other context on the screen. Might need some information from outside the logs to judge whether or not something went wrong. Or you might want different kinds of filters, different kinds of navigation depending on your domain. You might want to render the data totally differently depending on your domain. Like if you're trying to parse information out of PDFs, then you want something that is like shows you a document with bounding boxes where the data was parsed from, etcetera. Again, agents are really good at this. You should totally be making something customized to your data so that you can remove the pain.
speaker-0: So in summary, if you're an AI builder, annotations and error analysis of where your agent is not doing well, annotations of why it's not doing well, that's so important. Yes. And it's unglamorous and not sexy. So how to make it less painful, more frictionless, is to personalize annotation apps around your log data and up leveling the highest value things to apply human judgment. Cool. And that way you get to the agent being more aligned with human labels. Cool. so yeah, when someone suggests you write a hundred evaluators before you've looked at data, how about now? Also, we're learning from Hamel, the best in the game at evals, an objective measurable agent improvement, that doing this is also from a product perspective, just really expensive before you even understood where the heat map of most of your errors are. Yes. Yeah. So it's it's kind of a prioritization problem. Well one thing I wanted to ask as well that's a bit more nuanced is I've always thought of software development, just like developing a house, like there's a tax for the maintenance, right? So you could think about this in terms of, well, if I have a scrum team of let's say four engineers, I have forty hours a week. That's four times forty. That's 160 times another let's say two weeks is a sprint. So that's three hundred and twenty hours. Let's say like twenty hours is a feature. That's sixteen features. Usually I always thought about early in my product management career days, as like I should reserve some bucket, like I don't know, five to thirty percent, something like that, for like technical debt, errors, bugs, support, maintenance, right? So when we think about evals, I sort of have this question, which is how can an AI product team estimate that tax or that maintenance? Like you're saying, like, okay, hundreds of evaluators, probably like I could imagine already, like, yes,
that seems very painful. But if someone's making one here, two there, it's harder to understand. So do you have like a measure that you recommend?
speaker-1: No, there's not like a formulae thing. You gotta have to practice it and you'll get a strong intuition. There's different kinds of evals, there's code based evals like unit tests, which are per practically free. Yeah. And then there's LM as a judge, which is very expensive. You gotta validate against human labels and do all this stuff. And that is way more expensive. And so you have to think about what is the benefit of the eval and weigh that against the cost of the eval.
speaker-0: I think.
speaker-1: And the benefit of the eval is centers around like how hard the problem is and how much you think you're gonna need to iterate. And therefore, like how much are you gonna be using this e though to to kill climb.
speaker-0: I see. Okay. Say more about hill climbing. I think we went off before you.
speaker-1: Hill climb just means optimize a metric or conquer a goal. Like you how you set a goal for yourself, you set a metric and you just wanna hill climb just means you move towards that goal.
speaker-0: I see. Okay. Yeah. That really adds up with the latest anthropic article about Evals and hill climbing. Okay, cool. Thanks for answering those. All right. This was already hilarious. Next meme. Forcing your PMs to look at traces instead of reporting coherent score. And we see here a young man prying open
speaker-1: Yeah, that's Nikita Beer. Yeah. The former, like, I think had a product of X Wait. I think it's AIJ can actually do that, yeah. Okay.
speaker-0: Is this an AI generated? Okay. And he's just prying for for folks listening, he's prying this is Nikita Beer, prying open the eyes of an old lady who is in shock of what she's seeing and trying to actively resist. So that's the caption again is forcing your PMs to look at traces instead of reporting coherence score. All right. Well tell me more about the message behind this for AI builders and the inspiration. Yeah.
speaker-1: Look, like it's not intuitive that you need to look at your data. Okay. What
speaker-0: Wait, think more about that. Why is it not in
speaker-1: because it feels like a manual task. It feels like you're gonna go to a beach, you're gonna pick up one grain of sand at a time, you're gonna look at it. And you must you feel that this doesn't seem like a good idea. Yeah, yeah, yeah, yeah. B because how can w looking at one piece of data move you towards your goal? Yeah. And the the answer is it absolutely does. you know, there's a lot in there's a lot of alpha in your data. You're not just looking through it randomly. Mm-hmm. You know, like you can sample your data in ways to maximize the chance. How
speaker-0: How does an AI builder sample their data in ways to maximize chance value of their error analysis activity?
speaker-1: Yeah, we have a skill called the error discovery skill on GitHub. You can Google Hamel error discovery.
speaker-0: Or drop ha the comment Hamel and whatever you're seeing this, we'll DM it to you.
speaker-1: There you go. And that will help your agent like sample the data. You know, it does some clustering, it tries to get diverse sort of traces. Then also looks at what you're annotating and like looks look gets clues from that on what else might be interesting. or if you haven't annotated enough of that particular error, it'll get more things like the error. It'll make judgment calls, it'll try to Okay do a little bit of, you know, it's like prior. Yeah, prioritization and searching for you. It's not perfect. Yeah. Just like anything else, but yeah. You know, it's one way that wanna be trying to have a more fruitful search through your data.
speaker-0: Like colors your sand. So you could look for it. Yeah. Okay. I like that analogy by the way. I do think that that's how people feel when you tell to look at the data. Yeah. 'Cause it's so overwhelming. Like it's like I have millions of rows. Like what? You know? Great. this one, Obama meme. LM output being rewarded a medal by LM judge not grounded by human labels, both Obamas, one is happier than the other. All right. Hamel, what should AI builders get? From the message of this meme.
speaker-1: Yeah, it's like look, you know, you don't wanna just use another LM to tell you whether or not your product is good. That's not g telling you anything. You're gonna be like this meme, you're just reward patting yourself on the back. Yeah. Well you need to do is have human labels or some other trusted source where you you know it's the ground truth and give yourself a reason to trust the L as a judge. Don't just go on it by faith. And
speaker-0: Do you have like a typical amount of human labels you recommend as a minimum viable eval, sort of?
speaker-1: It's not like a bright line rule. Try to tell people, hey, like, have at least fifty labels. But that's just because people love to need a number. Yeah. They will like not be able to sleep at night if I don't say like I number. So
speaker-0: Can personally. Yeah. So
speaker-1: that's why I say fifty, at least it gives you some mental
speaker-0: Hill decline.
speaker-1: Yeah. Gives you like a goal that you can achieve. But you know, like the less labels you have, the noisier your statistics are. So that's all you have to care about.
speaker-0: More about that.
speaker-1: I mean like if you only have like three human labels, then the the noise, the variance is gonna be super high. 'Cause you know your sample size is low. So when you go to compute the statistics of agreement between your human and the judge, you know, you you w you want to measure precision and recall, not just agreement. Yeah. Then it's gonna be super noisy. Yeah. It's gonna give you some estimate. Super skewed. Whatever estimate you get is gonna be You can have error bars like very large, right? If you don't have a big enough sample. Three.
speaker-0: Yeah.
speaker-1: And this is
something you can measure. Yeah.
speaker-0: Yeah, yeah. Definitely check Hamill's blog and his course for how to measure in more detail. All right, let's go over a couple more. Okay, keep going on the Obama meme game. You. We check our AI with coherent score. Then how can how we can trust this coherent score? You. And this he's sweating bullets. So
speaker-1: Yeah.
speaker-0: have you seen this play out in real life?
speaker-1: All the time. All the time. And sometimes I am the person that is invoking the stress. So like someone will come to me very excited with a dashboard, be like, Hey, look at super hype. Look at all these scores, like helpfulness, coherence, G score, whatever score. I'm like, I don't even know what half the scores mean, honestly. And I'm like, Okay, how do you know that this is good? Like, what is that score telling me? And how how do you know that this that we can trust it? Cricket.
speaker-0: Yeah. Crack it.
speaker-1: This guy. And then that's when people get stressed out. They're like, shit. You're like, We you're like that's they're like, that's a good question. Actually. And I'm like,
speaker-0: Nobody in the room wants to say that. But that's actually what it is. Dude,
speaker-1: Yeah.
speaker-0: you know the craziest shit is like I've just seen millions and millions of dollars down the drain. Like, and and and what it is is like this is some engineering leader wanting to be like, no, did we just throw away millions and millions of dollars? Like we didn't answer that simple fucking question. How do we know it's improving? Right? Like, that's what it is. There's sort of this. I I think that plus the combined, my gosh, to do the right thing has to go, we have to go to the beach, pick up grades of sand. It's just these things are like drugs, like the the coherence scores and stuff. It's like you don't wanna go to the beach grains of drugs. Here's
speaker-1: Good friend.
speaker-0: a Mai Tai and we'll give you a score. Like
speaker-1: Yeah.
speaker-0: it that's and take give us money for the right.
speaker-1: Right.
speaker-0: And then when somebody real comes along and they're like, How do you know that this gets better week over week? And they're like,
speaker-1: Yeah, yeah. Yeah. It happens all the time.
speaker-0: man. Send us a note if this is happening to you. Hamill does have some he has a big FAQ. I would recommend going to it. And I think part of it as well is how do you convince your team to Yeah. All right. Next meme. What are your superpowers again? I read faces logged by AI products. And this is Batman and Robin for context. So I think two
speaker-1: So the original I think is like what are your superpowers? And he just says I'm rich and And then the theory is like, Okay, if you're an AI engineer, what are your superpowers? If you're really good, it's like I look at data.
speaker-0: Yeah. I'm rich with my error analysis, bro. Like I'll be error analysing all error analyzing all day. Every day. By the way, what
as as I go through this, what is your meme? How do you like, what's your meme creation process?
speaker-1: How you man, I had this out there memeing? Like no, I had this whole meme creation process. I use this thing called meme lord.
speaker-0: Mean Lord
speaker-1: Yeah, it's a software. Does that C Power can get memes? I'm not doing memes anymore. I think I like saturated the meme.
speaker-0: you dominated the Eval meme market. There's no more memes than event
speaker-1: No, just like
speaker-0: There's more no more laughter to be mined from this Eval's content market.
speaker-1: Yeah, maybe I'll come back to it one day but So this
speaker-0: This is Meme More,
speaker-1: Yeah.
speaker-0: the home of the professional and professional. So wait, you had a I just for the pod audience, what was your meme creation process?
speaker-1: So I had this whole thing where, you know, it's like what are common mistakes people make and it would mine like memes. I would also pay attention to memes. There are like people that meme a lot on on X. I don't even remember who they are, but there's people like have memes. I would like pay close attention to memes and like this is really funny. Maybe I can, you know, do that, do something like that. And yeah, I just paid attention to it.
speaker-0: So these are memes created with expert care and love. I see. Yeah. All right. Using meme lord. This is that's actually great. I love it. All right. Next meme. Reviewing every single trace instead of using a transition failure matrix. Isn't Bill Garm
speaker-1: Gates.
speaker-0: Buffett with giant paddle? What's the what's the
speaker-1: Yeah, it's like, okay, like, you know, you should use good analytical tools. This is a little bit technical, so we may not be able to cover it. Try
speaker-0: No, it's
speaker-1: but yeah, there's good analytical tools. There's something called the transition failure matrix, which is an analytical tool you can look at for long running agents with a lot of tool calls and a lot of steps. Mm. You can s like a put things in like this grid and see like what's failing, like a heat map of what's failing, like from one state to another state. okay. What state tends to fail the most and then you can use that to help you prioritize like what to zoom in on.
speaker-0: For your long running agent task.
speaker-1: Yeah, if you're a long running agent task or if it's just like highly agentic in general and just like has a lot of moving parts and tool calls and stuff. Okay. Yeah, it can be really useful. So it's like, okay, you know, don't brute force everything. Like g go about evals in a smart way. Use analytical tools.
speaker-0: Use the right tool for the job. So when you have lots and lots of traces, use transition failure matrices.
speaker-1: Yeah, that's one approach. And there's all kinds of other things. We talked about like how to sample earlier. Yeah. So it just use you have to put on your data science hat in the limit. Yeah. And say like, okay,
how do you look at data efficiently?
speaker-0: So maybe that's an interesting thing. What are the top three pieces of advice you would give to AI builders that are discovering they have to also be data scientists? 'Cause that's actually the name of the game.
speaker-1: Practice, yeah. Practice looking at data, exploring data. There's a lot of different like exploratory techniques with data, but it's also just having practice like building metrics, knowing what goes wrong with those metrics, knowing like all the biases that exist. That's the best advice I have.
speaker-0: Okay. Got it. Cool. So practice makes perfect. You heard it, folks. All right, let's do two more. This one. Is this AI Evals? Data Analysis of Traces is a little butterfly. Okay. What should AI builders take away from this meme and what was the inspiration for this, Hamill?
speaker-1: Yeah, I think people get confused. When people think of evals, right, they think about what are the scores? Gimme just give me the scores. Give me the test, give me the scores, I want the metrics. The evals is an entire process and the most important part of the process is looking at the data and it's analyzing data actually. It's not it's not really like the metrics that are the metrics are important, but I think there's a lot of emphasis on metrics. There's not enough emphasis of doing data analysis of your traces to see what is going on in your data. and so I that's what this meme meme is about.
speaker-0: Yeah.
speaker-1: Is the surprise that a lot of AI engineers have.
speaker-0: It. So you're saying most AI engineers have this belief that actually just give me a score. Give try to help. But
speaker-1: Absolutely a hundred percent.
speaker-0: you're saying you gotta look at this differently philosophically. It's about defining and prioritizing where your agent is weak and then figuring out should I even put in a vowel here? Is it worthwhile or valuable to the end user and my business to do that? Because that's a tax, like we talked about. It takes effort to even bootstrap one, validate it, improve it. And so it's much more of this mindset of use the right tool for the job and get into your error analysis, but in thoughtful way, like you were saying earlier with the error discovery skill or with the transition failure matrices as ways to look at your data more intelligently. Okay. Yeah, I like this as well. This is this comes up in my feed a lot in other other types of memory. Okay. Is there one you want to end with? You wanna pick one of these last ones to end with?
speaker-1: do the snow leopard one.
speaker-0: Okay. It's so there's a snow leopard here. It says pass on everything and then there's this skier snowboarder woman. My judge is ninety five percent accurate. She's really hyped. The snow leopard looks equally pretty hyped.
speaker-1: Yes, yeah, yeah, yeah, exactly.
speaker-0: So tell me more about what AI building should take.
speaker-1: So look, like when people have their LM as a judge, they love to compute agreement or they love to compute accuracy. Accuracy.
speaker-0: Helpfulness.
speaker-1: So it's not about yeah, so accuracy is a very tempting metric. Like let's say you have a hundred examples and you have a hundred labels. A lot of people naively will say, What is the accuracy of my LM a judge? by saying like what is the like how many of those labels did I get right? That is the wrong way to look at it.
speaker-0: Why is it the wrong way to look?
speaker-1: Because a lot of ti most errors are not balanced. It's not like fit most errors you can find in your data, they're not like half of them have errors and half of them don't. No. It's like it's probably like a few errors or like maybe ten percent of your traces have errors, twenty percent. That meme is just showing is just driving home the point. Like look, if your error only happens five percent of the time, it is super trivial to have ninety five percent accuracy. 'Cause all you gotta do is just say it never errors and you will be ninety five percent accurate. So instead you gotta measure precision and recall and you gotta compute Yeah.
speaker-0: Say more about precision and recall.
speaker-1: So precision is out of the examples that you identify that has a problem, out of just those that you say this has a problem, how many of those are correctly identified as having a problem? Mm-hmm. That's basically trying to measure like how much noise are you introducing you know, as an alert. So if you have like high precision, then it's not that much noise. Yeah. Because you are everything you say is has a problem actually has a problem. Lower. not really low error bars. It's just saying like when you say something is an issue, it's an issue if it has high precision. It's
speaker-0: See consistently.
speaker-1: not really consistency either. No. It's like it's just saying like, okay, so let's talk about recall and come back to precision. Recall is how many errors can you find in the first place? Like you know, and not miss any errors. So that's recall. How many errors can you recall? How many can you find in this like messy bucket of of like s a lot of non-errors and errors? How can like how good are you at getting all of the errors? Yeah. Precision is like, okay, well you can just get all you can just say all of them are errors and have 100% recall. Yeah. You just say like you all have errors. Then you'll get 100% recall. Precision is Okay, out of the ones you said is an error, how many of them actually are errors? That's precision. There's a precision recall trade off. There's always a precision recall trade off. You can always get more recall by just saying this just relaxing your criteria and saying like, look, everybody's guilty. I see. And that will give you higher recall, but then that will lower your precision. And you can always get less precision by just saying, like, I'm only gonna go when I'm like I'm only gonna mark something as failing or guilty or whatever
when it ha I have like hundred percent confidence. Then you're not gonna you might you'll you know, and the one person that you mark or whatever will be able to have a problem, but you'll miss everyone else, right? So there's a inherent precision recall trade off that you have to make depending on your product your product goals. And you have to measure that. You can't just measure have agreement. This is a big mistake to like say to put the word accuracy. So if you ever go into a meeting that has evals in it and someone puts up the word accuracy on the slide on a dashboard, you need to stop the meeting. Be like, what are you doing?
speaker-0: There might be a fucking snow leopard, but
speaker-1: Yeah, I mean it's like, yeah, that that immediately that number doesn't make any sense. Yeah. That
speaker-0: Yeah, yeah.
speaker-1: word doesn't make any sense in the context of evals. I see. You have to have a really good damn reason to be using using the word accuracy.
speaker-0: Got it. Okay. So for AI builders, don't use the word accuracy when it comes to evals and error.
speaker-1: Yeah, and it's not just don't just skate around it by like trying to like find a cine for accuracy, but don't that metric itself doesn't make sense. Yeah. Think about again precision recall, yeah.
speaker-0: Yeah. Think about precision and recall if you're an AI builder. Otherwise you're gonna have snow leopards on your ass.
speaker-1: Yeah.
speaker-0: Yeah. You could be happy thinking you're accurate. And then the competition
speaker-1: fool everybody in the room by saying it's ninety five percent accurate, everyone's gonna nod their head. Except when shit hits the fan and your product isn't good 'cause you're not actually measuring anything. Yeah.
speaker-0: Or this person comes in, how can we trust this c and
speaker-1: Yeah.
speaker-0: you'll be like, Wait, shit. I never thought about that.
speaker-1: Like I never thought about that. Like yeah, I was like
speaker-0: I thought numbers go up, thought we were good.
speaker-1: Like trust L L like whatever it says, it's like it's gone, right?
speaker-0: LM Judge, bro? Like, bruh, like get at me. Like what are you talking about? Yeah. Is validating its shit. It's another one. That's what it's doing.
speaker-1: Yeah. Exactly Exactly. that's rich. Okay. Like this is all fairly comical when you think about the kinds of errors people make, but this is like real
speaker-0: This happens on the daily. Yeah. This happens on the daily at multi million, multi billion dollar companies. That's what people need to understand. Yeah. And that's why I really appreciate your work, Camel, where you're trying to share truth around how do you actually objectively and measurably improve these systems, which is something we all need to learn about as AI builders to go from prototype demo all the way to production and users actually love it and they come back and they recommend it and the business makes money. So with that Snow Leopard meme, I think that was a great last one. Think about precision and recall. Don't say the word accuracy when it comes to your agents and objective measurable improvement. Thanks a lot, Hamil, for being my co-host and guest on this podcast today. No,
speaker-1: It was fun to be here.
speaker-0: that was sick. It was great to interview on your expertise at the intersection of memes as a medium to share that expertise. I think that's like so perfect. And I've seen these pop up in my feed, and I've definitely liked them and we shared them. So I appreciate you putting that in the world. One last shout-out for Hamill. If you see this, join the AI Avals for Engineers and PMs course. This is the most popular AI Avals course available. You could learn how to build, evaluate, improve AI agents that actually work in production. Check it out. Hamel has taught over 5,000 certified builders now, including builders at OpenAI and more. Thanks a lot for joining the pod. We'll catch you next time.
speaker-1: Thank you.