How to Evaluate Healthcare AI Agents: LLM-as-Judge, Human Feedback and MLflow on Databricks
Summary
- Four evaluation layers: Healthcare AI agent evaluation requires SQL-based data validation, a clinician-reviewed golden dataset, LLM-as-judge scoring aligned to human feedback, and continuous production monitoring.
- Data unification: This video demonstrates how Genie unifies siloed healthcare data sources including claims, EHR, hospital records and physician notes for natural-language text-to-SQL.
- MLflow evaluation: Built-in LLM-as-judge, annotation collection and alignment capabilities make healthcare AI evaluation workflows practical at scale.
How to Evaluate Healthcare AI Agents: LLM-as-Judge, Human Feedback and MLflow on Databricks

Talk by Elena Boiarskaia, AI/ML Practice Lead, Koantek
Evaluating healthcare AI agents safely takes four layers working together: SQL-based data validation, a clinician-reviewed golden dataset, LLM-as-judge scoring that is aligned to human feedback first, and continuous monitoring in production, all supported by MLflow on Databricks. Automation alone is not enough, because subject matter expert feedback is what keeps the judge honest. This video evaluates a multi-agent system unifying siloed claims, EHR, hospital records and physician notes, with Databricks Genie providing natural-language text-to-SQL for clinicians, scored for correctness, safety and groundedness.
Elena Boiarskaia of Koantek shows how a multi-agent system that unifies siloed claims, EHR, hospital records and physician notes, with Genie for natural-language text-to-SQL, is evaluated for correctness, safety and groundedness. Learn how to run user acceptance testing with clinicians, confirm that human reviewers agree with each other before aligning an LLM judge, use groundedness and tool calls to verify answers when a diagnosis can change within minutes, and choose which of thousands of daily interactions to score overnight. She explains why MLflow's built-in LLM-as-judge, annotation collection and alignment made the workflow practical.
Chapters
00:00Introduction01:59Why evaluation is the hard part of agentic AI03:23Unifying siloed healthcare data sources04:46Genie for clinicians: natural-language text-to-SQL06:09SQL validation rules and the golden dataset08:16User acceptance testing with clinicians in the loop09:35Aligning human reviewers before aligning an LLM judge10:57Groundedness and tool calls to verify correctness13:02Collecting user and expert feedback in production15:09Running LLM-as-judge at scale on thousands of interactions17:33Why MLflow covers LLM judges, annotations and alignment
FAQs
Why is evaluation critical for healthcare AI agents?
Evaluation is essential because AI decisions directly impact patient care and safety in healthcare. This video explains that subject matter expert feedback from clinicians is crucial to keep AI judges honest and ensure correctness, safety and groundedness in AI-generated answers.
What are the four layers of healthcare AI evaluation?
The four layers are: SQL-based data validation to ensure data quality, a clinician-reviewed golden dataset as the reference standard, LLM-as-judge scoring that is aligned to human feedback first, and continuous monitoring in production.
How does Genie help clinicians interact with healthcare data?
Genie provides natural-language text-to-SQL capabilities that allow clinicians to ask questions about unified healthcare data sources without needing SQL knowledge. This makes healthcare data more accessible to non-technical users like clinicians.
What role does MLflow play in healthcare AI evaluation?
MLflow on Databricks provides built-in LLM-as-judge scoring, annotation collection, and human-feedback alignment that make healthcare AI evaluation workflows practical at scale. These features allow organizations to efficiently run user acceptance testing and collect feedback from clinicians.
Full transcript
00:00 Introduction
Elena Boyarska Reviewer Hey everybody. Can you guys hear me put your headphones on? Yeah, you can hear me through the headphones? Fantastic. Alright, everybody headphones on, ready to start? Thank you all for coming, thank you all for being here. I really appreciate it, especially for my talk. And I want to introduce myself real quick. So I am Elena Wojarska. I run the AI ML practice for a partner of Databricks called Coentech.
And my background is in data science and machine learning applied to healthcare. So my entire career I've been thinking about how to keep AI and ML, back then you know traditional ML, now it's AI. How do you make it production grade and worthy of the enterprise solution while keeping it governed, compliant, and safe because it is healthcare care and it is the most you know obviously difficult place to deploy AI. So it's really the takeaway is really simple I'll give it to you right now which is agentic systems are like super easy to build now we're at data work summit this is what we're talking about today no question we're ready to go there but the evaluation piece is often an afterthought and that's what I'm talking to you today about and the evaluation piece inside healthcare and how do you incorporate human in the loop feedback is really the talk.
So how do you keep it transparent, safe, compliant and trustworthy? So the complexity of AI has taken us to really new heights. And when we talk about monitoring agentic systems, especially in health care, the evaluation piece is often an afterthought. And I've delivered many, many production grade projects for hospitals, for pharma, big pharma, and for biotech startups. So all across the board, the agentic piece is now easy.
01:59 Why evaluation is the hard part of agentic AI
Even the data piece is easy. The governance is, it's all getting there, but the evaluation piece is really not. So one thing that we often run into is like, who actually owns this process? When we work with engineering teams, they're ready to go on the tech stack front but when we talk about okay we need human in the loop feedback who's going to organize that who's going to continuously collect it and action it that's the blind spot and that's and i'll walk you through how we've been solving it and obviously you know some some open questions there but also some of the solutions that we've come up with so really the other thing to think about is that you know coming from traditional ml i'm a statistician from the beginning and I think about you know there's a way to measure correctness right but now with an agentic system with multi-turn conversations there's no concept of correctness anymore and so we have to really go beyond that and that's another kind of blind spot that we think about so building AI agents in healthcare again the use case I'll talk you through the architecture diagram I have it on the next slide so don't don't strain your eyes but it's really like a generalization of what we've been building because again I've I've delivered this for both pharma hospitals and actually biotech so it's it's kind of a general architecture diagram but really this is the dream that we've all been sort of promised from the early days of Databricks of like okay we have siloed data sources we're going to unify them we're there right and now on top of that we build the AI agent and it's like you could just talk to your data that's been the dream that we've been promised, right, for so many years.
03:23 Unifying siloed healthcare data sources
I'm excited to be here that it's real, it's happening, but obviously, you know, how do you keep it actually working and actually trustworthy? So real quick, the diagram, we're talking about siloed data sources here. Again, this is simplified, so if you want to talk after the presentation, happy to walk you through it, but the data sources that we're talking about are always siloed, right? We're talking about EHR data, we're talking about claims, the hospital records, the physician notes, they're always in different sources.
And when it comes to actually having useful information about the patient, we need to unify them all into one place. And so this is where Databricks makes that really easy with Lakehouse and unified records. On top of that, we build agents. And on top of that, I have Jeannie up here, but really it's a multi-agent approach where, you know, when you pull a piece of data from one of these tables you have to have a tool that calculates something that you know decides how far away is the diagnosis so diagnosis within one year those kind of questions are answered within the agent and then we layer that with something like Gini to have the approach with the natural language opportunity for clinicians to interact with the data because up until this point they haven't had this chance right that they don't they can't code they can't access the database.
04:46 Genie for clinicians: natural-language text-to-SQL
So getting this level of interaction with the data is unprecedented. So that is really so exciting to again hospitals love this, clinicians love this, but again where's the evaluation piece? And so if you see over the over here in the center, oh I can't I can't point there, but built-in judges. So we are using LLM as a judge to verify some of the pieces of the responses that are being come that are coming out of this genie text to SQL answering but how do we know that the yellow lemma is a judge it's doing a good job that's not for sure either that's where i have the human in the loop clinician review and that and i'll walk you through exactly what that looks like and all of this eval piece is powered by ml flow 3. so all of that is built in through ml flow 3 but i'll walk you through some of the caveats in how we think about it.
So the first thing, these are the five stages we've come up with. And the first thing is like just SQL validation. You don't have to have something fancy and expensive. You can also check the data directly to make sure that, you know, there's no missingness, just obvious stuff like that. Then we built a golden data set with the human in the loop. That's where we need to recruit the appropriate SMEs, clinicians, and so on.
06:09 SQL validation rules and the golden dataset
Then we use an LLM as a judge on top of this golden data set to train it to act like we want it to act, behave like a human in the loop. And then we collect continuous feedback and continually align this judge to the human feedback. So that's where the process detects any sort of drift or shifts in the data. And we continue to monitor it when we go to production. So for the SQL piece, it's not a throwaway. Like it's really, it solves a lot of our problems up front because we know what to look for already.
So even though everything is automated with AI, if we already know ahead of time that, you know, there's probably a missingness issue, there's something auditable, we need to check for PII, PHI, that kind of thing, we can use a SQL layer. And so that's, I definitely recommend. If you know a problem ahead of time, go there right away. then building the golden data set is actually the hardest thing right because you have to nail down your SMEs you have to get their time you have to sit them down and ask them to help you do this and of course they're like committed to doing that but they're also no time allotted for that again this is going back to who owns this process and that's where like when we go into an enterprise to help them with a project like this we start there like who is gonna own this and can you help me find these stakeholders and then they'd have to do the labeling and create this benchmark.
So just in a little bit more detail, let me see here. Yeah, so in a little bit more detail here, we need to create this user acceptance testing process. So what I have had clinicians do is write some questions that they would ask the chat agent or whatever we're using. And then I would run the chat agent that we've already built and then have it produce the responses as it is right now and have the human in the loop judges go through it.
08:16 User acceptance testing with clinicians in the loop
And so we're not asking them to write the proper response because that is almost impossible to get people to sit down and say this is what I want it to say, right? So give them something to work off of and then start them on that process of like, yes, this is good, this is bad, and have them correct the responses. I found that to be a lot more effective. And so when we go to LLM as a judge, it's, yes, it's automated scoring, but it doesn't work without the golden data set that we just built, right?
So you can have automation can easily be achieved for safety, for example, because the concept of safety can be easily put into a prompt. You can have those layers are fairly automated, but the correctness piece is actually not. So that's where we kind of need to manage that. So this has to be aligned with our human in the loop component. And so here's the crux of it. This is the favorite. It's the least beautiful slide, but my most important slide if you're taking pictures.
Because the clinicians have to interact with the agents, like I said, and they give you feedback on it. We generate responses, they evaluate. Then we have to see, is there actually agreement between the humans? because before we even align it to the LLM as a judge, do the humans agree with each other? And they usually don't. And it's quite interesting to have those talks together with them. So we'll be either in the room with them or on Zoom, and we'll present them a question and say, we achieved 50% agreement on this question, guys.
09:35 Aligning human reviewers before aligning an LLM judge
Can we talk about it? And then there's a misunderstanding. So what we're doing first is aligning the humans to each other before we align the LLM as a judge to the human feedback. So, you know, yes, alignment, but first some training, I guess you can call it. Then we finalize the golden data set. So we have the Q&A pairs for both positive and negative examples. So we want to show the LLM as a judge of what both good and bad looks like.
Very, very important that we don't just show good examples, but also like what we don't want to see. Then we run the LLM as a judge. we get some measures, but how do you measure correctness? So you cannot measure correctness actually directly using LLM as a judge because if you think about it, LLM as a judge is yet another AI component that has to put together the same data you just used in your agent. So you basically, if you want true correctness, you're rebuilding the entire agent just with a different AI algorithm and that's not cost-effective so we've been using groundedness and tool calls to verify correctness it's really called groundedness so there is no unless you rebuild the agent with another AI algorithm there's no real way to measure correctness and I feel like no one talks about that when we go into doing this right like we have correctness in the out-of-the-box cell I'm as a judge if you look in ML flow that's actually built in there but But for stuff like patient records that are being reconstituted and then whenever you access them, the answer changes by the minute, right?
10:57 Groundedness and tool calls to verify correctness
Like the patient could have had a change in the record. So if you ask for what's the latest diagnosis, that could change within minutes of answering. So that to me is the hardest part. And so looking at groundedness and then having a continuous feedback loop with humans to check actual correctness. that that like you almost can't escape that. Oh, last question for for you guys to ponder is do we want 100% agreement between the LLM as a judge and the humans?
And, you know, for me, the answer is not necessarily because, again, we don't necessarily want full agreement between everybody, because that just to me, that means no one's paying attention. Like there needs to be some disagreement. There needs to be some difference. And LLM as a judge does a different thing. and we are collecting feedback on multiple fronts to actually decide if this is a good response and if it's useful.
All right, so this continuous alignment, again, we now start going to production, and the flow is user feedback is continuously gathered. So now this is not just the SMEs. The users who are using the system, who are interacting with the system, are providing feedback. Now, they're not always going to provide feedback, and they don't have a way to check, again, if it's correct, because the user is interacting with an agent that's pulling the data out, and it's, you know, yeah, it seems good.
13:02 Collecting user and expert feedback in production
Like, yeah, I got an answer. They don't know if it's correct. So they're going to be providing feedback on a different level. So the user feedback we're collecting is now, yeah, I like this UI. Yeah, I wish this had more information on this. I wish this was a shorter response. So it's more of a product feedback almost loop. So the users are not fully giving us the feedback that we think we are getting in terms of correctness and stuff.
So the judge criteria continues to align to, you know, we're seeing like we're getting really bad responses for this type of question. Like we need to go and look in there and then realign, maybe redo the prompt for the LLM as a judge. This is appearing to not be reliable or safe. go back to the data, we update our SQL rules, we update our, you know, maybe we create a new view that the, you know, the genie pulls, or the multiple agents pull from.
And that's why we build the golden data set, and it continues to improve. The other thought that I want to share with you guys is that, so we have users providing continuous feedback, it's not complete and it's not necessarily relevant to actually what you're trying to correct. So we still continue to get SME feedback. And this was like the hardest thing to explain to the enterprises when we go in and help them with these projects is like, no, I still need your SMEs.
Like, you know, give me six people for an hour every month. That's the kind of conversation you have to have with the stakeholders. And then the LLM as a judge, it's actually quite complex. Again, if you wanted to be able to judge correctness and be very robust, it's likely you're likely using a very expensive LLM. It's you know they're cheaper and cheaper but like they're still the most expensive LLMs you can use. I would recommend putting using them in an LLM as a judge because you know you're asking it to be the most you know overseeing this whole process right.
So with that if we have cost implications in mind I recommend actually using a stratified sample and And this is something, again, no one talks about. Because do you run every single interaction with the agent ever? We actually have currently an agent running with thousands of users a day. There's throughout the day thousands of interactions. So there's millions of tokens per minute kind of situation happening. I can't run an alum as a judge agent on every single interaction because the agent itself is expensive.
15:09 Running LLM-as-judge at scale on thousands of interactions
And now I have a huge layer of a very expensive alum as a judge. And it's like I can't even sell that to the stakeholder, right? So the stratified sample approach is what we've been using, which is basically choosing, picking and choosing and running nightly. We're picking across different time stamps, across different types of users, across different lengths of interaction, and so on. We're picking and choosing to run LLM as a judge overnight.
So that's just like the reality of the promise of LLM as a judge. It won't solve everything, right? So, yeah, and last thing actually here is like who owns this process? I keep bringing that up, but it's been quite interesting figuring this out because engineering cannot own the process of the users to give you feedback. And they're like, we don't like this, you know, we don't like this UI or whatever, whatever. It's like who does this get routed to?
Like once you go to production, these questions need to be answered and thought about. And what is the review cadence with the SMEs? Again, we got to get them to agree to this, you know. And so we need to implement rigorous evaluation. I think everyone agrees with that. And we're looking to catch issues early, but in practice, how do you do that? So we talked about SQL. Right away, you know exactly how to preempt it.
We talked about detecting drift because, you know, across the time, We are still continuing that human in the loop feedback process so they can see. We can literally switch out the agent LLMs, right? Like we can choose to use a different cheaper LLM or whatever. That's going to cause some drift, possibly. So we want to catch for that. And so we have a golden data set to center us, and then we have, or ground us, if you will, and then we have a continuous collection of feedback through our SME in the loop.
And so that's it. That's my takeaway. So really evaluation, you can't get around, you can't automate it fully. You can't get around using human feedback. And what I like about MLflow is that it actually allows you, all of these components are covered there. So that's been really nice. I've used a lot of different evaluation systems in my career. And so what I've liked about MLflow is that it's like, LLM as a judge is built in there.
17:33 Why MLflow covers LLM judges, annotations and alignment
Your human in the loop feedback collection annotations are also built in there. And then you can run alignment directly. So all of these components are already present in the solution, which has been really nice. So really now the outstanding question is like, who owns this? Who is going to help me with this feedback collection? Give me some time. Train these users to actually be able to give you the feedback. And I have two more minutes left.
And that's really my talk. So I don't know if there's any more time for questions, but I will be around for questions, of course. And then you guys can come see me at the Coantec booth. I think we have a presentation that we have a demo of a similar agent at the booth, so you guys can interact with that and take a look. But that's really it. Thank you so much for coming. I appreciate your time. Thank you.
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.