Skip to main content

AI Evaluation from First Principles: You Can't Manage What You Can't Measure

Summary

  • GenAI evaluation framework: Learn first-principles approaches to measuring GenAI quality—establishing reliable metrics for subjective evaluations on the Databricks Data and AI platform.
  • Calibrate LLM judges: Techniques for tuning LLM-based judges enable cost-effective, scalable evaluation of open-ended AI tasks without relying on expensive human annotation at scale.
  • Build evolving systems: Implement evaluation frameworks that grow with your AI capabilities, exposing what's working and what isn't to transform AI guesswork into measurable success.

AI Evaluation from First Principles: You Can't Manage What You Can't Measure

Watch: AI Evaluation from First Principles: You Can't Manage What You Can't Measure
Talk by Jonathan Frankle, Chief Scientist - Neural Networks, Databricks ; Pallavi Koppol, Research Scientist, Databricks
Is your AI evaluation process holding back your system's true potential? Many organizations struggle with improving GenAI quality because they don't know how to measure it effectively. This research session covers the principles of GenAI evaluation, offers a framework for measuring what truly matters, and demonstrates implementation using Databricks.
Key Takeaways:
-Practical approaches for establishing reliable metrics for subjective evaluations
-Techniques for calibrating LLM judges to enable cost-effective, scalable assessment
-Actionable frameworks for evaluation systems that evolve with your AI capabilities
Whether you're developing models, implementing AI solutions, or leading technical teams, this video will equip you to define meaningful quality metrics for your specific use cases and build evaluation systems that expose what's working and what isn't, transforming AI guesswork into measurable success.
Databricks Named a Leader in the 2025 Gartner® Magic Quadrant™ for Data Science and Machine Learning Platforms: https://www.databricks.com/blog/databricks-named-leader-2025-gartner-magic-quadrant-data-science-and-machine-learning
Build and deploy quality AI agent systems: https://www.databricks.com/product/artificial-intelligence
See all the product announcements from Data + AI Summit: https://www.databricks.com/events/dataaisummit-2025-announcements

Chapters

FAQs

Why is GenAI evaluation hard?

GenAI tasks often have subjective answers—humans may disagree on quality—making it challenging to define metrics. Calibrated LLM judges can reliably evaluate at scale.

What is the measurement gap?

The measurement gap is the gap between what we want to measure (overall quality) and what we can measure easily (specific, objective metrics)—bridging it is critical.

How do we calibrate LLM judges?

By establishing clear annotation guidelines, having LLM judges and humans evaluate samples, and measuring agreement—then iterating to improve judge calibration.

Can small teams use these techniques?

Yes, the three-by-three evaluation approach and LLM judge calibration enable small teams to build rigorous evaluation systems on the Databricks Data and AI platform.

Full transcript

0:00 Introduction

I'm chief AI scientist here at Data Bricks. Um, and I'm one of the leads of our AI research team. I came in through the Mosaic ML acquisition where I was one of the co-founders. Hi everyone. I'm a research scientist here at Data Bricks on the RL team. Um, super happy to get to chat with you all today. Um, and, do you have the clicker? I don't. Oh, I should have grabbed the clicker. Clicker would help. Um, so we're going to talk to you today about evaluating, you know, evaluating your AI systems from first principles.
It seems like this is a rather popular topic judging by the size of the crowd. And all I will say is it should be a popular topic and I'm very very glad that there are this many people who recognize how important it is, how hard it is, and kind of honestly how much of a mess it is right now. Um, I'm just curious as we let people trickle in. How many folks here have an EVEL for an AI task right now? Raise your hand if you have an EVEL.
Okay, we got a good crowd. Keep your hands up. Keep your hands up. We're not done yet. Um, keep your hand up if you are proud of your EVEL. And there go most of the hand. I see some heads shaking. I Yeah. Um, I'm curious as we let a couple people trickle in if somebody who whose hand went down can just kind of tell me like why aren't you proud of it? What are you worried about? If somebody wants to be brave and raise their hand, like what scares you about your eval?
Anybody? I saw a lot of hands go down. There we go. Go for it. Okay, so this is Let me repeat that one so everybody can hear it. Um, this is actually one of our friends who we've been working with to build evals and they're going through the process you're going to hear about today. And one interesting thing that happens is, you know, we need LLM judges that can do evaluation at least for open-ended tasks. So, there are many ways to write do a right answer.
You'll hear about all this in depth in a few minutes. Um, okay. It turns out that when you try to get humans to perform evaluation for your task, let's ignore the LLM part. Just get some humans to sit down and do it. Turns out the humans don't always agree either. Um, and if you have a task where the humans can't agree, then you might want to revisit your task definition because if reasonable humans can't agree, it's tricky.
Um, okay. It looks like we're closing the doors, so I think it's time to get started. Um, that's a great setup. So, just to give you a little bit of motivation here, um, I'm going to give you a bit of a metaphor. So, suppose you're building a new software product. Let's ignore AI for a moment. Um, we'll worry about AI in a few minutes. Uh, how many people here have written code before? Yeah. Okay. Yeah. I mean, come on.

2:17 Metaphor

Um, if you're coming to this talk, you've probably written some code before, I would guess, for most of you. Um how many people have shipped software before like actually shipped code that has gone into production? Yeah, I mean you know it's pretty common practice for folks who are doing AI. Um let's say you write a so this is how software engineering works in industry in my understanding. You write a thousand line script in Python.
You might vibe code it but you write it somehow just thousand lines you know you don't need functions just write it straight through. Um you play with it a little bit you know just check it out run it on a few inputs make sure it works. um seems good and then you know you ship to prod. That's how software engineering works, right? Um, yeah, this is I mean, you know, I speaking as a former professional software engineer, you were a software engineer for a while.
Professional software engineer. This is how you this is how you ship software to, you know, self-driving cars, right? Uh, definitely not. They are They're very safe. They're very safe. Um, yeah. No way in hell would anybody ever ship a piece of software this way. You would be insane. That would be crazy. Um, now I'm going to replace the word software with AI or, you know, this is how you actually do software. First of all, you write a design doc.
You break it into modules with abstraction boundaries. You write unit tests for typical cases and corner cases. You know, you write some integration tests. Then you actually build the thing and you know it works before you ship it. That's how you do software engineering, right? Or at least closer to it. Um, okay. Now, I'm going to give you the exact same thing I gave you on the last slide for how you build a piece of software.

3:29 Software vs AI

I'm going to just replace everything with AI. And now this is how people build AI today. If I said software, you would say I'm crazy. If I said AI, you would say, "Yeah, sounds good." Um, let's go do it. Um, I was chatting with one of our friends, you know, one of our customers recently, and they said something that is not atypical, so I'm not going to call them up by name. Um, we haven't upgraded from cloud 3. 5 to Claude 3.
7 yet because our person who does the Vibes is on vacation. How many people here does this resonate with? This sounds like, you know, the person who's doing the Vibes is on vacation, so we can't upgrade to the new model. This is something I actually hear about a lot with AI systems. Like, you know, check the vibes. Seems good, doesn't seem good. Oh, we've got that one person on our team. We've got, and has really good vibes and seems to like really know.
I have someone on our team, his name is. Um, he has really good vibes. Um, that is true. Um, this is the reality today of building AI. And I'd like to hope there's something better in the world. Um, the contention I'll make for you, I know everybody has said 2025 is a year of agents. Um genuinely I don't know what that means but you know we call everything agents now because 2025 is the year of agents. Last year it was um it was LLMs.

4:54 The Year of Agents

The year before that it was Genai. The year before that it was AI or AGI. You know it's but the year of agents. I want 2025. This is something I'm trying to manifest for everyone. 2025 is the year of AI engineering. What I mean by that this is the year we move from AI demos and vibes if I want to be derogatory about it to AI engineering. What that means is, you know, the watch word is going to be reliability for everyone.
Um, reliability is something we just take for granted when it comes to software. But I want it to be the watch word for AI as well. I want you to deploy a system that you believe will actually work. You have some confidence about it. The question I want to ask people, this seems like such a trivial question. Imagine again I swapped in the word software. I want you to build a piece of software that will still exist in a year.
Well, of course. That's how code works. It's like, I want you to build a building that will still be standing in a year. Of course, that's how we build buildings. That's how we do civil engineering. Um, I want to build an AI system that will still exist in a year. How many people have built one of those with Genai? Okay, we got a couple hands in the back there, the people who are hiding. Okay, one hand up here. Yeah, it's it's tricky.
I would like to get there. How do you build an AI system that more than one person can work on simultaneously where if two people make a change at the same time, they don't completely break each other's work? Imagine trying to do that to a prompt right now. Good luck with that. In software, imagine if we couldn't have more than one person work on a piece of software at the same time. Good luck building anything of note on a building, two people working on the design at the same time.
It is crazy where we are in AI. That is the thing I want to convey right now. It is insane that we have accepted this as a way of operating. How do you build a million line equivalent of an AI system which is a probably a lot of pieces of software that a lot of folks are running today or have contributed to at some point in their careers. How the hell do you do that with AI? That's what I want to get at. Um so you know our belief at data bricks is that it all starts with evals.
We want to be eval driven in how we do things. And you actually saw that um yesterday if you came to the keynote and you saw present our um agent bricks product. That agent bricks product, if you saw the demo, this is the energy drink demo. That's the most memorable way to refer to it. Um the first thing that did when she got on stage, she's, you know, the PM we work with on all this stuff. Um the first thing she did when she got on stage was not let me build an agent, let me build a prompt.
It was let me build an eval. It is baked into our product from the start. If I can give you one differentiator for doing AI at data bicks with our products, it is that we are being completely eval first and reliability first in how we're trying to build this because I'd like your AI systems to have all those nice properties. I'd like them to exist in a year. I'd like them to be things where they don't keep you up at night and you're not afraid of that they offered all your customers free stuff while you were asleep.
Um, I want you to not, you know, I want two people to be able to work on this at the same time without stepping on each other's toes. That is the future of, you know, what I want things to look like for AI and it's going to have to start with Eels. Um, so with that, I'm going to hand it over to because she has the actual technical details. I have the opinions. Um, we'll proceed from there. So before I get into the outline, I just want to say that there's a lot of like when we talk about the word word evaluation, it's actually quite overloaded, right?

8:06 Outline

Probably what I'm thinking I want to evaluate might be different than what someone else is trying to evaluate. I'm going to narrow in on talking about evaluations as a way to systematically measure quality. The reason I talk about quality is because we talk to a lot of customers and a lot of people's bottleneck um is I don't know if the quality of my system is high enough for me to put it out in front of a wider audience.
And this word quality comes up a lot. So I'm going to start talking about it in that way through the remainder of the talk. So first we'll kind of talk about the challenge like why is measuring quality important? And hopefully many of you already think it is, but for those who may still not believe, we'll just dig a little bit into it. Um, and also what makes it so challenging. Then we'll take a step back and talk a little bit about a framework we use here at Data Bricks that we kind of refer to as a 3x3 approach for understanding what your evaluation needs are based on where you are in the Genai life cycle.
Then we'll give a little bit of our solution for a recipe for building a gold standard uh evaluation, particularly an offline evaluation using LLM judges. Uh if you have like a verifiable task or stuff, this is a lot easier suddenly, right? You're like, well, does it work or not? But when it's fuzzy, it gets a little messy. So that's what we'll focus on. And then we'll wrap up with some takeaways, discussions, next steps, and some tools here at Data Bricks that can help support you through this process.
All right. So, the challenge, why bother measuring I guess I'm kind of giving it away here, but measuring and improving quality and you're preaching to the choir there. These are 300 people who came out to hear about evals. It's true. So, we'll kind of get through this one quickly, I hope, right? So, like you the main reason is to enable performance improvements, right? You want your application to be better. What does better even mean? like um how do you target areas of improvement in a strategic way, right?

9:54 Why Measure

How do you know that changes that you're making are actually improving and that you're moving in the direction that you want to move in? Um something I often talk about when it comes to evaluations just as an aside is or applications in general um is things are often like a vector, right? where there's a magnitude and a direction and people tend to care a lot about the magnitude and like improving performance. Uh but making sure that directionality is correct super important and super overlooked.
Um and that's what I think having a robust evaluation and a clear definition of quality can really help with. Um so yeah, make sure that the work you're doing is actually moving you to where you want to go. Uh in the spirit of that, right, a lot of us want to build applications that we can scale confidently. We want to know that as we increase the volume of like traffic that we're getting that we're having like reliable quality um over all those interactions.
We want to know that we can sorry I don't know why that we can evaluate large volumes of inputs and outputs in a robust way, right? Not just have like our one very tiredme or subject matter expert spot-checking things. And then also, why is any of this useful? You want to grow user trust and adoption, right? You want to give people consistent experiences. You don't want it to be like they show up once and it's great.
They show up the other time and it wastes like an hour of their day. Um, and that way you can kind of prevent user uh quality related user churn. It's really hard to win back that kind of trust in an application. So that's great and all. So now we believe that measuring quality is important but what is it that actually makes a solution good right that's like still quite unclear there's many use cases there's like customer service automation um I don't remember which examples I put up here because there's so many code generation and review um summarization content creation question answering like document analysis like there's so many things is so flexible there's so much we could do with it and that's amazing Um, but also it means that all of these different things have different quality requirements.

11:54 What Makes a Solution Good

What makes a code generation task really good probably different than what makes a question answering system really good. And even like within a single category, right? Like what makes a medical question answering system good is going to be different than what makes a legal or a technical question answering system good. Um, and the kind of the central issue here is that everything is so subjective and so context dependent that it's hard to have a one-sizefits-all solution for how to improve quality or what quality even is.
So, that's kind of a non-answer to what makes a solution good. But what we can focus on is what is the measurement gap and how do we bridge that gap, right? If we look at what we need versus what we have, what we need are kind of reliable quality metrics or signals that we believe in things that scale as our solutions scale um and that are consistent and that we like believe in repeatedly. What we have kind of as we discussed at the beginning of this talk are manual spot checks just randomly sampling and being like okay well these looked good enough I guess. um some subject matter experts like the vibes guy who is just like ah this is good enough I believe in this and you're like well I believe in that person so okay we're good um and just like vibes all over the place so how do we actually bridge these two things a lot of us are using LLM judges right and so we also think LLM judges are great if they're well calibrated right so in an ideal world you could take thosememes who have that like really good sense of taste I would say for what is quality and then encode that into something that scales more than any person individually could great um so that's oh okay well more detail on why calibrated LLM judges are yeah and sorry I threw this slide in there and my vision's not very good sorry I threw in a bunch of slides at the last minute just to make life very fun um but you there.

14:15 Why Calibrate LLM Judges

Why do you even use calibrated LM judges in the first place? Why aren't we using multiple choice questions? Why aren't we, you know, MMLU style? There are a lot of different ways to do this. Why aren't we using verified answers of some kind? And I think for most of the tasks I see in reality, they don't look like math olympiad and they don't look like multiple choice. They're open-ended. There are lots of ways to say the right thing.
You care about what is said and how it is said, not just that the right answer was somewhere in there. And there are a lot of ways for an LM to say the right thing. um fuzzy behavior of LM requires fuzzy verification. Um it's subjective at the end of the day and our belief is that LLMs can emulate human judgment if only they're calibrated carefully and that's the most important part here. All right. So now that hopefully you all believe as we do in calibrated LLM judges, uh it's great to have a judge and all but there's a thing that we haven't really talked about which is what are those judges going to be judging, right? like what are the inputs that those are actually going to look at.
So let's talk about that a little bit briefly before we get into how to actually calibrate an LLM judge. Um so like I said we have a 3x3 approach and the first thing it starts with is this idea of what I call musthaves. These are the things that your application is kind of uniquely trying to solve. If you're kind of setting up an initial proof of concept this is where you're like thank you. If you're trying to set up initial proof of concept, this is when you're like like once you get this right, that's when you start to say we have signs of life here seems to be working.

15:41 The 3x3 Approach

Until you get these things correct, you're like, I'm not sure, right? And then there's the must not haves. I think we probably all have a general sense of what the must not haves are for our particular applications. Uh they're often but not always informed by legal and regulatory requirements. Um these are just inputs that we want to be a little careful around. we want to make sure we answer them in like reasonable ways.
It doesn't have to be anything as dire as like don't insult my customer or whatever though it could be, but it could also be like hey we don't want to talk about this particular set of topics. All right. And so you can think about these two things as defining the expected usage of your application. Another kind of way that I like to think about evaluations and that I encourage everyone to think about them is as a product specification.
I think in a software development life cycle, we sometimes think about evaluations and tests as just like checking to make sure it works as expected. I think in the genai world, it's very helpful to have a much more proactive stance and say this is defining how this application should behave and the parameters of that behavior. So, that's all well and good, but you might be thinking, where's the third thing? And the third thing, unfortunately, is actual usage, which is what customers actually do or users actually do.
Uh, not always correlated with what we would hope they would do and what we would like for them to do. So, great. So, we have these three ways to kind of slice the set of questions or the set of inputs that we might care about in our evaluation. But I want to note that evaluations and this is something that will keep coming up right are evolving. They're not static and they will also change based on where you are in the genai life cycle.
So we like to split this into three stages. The proof of concept or zero to one stage. Uh I'm actually very pro vibes here and just being like all right does it work? Like is there any signal here? Is there any promise here? And then there's the pilot or the one to n minus one kind of phase where you're like all right I think it works but can I get the quality to be consistent enough and high enough that people can actually use this in a meaningful way at scale.

17:45 The Genai Life Cycle

And then finally there's a production phase right n minus one to n which is okay I believe it can operate at scale let's see how it actually does and start monitoring look into things relating to observability and things like that. So if you put this together you get this kind of grid. I'm not going to go into it in a lot of detail, but the main thing I want y'all to take away from this is that in the proof of concept stage, it's actually okay to not care too much about actual usage and just kind of see if there's any signal based on your must haves and must not haves.
Um, and then you want to get to the pilot stage um where you get kind of more comprehensive coverage like start to get actual usage all of those things. Um what we see in practice is that this pilot stage is what I call the Bermuda triangle of Genai which is like a lot of people can get there and a much smaller proportion can get out to production. Um and the main reason for this is because everyone want like if you recall right the main like purpose of the pilot stage is to improve quality.
Um but again if your directionality is not correct if you're if you haven't correctly scoped what metrics you're improving uh it's it's really hard to get to a place where you feel comfortable moving to production phase. Um so our whole you know belief here at data bricks is just how do you move through these as quickly as possible recognizing that this is part science part art um and quite empirical. All right. So, let's talk now about a typical recipe for building a gold standard offline evaluation set with an LLM judge and how to calibrate that judge.
I'm going to talk about it at a little bit of a high level. So, those of you who have already implemented a judge, this might be familiar to you. Um, but I'll throw in some like quick tips and tricks along the way. And you can also feel free to ask me any questions afterwards. All right. So first things first um what you need to have is some sort of proof of concept running that can log inputs and outputs right some basic um measurement system setup there um and some notion of your target audience and again I really encourage you all to think of an evaluation as a product specification especially at this stage like what are you trying to do like what are you trying to shape here um who's going to use it how is the system supposed to help them and you can refer to those must haves and must not haves exercise as a way to kind of get off the ground here.

20:05 The Evaluation Process

And this is just to give an initial structure to your evaluation, right? Like eventually we'll refine it more with the help of actual inputs. Um but for now you're just kind of getting something off the ground so you can see if you're in like in the right ballpark at all. Then what you're going to do is depending on your comfort level, collect inputs from either a pilot target audience set, so like a small set of actual users, or you can use annotators acting as your target audience, right?
You can basically brief them and be like, hey, um, you know, take some employees at your company, be like, here's who our target audience is. Can you ask questions or interact with the system as if you were a target audience member? Um, one thing that I want to note here is we always encourage that an evaluation benchmark be on the order of at least hundreds of samples. And I know that seems like a lot when it's hard to get any data from anybody.
Um, but the reason for this is because the more samples you have, the lower the variance in your measurements and the more coverage you have, right? So, what I mean by this is if you only have two examples, you're probably missing a lot of possible interactions users might be having with your system. If you only have one example of each type of interaction a user might have with your system, you might be overlooking some nuances like, oh, maybe someone uses a different uh way of describing something or like shorthand for something and actually my system doesn't cover that.
Uh, so you kind of want to get good coverage here. Um, in practice, it's sufficient to start with even 50 high quality samples. Again, we are really interested in helping people move through this process as quickly as possible and not letting perfection be the enemy of the good, so to speak, right? Because you just want to make sure that you're traveling in the right direction. And as soon as you start doing so, you can kind of start collecting more inputs that will help like facil facilitate that even more easily.
Um, right. Right. So this is just all to get you off the ground. So then what you're going to do is you're going to define specific annotation guidelines. What I mean by annotation guidelines is you're going to sit down and be like what are the like three to five things the three to five axes that I care the most about and how do I specify those as precisely as possible and this will differ from application to application right but in a generic case right someone's might be I like know you might want to ask does the response that this application gave uh is it relevant given the user input and any additional context provided to the model at the time of that input.

22:40 Annotation Guidelines

Right? And you want to be really precise about this. You can use a liyker scale, binary responses, um just like any sort of categorical response here. It's all fine. You just have to be specific. Yeah. To give you a couple other examples that I've seen in the field, things like medical accuracy being one category, helpfulness being another category, not giving medical advice being another category. Because this is, you know, there are a lot of tricky medical situations where you want to be medically accurate but not give medical advice because then you might get classified as a medical device.
You might want to have conciseness as a category depending on the nature of the response or kind of how conversational it is in it might be brand guidelines and making sure that it's in accordance with the tone that you want to set or the voice you want to set or that it talks about your brand properly around data bricks. It might be don't talk about snowflake. Um those sorts of things. So those are all really important criteria that you can measure on, you know, either yes or no on a scale of 1 to seven.
And you know, don't boil the ocean. Don't decide to do 50 of those categories or you're going to make your subject matter experts lives miserable. But again, as recommended, three to five of your kind of top priorities, your your kind of biggest categories are the most important ones to go after. Yeah. And again, you can always build from there. I think just getting into the mindset that evaluations are constantly evolving and building them is an iterative process because it is again that product specification and that's going to keep changing as your like needs keep changing.
I think that's a helpful framing as we think about genai evaluations. Um, also something to highlight is one of the reasons we encourage being as specific as possible is because the number one priority is minimizing the amount of noise in the annotations we get. The noisier the annotations, the harder it's going to be for you to meaningfully improve, like meaningfully calibrate a judge, improve against it, etc. You really want to like distill out um, this is a super overloaded word now, I guess, but like alignment between your annotators.
Not that kind of alignment. Not that kind of alignment. Just just agreement. Yeah. Um and so the clearer the guidelines you present to your annotators, the less noisy they're going to be. Um and ideally another way to deal with this is to have multiple subject matter experts, right? I like ideally three or more is typical in like a research setting. I know sometimes we might not have that many folks. So you can do this process with fewer.
You just have to be aware that like then you're really fitting to that individual person and there might be some bias inherent there. Um so there's a bunch of ways to compute agreement. There's um cryptonorf's alpha is a common statistical measure. It basically just measures agreement adjusted for chance, right? So people might agree accidentally or like what is it they say like a broken clock is right twice a day or whatever.
So these kind of try to adjust for that and see like okay how much like real agreement is there. Um, someone in the audience earlier had said that getting agreement is between likememes is challenging and that is definitely true and I'm happy to chat more about that. I'll just say maybe one or two things but also happy to chat more about that later if that's of interest to more people as well. Typically there's like two levers I think about when it comes to agreement right one is the clarity of the guidelines that we have and the second is kind of like more of an interpersonal uh how to get the thememes to interpret or agree on what the results should be in general I think most disagreements that we have encountered are resolvable by revisiting the guidelines and the interpretation of the guidelines and making sure that everyone's interpretation is actually the Um, but then there's also like I mean this sounds very simple but actually works super well in practice which is if you can just get your annotators in a room together and be like you're not leaving until you come to a consensus on this.
Actually it works really well and don't give them food. I wouldn't recommend that. I I want to give extra emphasis to one thing that said which is if you really can't get your annotators to agree and it's be you know and it's driven by the fact that your rubric or your guidelines are not precise enough that means you may not even understand what you're trying to do precisely enough. If reasonable humans cannot agree on whether an output is good or bad that may mean reasonable humans don't even agree on what you're trying to do in the first place.
And this is often a signal to you as the person designing the system that you may need to revisit what problem you're trying to solve and how precisely you've specified that. In you know in designing an actual you know system for code you know at the end of the day you figure out whether the system is designed precisely enough when people start working on code and if the code you know they disagree at the code review stage that tells you that perhaps they didn't agree and there's something that forces you to come to an agreement.
In Genai there's nothing like that. You can go through the entire life cycle of the product and have the two people who built the system actually disagree with each other about what the system is supposed to do and not know it. This is a way to find out whether people disagree and this is a way to get precise in a way that won't happen naturally in Genai. We take it for granted in code. You can't take it for granted here.
So the final step of this uh super final easy step is take all those subject matter ratings, turn them into an oracle rating. If you only have one subject matter expert, congratulations to them. They are the oracle. But for the rest of us, right, collapse them into some sort of singular rating that you're going to treat as a ground truth. Um, and then it's kind of time for some prompt engineering and figuring out how you can get an LLM judge to be calibrated with the that oracle rating.
Um, so again, this calibration can be computed via either Crips Alpha or Cohen's Kappa. kind of just depends on like what type of data you're using and how like how many papers you want to be point be able to point towards to be like hey look we have a really principled calibration here um and for prompt engineering right usually you want to think about the instructions and the fshot examples I like to just break this down into thinking about instructions are all the explicit information you can codify into the prompt and the fshot examples are all that latent information where you're like I don't really know how to explicitly tell you this, but take a look at these examples and figure it out yourself.
You're like a billions of parameters model. You can do it. Um, and this is again an iterative process and it might take time, right? And something else I want to say is that in a few slides ago, right, we talked about how ideally you want to get to hundreds of samples and 50 is a great starting point, etc. , etc. in practice and especially if you haven't done this before like collect data in small batches even 10 samples at a time this can be especially depending on the task like different tasks take different amounts of time to annotate it can be a laborious process I know likeme time can be limited um it's not like this is the only thing anyone is working on right um doing small batch collection will help you see progress uh more quickly you can course correct if you need to adjust those guidelines, right?
If you're seeing, hey, my SMMES are interpreting this all differently or there's not agreement and you can kind of like adjust as you're going and get into that kind of iterative improvement um flow. And we also have products here at data bricks that help with each part of this, right? So there's from model serving to just get your proof of concept running, MLflow for tracking inputs, um the review app for actually like labeling, annotating, um agent eval if you want to eventually do like more like monitoring, observability, like any of this.
And then we also have a preview uh that I'll talk about briefly in a few slides to help with this entire flow and then also this like calibration component. And okay, quick takeaways. I always like to just kind of reframe the like if you forget everything in this presentation, please remember the following few things. Um, one quality measurement is absolutely necessary for building and improving a Genai system. Think about that vector, right?

31:02 Summary

It's great if the magnitude keeps, you know, growing. Please just make sure the vector is pointed in the right direction. And quality measurement evaluations the way to do this. If you're feeling stuck and you're not sure how to begin thinking about evaluations, refer to that 3x3, right? Where am I in the life cycle and what are my must haves, must not haves, and actual usage patterns, right? Just like a super easy way to get started on this.
You can avoid the Bermuda triangle. I'm sure that like many of us have gotten stuck there for a while and gotten kind of frustrated, but there are principled approaches to measuring quality and it is possible to find your way out of that into production. And the bottom line is if you start measuring systematically, you can start improving systematically. Uh so real quickly, I'll just talk a little bit about our human eval private preview here at data bricks.
Um this is the only way to sign up for this. So if you want this, now's the time to grab that QR code. So we basically have a workshop and a playbook where we dig even deeper into creating gold standard LLM judge evaluations. So this is everything from techniques for identifying target inputs um how to construct annotator guidelines how to annotate data given one or more um strategies for improving agreement between multiple annotators and what achievable calibration targets for LLM judges look like and how you might be able to get there.

32:06 Human Evaluation Preview

Um if you're interested please complete our intake form. Um, I would prefer if you completed the intake form, but if later the mood strikes you, you can also have your account team reach out. Um, but this is the easiest and fastest way to get in touch with us. I believe this link is not public anywhere but this slide. Um, so, you know, fair warning. And this preview, just for the record, is manual and is being run by, you know, the folks you see on stage.
So, you know, I can't promise that we will be able to provide it for everybody in this room, but our goal is to learn more about how to build products that will help our customers automatically build evals or kind of in a guided way build evals. And to do that, we want to work hands-on and just see where people are getting stuck, unstick them, and then build that into our products like the ones that were mentioned before.
So, to close, um, to close, you know, you get me back. Um, and I'm going to editorialize for like two minutes, then we'll take some questions. Um, you know, the first bit is a little bit of tough love for everybody here who looks at this and says that's a lot of work. Um, my answer is yeah. Um, do you want to have a geni application deploy that doesn't work? Um, the beautiful thing about geni in all seriousness is, you know, the applications kind of build themselves.
With a few prompts, you can have yourself a really interesting, powerful geni application. It's pretty easy. In exchange, you have to put more work into the evaluation and the testing. That's kind of the interesting trade-off we have. It's different than coding. where kind of you spend a lot of time on the engineering and building the system and then testing is kind of you know the last step of the process the thing you do before you submit the PR because if you don't do that it'll get rejected.
Um we're here to help and I mean that across the board. This philosophy and the lessons that just described are built into a bunch of the products that we announced yesterday. Um this whole approach pervades all the AI products that you will just use in the natural course of using data bricks and we're constantly trying to find more folks you know including several folks who are in this audience today who we've worked with previously to just try to learn more about how to make our products better and continue to add new science and new approaches and kind of new new ways of working around this.
Um the other thing I like to say I I like to get philosophical at this point. Um I like to give a nice quote here. Um, this is one of my favorite quotes on just kind of system building in general. Um, it's from a long time ago. To put it quite bluntly, as long as there were no machines, programming was no problem at all. When we had a few weak computers, programming became a mild problem. And now we have gigantic computers, programming has become an equally gigantic problem.
Um, the increased power of the hardware made solutions feasible that the programmer had not dared to dream about a few years ago. And now a few years later, he had to dream about them. And even worse, he had to transform such dreams into reality because his CEO asked him to. Um, is it a wonder that we found ourselves in a software crisis? Um, this is a quote from 1972 from Dystra um about software because computers were getting more powerful and nobody knew how the hell to build big programs.
Um, there was actually, you can look up the Wikipedia article, this was described as the software crisis because um, you know, and you can just read this, the difficulty of writing useful and efficient computer programs in the required time. We didn't know how to do it. We didn't have principles of software engineering. Um, you know, the solution was basically the modern practice of software engineering emerged out of this crisis.
Structured programming, object-oriented programming, modern testing, modern software engineering best practices, version control, all of that stuff came out of a crisis where the computers got really powerful. We tried to do big things with them and we wrote software that kind of worked and then fell apart when we tried to change it. Um, for those who know the famous go-to considered harmful article, um, you know, that was something that came out around the same time.
We had to learn how to build software properly and that meant restricting what we did and being very disciplined about how we did it. And I think the same is true in AI. Some things are different this time. Um, they're worse. Um, I think the specifications for our agents are going to have to be behavior behavioral. There is no equivalent to looking at the code. Um, the thing that we always fall back on in software when people don't agree on what it's supposed to do is we look at the code and the code tells us definitively what the system does.
There's no equivalent in AI. Your prompt is not code. Your prompt is you and the LLM communicating through a few sentences or a few thousand sentences and hoping that you both happen to agree. But how do you check for agreement? You have to look at the behavior. You have to build an actual eval that looks at a behavior. I mentioned this before, but this is something I find so fascinating about AI. reasonable people who are working very closely together can disagree about what an AI system does through the entire life cycle.
You could go six months and deploy the system multiple times and still actually disagree with each other about what the system is supposed to do. The only way out of that is to look at actual behaviors and say yes, we agree it's supposed to behave this way or no, we disagree. It is at that moment when you try to build an eval or look at some real behaviors that you discover you disagree and have to go back and write a better specification.
The only way to verify AI is through behavior. If you come to me and you say, "Well, we wrote this great prompt." I say to you, "Bullshit. You don't agree. I'm sorry, but you don't agree." Until you've actually looked at the behavior for the system, a prompt is just more vague words to try to explain whether you want the behaviors to be the same. Prompts are not code. If you tell me that, I'm going to tell you to go home and come back when you're ready to do some evals.
Reliability is really the watch word at data bricks for AI these days. We want you to build agents that are reliable, maintainable, and will stand the test of time. really where we began this presentation. Our products are built to help you do that by design and we're working hands-on with a lot of folks right now to understand how to build better products and make this easier for you. Again, great way to close. There's a QR code.
Sign up. Um, again, signing up does not mean we'll necessarily actually get to work with you. Fair warning, you're looking at the workforce here. Um, but we'd love to take a look and find some folks to work with, especially folks that will challenge our current products and break them in ways where we need to improve them. Um, with that, thank you all so much. I think we have a couple minutes for questions.

Learn more about the Databricks Data and AI platform.

The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.