Skip to main content

Healthcare and Life Sciences: Getting Started with AI Agents

Summary

  • AI agents for healthcare: This video explores how healthcare and life sciences organizations can get started with AI Agents powered by the Databricks Data and AI platform for transforming operations and patient experience.
  • Compliance and governance: Learn how to ensure compliance with data regulations using Unity Catalog while rapidly deploying AI Agents that drive operational efficiency across healthcare and life sciences.
  • Practical implementation roadmap: Discover steps for unifying data, implementing governance and deploying agents to improve care quality, reduce costs and foster innovation in healthcare and life sciences.

Healthcare and Life Sciences: Getting Started with AI Agents

Watch: Healthcare and Life Sciences: Getting Started with AI Agents
Talk by James McCall, Sr Solutions Architect, Databricks ; William Smith, Sr. Specialist Solutions Architect, Databricks
Healthcare and life sciences organizations are exploring AI Agents, driving transformation through intelligent supply chains to helping up-level the patient experience via virtual assistants. this video explores how you can get started with AI Agents, powered by Databricks and robust data governance, and tapping into the full potential of all your data. You’ll learn practical steps for getting started: unifying data with Databricks, ensuring compliance with Unity Catalog, and rapidly deploying AI Agents to drive operational efficiency, improve care, and foster innovation across healthcare and life sciences.
Here’s more to explore:
Economist Impact: Unlocking enterprise AI: https://www.databricks.com/resources/webinar/unlocking-enterprise-ai
The State of Data + AI: https://www.databricks.com/resources/ebook/state-of-data-ai
See all the product announcements from Data + AI Summit: https://www.databricks.com/events/dataaisummit-2025-announcements

Chapters

FAQs

What are AI Agents and how can healthcare use them?

This video defines AI Agents as intelligent systems that can perform actions autonomously. In healthcare, agents can optimize supply chains, enhance patient experiences via virtual assistants and automate operational workflows while maintaining compliance on the Databricks Data and AI platform.

How do I ensure data compliance with AI Agents?

Learn how Unity Catalog provides governance and compliance controls for sensitive healthcare data when deploying AI Agents on the Databricks Data and AI platform, ensuring you meet HIPAA and other regulatory requirements.

What are practical healthcare and life sciences use cases?

This video covers multiple use cases including virtual patient assistants, supply chain optimization, clinical trial acceleration and patient engagement agents. Each demonstrates how AI Agents on the Databricks Data and AI platform drive innovation in healthcare and life sciences.

How do I get started with AI Agents?

This video provides a practical roadmap including unifying your data, setting up governance with Unity Catalog and rapidly prototyping AI Agents on the Databricks Data and AI platform to drive immediate business value.

Full transcript

0:00 Introduction and agenda

Um, we're going to talk about uh agents in healthcare and life sciences today. I'm lead architect for all life sciences AI. And hi. And my name is Will Smith. I'm the lead architect for AI for healthcare. Yeah. Uh, and between the two of us, the reason we're the ones speaking today is over the past few years, we've done hundreds of AI customer use cases on data bricks. We went back for this session, we went back and looked through our calendars over the last few years and we total them all up.
So, we're looking forward to this. Yep. And a little bit about us too. Um, in addition to that, I used to be a medical researcher at the National Institutes of Health. So, very much into the clinical space and healthcare and I used to work for teada pharmaceuticals prior to joining data bricks. So, I've spent my whole career in life sciences as well. Yeah. Sweet. So today, this is what we're going to aim to talk about and hopefully it's an exciting session.
Thank you so much for coming out. Uh today's agenda, we're going to talk a little bit about what are uh AI agents. There's a lot of conversation around it. There's a lot of um shared definitions and stuff like that. We want to make sure that we're all on the same page and that everybody can uh figure out what we're talking about as we go deeper and deeper into the space. Uh some considerations for AI agents in HLS, healthcare and life sciences.
This is an HLS session and it's incredibly important. uh we have very specific requirements as well as considerations that we want to talk about. We'll then do an end toend demo of an actual agentic system with uh evaluations which is something that we definitely want to uh emphasize and we'll talk more about that. Uh we'll talk a little bit about some of the use cases that we've seen some of the higher profile ones especially a agent to agent systems.
Uh and then we'll end with some main takeaways. If you're going to get one thing from the session we just want to make sure we hammer that home. So, all right. So, it's a classic thing to use an quote before an AI session. And I think this is an interesting one because he's talking about how this is the year of agents. Everybody's talking about it, but it's actually really difficult to do this well still. So, it's going to be a long journey to make to not just build agents.
It's not the hard part. The hard part is actually getting it right. Um, so we're going to talk today not just about building agents. We're going to talk about how to get it right and some of the things that we've seen go right in healthcare and life sciences. All right. So, I'm going to start with sort of uh I'm not doing this to teach necessarily. I think we all know what agents are. I'm doing this more to have some shared definitions that when we go into the demo, we're all talking about things the same way.

2:20 Defining AI agents

Um, lots of vendors talk about agents, of course, but there's a difference between agents embedded in a software kind of like the data bricks assistant versus agents that you build yourselves, right? So, we're going to talk about the building blocks of that, how how it looks and feels, and then when we do the demo, we're actually going to build an agent together. So, I'm going to do a little laser pointer here just so I can point things out.
Um, agents are not monolithic models, right? It's not chat GBT. And there's a lot of things that an agent could be, but to distill it down to the simplest definition, an agent is just an LLM with resources at its disposal, right? And we call those tools, not data bricks, but everybody, those resources are tools. And what tools are um actually before I before I yeah, go to the next slide. What tools are are sometimes it's an API, sometimes that's a way to retrieve structured data, and sometimes it's a way to retrieve unstructured data or something in between, right?
So, we're going to talk about how to build tools. We're going to show that in the demo today. We're going to talk about how to um combine those tools with an LLM to build agents. And um in 2023, 2024, we all built what we call uh rag chat bots, right? Retrieval augmented generation. and we all built them and maybe we didn't see as much value as we expected out of them, right? We all built sort of PDF chat bots. We all built sort of employee handbook rag chatbots and that was fine.
Um, but it didn't actually really transform anything. It's still valuable. Rag is still really important, especially as a tool for an agent. But chatbots and and things like that just didn't didn't live up to the promise that we all thought they might. And so when we're talking about agents, there's a difference between an agent and actually a workflow. So a chain in a workflow, these things are descriptive or prescriptive rather.
The same thing happens every time. This is a classic rag chain where every time someone asks a question, it will always go and retrieve a certain number of documents. It'll always bundle those things together and say, "Hey, LLM, answer the question with all this context I provide to you." Right? With agents though, there's optionality. So we call these things agents because they have agency to choose what to do. And these are our ugly and Will slides.
They're not data bricks marketing slides. So apologies for the diagrams. But um again, an agent is just an LLM with resources, right? So in this diagram, this LLM does something called function calling to go pick which tool to use. And that's what that's what it does. It picks depending on the nature of the prompt. It can choose whether to do vector search or hit an API or retrieve structured data in this case. So, we're going to work through some real examples of how this looks um in data bricks, but I put MCP there because and we're going to talk more about some of the sort of standards and frameworks in this space that are becoming more and more popular.
There's actually a talk about MCP right after this one by the people who are building MCP on data bricks. But there's lots of ways to do tools. We'll talk about the data bricks way of doing tools today, but there's many many ways to build tools. Um and I guess the other the other thing to note here too is that the agent might not just use one tool. The agent might use a combination of multiple of these things depending on the nature of the question.
Or maybe the agent says the retrieval from the vector search was terrible. I'm going to go back and do it again with a different phrase. So we'll see some of that today. Okay, cool. And so we're going to go a little bit into the considerations for healthcare and life sciences. We talked a bit about tools. Like one of the ideas here that it's directly applicable is that we don't want a tool with just like unfettered access to an entire database.

5:38 HLS industry considerations

We wanted to make sure that it is like the atomic unit that it can do what it needs to do without actually having any potential ramifications and minimizing that blast radius if something does go wrong, right? And so we're going to talk a little bit about these considerations in more depth before we go into the end to end demo. Um, so what are some of the important things that we want to actually consider when we're building these agents in healthcare and life sciences?
First one, it's pretty obvious in terms of compliance. I know a lot of people here love HIPPA. We all do, right? And so HIPPA high trust and GXP compliance are just a few of them. Uh in our industry whenever we're working with P like you know medical information or health records and stuff like that um personal identifi valuable information and the like we have some compliance standards that we have to adhere to and so that's an obvious one that we have to consider when we're designing the system.
In some cases, people will anonymize the data so that way they can get around in terms of those compliance. But in other cases, like data bricks focuses on making sure that our features are hipaco compliant so you don't have to worry about that. Um, another thing that kind of goes handinand is monitoring and auditability. Uh, we talked a bit about how the agents work in some cases it can be a black box which is definitely not good in healthcare and life sciences where we need to have auditability which oftentimes goes handinhand with compliance.
So if I need to have my records for the last seven years stored but then I find out that oh we never actually implemented tracing with agents when I have a really bad time and so also how do we make sure that these assets are secured which leads into governance uh we'll talk a little bit about unity catalog now in addition to the agent and making sure that this is accessible by the right people we also have these tools that we want to make sure are also secured and making sure that if we have something that pulls uh patient record information we don't want someone to have access or modify that tool and we absolutely do not want data exfiltration.
Um in healthcare and life sciences we the ramifications of like having a margin of error and this is why we're talking about safety and accuracy with eval um the margin of error is near zero. There's zero tolerance in a lot of cases because for example if an agent that is like a clinical note summarization tells a physician that someone had a diagnosis of bronchitis or something like that and then they schedule accordingly or they speak accordingly to a patient and it turns out it's actually already progressed into pneumonia and they're you know that time to care is actually really critical for the prognosis.
Um that is something that is a legit like a a very deep concern right um we're talking about people's lives uh their livelihood uh that is you know in terms of the again the error here that we can accept is zero. So how do we make sure that the agent is safe but also accurate and how do we make sure that these evaluations are even like pertinent because if you make it have if you write some questions and it answers it correctly that's not really indicative of like most real world scenarios or you might miss edge cases that could lead to a you know potentially fatal event or a severe event that we don't want.
So we need to be extra careful with that. Um, and so we have a quote here where we need to make sure that we design and build AI that helps health care professionals. Uh, essentially we need to help people do what they need to do, right? I think a lot of times we're talking about like, oh, this is going to replace certain flows, but I'm sure everybody here has heard efficiency many, many times over the last couple months or in our entire lives, right?
So, how do we make sure that these tools are helping people do what they do best? And so, yeah, we're going to go see an agent system in action and to walk through some of the tools. All right, so we're going to do an endto-end demo. It's a real demo. And so, um, this is going to be a healthcare example, but one of the things that we often start with, uh, agents and rag is unstructured data. But what we want to do today is show you a demo of building agents for structured data because it's a little bit different.

9:10 Agent demo and tools

So, imagine that we have all this structured admissions data. This is actually a real um, mimic 3 data set released by the Beth Beth Israel Deaconist Hospital System. And so, this is real admissions data. And I'm going to zoom in on things when they're important, don't worry. um and I might want to answer specific questions. So, what we're going to do is we're going to create a um clinical assistant chatbot, right? And that clinical assistant chatbot isn't just going to do rag on some unstructured data.
We're going to build a chatbot that actually retrieves specific structured data to actually improve that clinician's like uh information, right? So, we're going to build a couple a couple of different things for that agent. We're going to build tools. And one of the tools we're going to build is a way to retrieve recent admissions for a particular patient, right? So I have this structured data set, this admissions data set of all this information and I also have some other structured data.
I also have things like uh clinical notes. Um so I might want to retrieve relevant clinical notes for a particular patient. I also have labs. So I I have lab items here and lab events. So I'm going to retrieve um lab events and the types of labs they are. That way I can ask questions like what was the patient patient's most recent admission? Did they have any abnormal labs? What labs were those? and what was the sort of clinical disposition of that patient when they were discharged, right?
It's a very useful set of questions to be able to ask. And so all that for the most part is structured data. The way we do this in data bricks is by building things called tools. And in in Unity catalog, we actually have a tool catalog now um where you can actually create simple tools. I'm going to zoom in on this. This is a simple SQL query that just finds the most recent admission for a particular patient ID. Right?
Really, really simple. But when I create this as a tool in or a function in Unity catalog, I can I can give that as a tool to an agent, right? So we created this thing called get latest admission and it's super simple. First you the way the process for which you do this is first you find a query that is relevant to what an agent might need and then you wrap that in a function and a function comes with things like a description.
That's what helps the agent choose that tool. It also comes with function metadata. That way the agent knows what the input parameter is to that function, right? In this case, it's patient ID, which is an integer. And so, and we know that as the output of that, the return, it's going to expect sort of a table of information. So, this is a super simple tool, but this tool allows an agent to pass in a patient ID and get back the most recent admission for that patient using that query.
And I built a few other tools here, too. I have things like get lab type, which is sort of an output after doing get abnormal labs. So this is a super simple way to get recent abnormal labs for a particular admission. So in that first question I might ask what's the most recent admission and the second question might be given that admission do they have any abnormal labs right and it uses this tool to get abnormal labs using this really simple query from the lab events table right and the special thing about these in data bricks is they're governable so just like regular t like if I click on this table of course I can set permissions on the table just like anything else in any catalog but this also acts as a tool catalog so I can do governance on this function And I could go find my friend.
He's already Right? So I can grant people permission to execute functions. When we talk about agents later, we don't just do a governance on agents. We do governance on the underlying data and the tools those agents have access to. So I built a few of my functions here. Super simple. And I can copy this and I can go over to the playground. just to test it out. Will's going to actually productionize this in a minute and do a real example.
I'm going to show you how to sort of test things out. So, I can pick whatever LLM I want. If you're not already aware, data bricks is LLM agnostic. Um, you can pick models provided by data bricks, llama models, the cloud models, but also you can connect to your own private enterprise models. So, Azure OpenAI, Bedrock, whatever you want to use. I might pick, you know, JPT40 or in this case I'll use Llama. And these models are able to use tools.
That's this section up here. And today we announced actually in the keynote so I can add this in. We announced that all tools that you build in data bricks are actually going to be exposed via MCP as well which is sort of that standard protocol these days for exposing tools for agents. But I'm going to add in my my tools here, right? So I'm going to add in my git abnormal labs. I'm going to add in my GitLab type and I might add in get clinical notes as well.
Just noting too that if you have a variety of tools in a catalog, you could always just add that entire catalog so that your LLM can use all of those tools as well. If I can type properly patient 22's most recent admission. So I'm going to ask this question and because in those tools that we created while that runs because in those tools we created we added a description. You notice I didn't add a system prompt here or anything crazy to tell the LM what to do.
The LLM has that comment on those tools it has access to. So it can choose which tool is most appropriate to answer the question. And of course because I asked about the patient's most recent admission, it can use that get latest admission tool by passing in that input input parameter patient ID and it get back gets back this structured result from that table. Right? So it says yeah the most recent admission was on this date and this happened and I might ask did they have any abnormal labs?
And I'll spell it wrong on purpose just because the LLM can handle that. Um, so now it's going to use the get abnormal labs tool to go retrieve the abnormal labs that patient had from the table. So you see this table of abnormal labs coming back and then it's intelligently saying I'm going to get the types of those labs and then it says, yeah, this patient had several labs and they were this kind of labs, right? And this is fine.
You can sort of see in the interface that it's rendering the tool call, but it also might be hallucinating that. So what we also have in data bricks is a way of tracing what agents do. So I can see exactly what the agent does and the actual tool calls and the inputs and outputs of all of those tool calls at every step. Right? And when you build an agent on data bricks, you don't just see the tracing in this sort of playground UI.
Every agent built on data bricks gets tracing no matter where where it is, right? And it's not just agents built on data bricks. If you go to any of the evaluation deep dives this week, you can actually use this evaluation and tracing and monitoring on agents anywhere, even outside of data bricks. But with that, the final step here is okay, I say, "Yep, I sort of did a vibe test on this. It looks good. I actually want to deploy this as an agent with code, right?"
Well, data bricks actually automatically generates the code for that, too. I can click that get code button, create generate agent code, and it automatically creates the notebook for me to define the agent. And we use right now we use langraph, which is sort of the big open source frame framework for building um agents, but any framework is fine on data bricks. We're agent framework agnostic. So, OpenAI, Langraph, Autogen, Semantic Kernel, whatever framework your organization prefers to use, you can build and serve on data bricks.

16:08 Productionizing and evaluation

But with that, I'm going to switch over to Will and he's going to walk through uh productionizing this. Sweet. Thank you. Um and so just also highlighting that in that playground, uh was able to connect those tools without any code and then start iterating on it. So it's really great for pro prototyping um because you also get the output note notebook but normally if you wanted to start doing your toolkit you'd have to learn how to actually add that array and then make a graph and all that stuff with lang graph which can also be time consuming my existing agent is 600 lines of code that I had a wonderful time writing and so you don't have to do that and you can work with the playground um now when we formalize it I'm not going to go through this code but I want to show a couple things that make it a bit easier um to start doing evaluations.
So, we saw the trace a good bit um that showed and pardon my scrolling here. Um I'm going to go into this driver notebook and scroll a little bit more. One thing that has come up with evaluations are that they're kind of difficult to do but also difficult to get the information to do evaluations. So in the in the example of having like a physician that is your subject matter expert, you need to get that person to write out the expected input and output and then have them make sure that is your your gold standard for the data frame that you're testing this agent.
It's difficult to get subject matter experts like honestly it's difficult to get documentation in general for a lot of cases let alone when you have subject matter experts like physicians or surgeons or stuff like that or nurse practitioners or what have you um that may not have the time nor understand the language that these models are like really trying to speak with us um to like make sure that the evaluations are not only correct and appropriate but also have relevant information in terms of the expected facts that go along with the ground truth label.
So we actually have something called the generate evals df. So I can add my table here and then have how many number of evals that I want and zooming in here we can see that all I did in the data bricks agent evaluations which is our um focus on doing evaluations and making it easier and very powerful. In this case uh we actually handwrote all the examples prior. And uh a fun thing that wasn't actually part of this demo is I think I can actually show them um here where uh wrote this request by hand and that was our evaluation.
So let's do it a little smarter and that we can have uh this generation of this eval set where we can give the guidelines including the tools that it's expecting and what we end up getting from the data that we have that is our source that's our source of truth. So we know it's correct, right? It's not someone's opinion when they're making up um questions or what have you. It's coming from the actual data that we're using.
When we display this eval with that like six lines of code plus the strings, we can see here that I have the request in this case the diagnosis for this patient and this patient exists in the table because it came from that information. We also have um the expected retrieve content which is the direct information that it's going to be looking at. Sorry for the scrolling um or the zooming rather. the expected facts which is going to help our LLM as a judge really understand what it's trying to judge because I had a conversation earlier today where in some cases the LM can get it right or wrong with the normally if it gets it right with the ground truth it can just kind of make up rationale or if it gets or if it says this is wrong it can kind of make up very con convincing rationale um and that's not what we want because unless you're really combing through every single reasoning it you might something might slip through the cracks.
We need to make sure that these expected facts are in in fact facts and they come from the actual data itself. They're not just something someone's ideulating. Um, and so that's going to really help us. And again, I only did that with this uh in this case with the strings about like 15 lines of code. And so that's extremely powerful. We're going to use this to then get started with our evaluations which we can see here with ML flow how we do MLOps and LLM ops. um that we're going to get this agent that we had uh trained in this regard in terms of like the actual agent file that we logged ML flow use that eval data frame and this is where like we really want to start talking about the safety of this model because we know that is coming from the data that it has access to and this is like a real scenario we can then get very um granular with what we're testing and making sure that it's performing correctly rather than oh it this is an opinion on something or it might be like a fuzzy question.
So in this case we saw that um Emlflow evaluate and then tested the agent that we had um logged and so one thing is that we could look at a table but more importantly let's go into this evaluation and so now when we go to this evaluations we can see here uh that we can see the full trace and so this is all I didn't do anything outside behind the scenes or whatever no hand waving and magic here I just did that evaluation with that data set that I created from our underlying data and we can see here that in these assessments we have overall which was all the tests we have clarity correctness and these are all built in you can do custom metrics as well and make it so that there is an LLM evaluating the response of the other one and that way we can understand the responses contextually because it's very difficult to g like uh evaluate NLP and the in like a very cohesive manner that we can rely on um there are some metrics but we can talk about that another time But let's see here.
We can see that there are three that failed in this set. And I did 10 for the example. Some people do 50 to 100. You can do whatever you want there. So let's let's dig into this. We see this really nice UI with colors. Um let's dig into one that failed. Um so in this case, we see uh what is the most recent diagnosis for the most recent or what was the diagnosis for the most recent admission of this patient. Um let's see what's going on here.
Like we saw, we saw the trace, but most importantly, let's look at the right hand side. We can see that those expected facts and that expected retrieval is here. It exists here. We see what it should retrieve which is great that we can see the retriever is working. We can also see the expected facts for this content um that were not just like generated like in terms of uh someone's opinion. These are directly from the information that we should have access to.
And let's see even better. Let's look. Okay, I know it's not correct. But even better, let's see why it was not correct. If I zoom out here and zoom again, we can see here that the feedback it says that it's not correct. We have a rationale. We have a reason and explanation of why the LLM thought that this was wrong. And this is automatically logged. In this case, there is an expectation that the diagnosis was for a basil cell carcinoma.
Um, but the actual response we we saw was a coronary artery disease. Um, and so we have a definitive rationale as to why uh this was wrong and we have it all logged across all these examples. And then we can continuously do this every iteration. So we always have a trail of this and we know what model is performing what and we have some consistency with that. If we scroll down a little bit uh we can see that we're registering this model.
And so now instead of doing the playground with those tools um attached, we now have an endpoint that we can hit as a rest api endpoint from uh any of your applications or what have you. Um when we go over to this real quick, we'll go back to the playground. I selected that agent that I deployed and I can use it directly in the playground where now I can see what was the diagnosis on this one and then see that this was the diagnosis and we can then look at the trace again and see every single aspect that it was doing which is incredibly important now that we've evaluated the C like uh in terms of accuracy and safety we also have this trace.
So then we also have the auditability and monitoring that we were talking about earlier. So now if I have to go back and say that there was an issue with this uh LLM or this agent with a patient or a physician or what have you, we can go back and not have a black box where we just don't know what happened or hope that whoever was using it remembers what happened, right? We can go into exactly what it was thinking uh what tools that it called, what then uh it did with those tools and we can see that it was using the get latest admission.
Um, and then we can go into each of these, see the inputs, the outputs, um, the additional metadata in terms of which model it was using and everything like that. So, this is incredibly important for the safety, observability, and all of that. We're going to go, um, a little bit from this back into our slides and then we'll explain a bit more about the application of this in healthcare and life sciences. All right. Thank you.

25:14 Life sciences use cases

So, I'm going to talk through life science use cases first. He'll talk through some healthcare ones. Um, we're going to go a little bit quick through these. Happy to talk afterwards in depth about how these things work. But, um, between the two of us, we've seen a lot of use cases. Both, you know, we're both data scientists prior to the advent of AI. So, both classic data science and now um, agentic use cases. We're going to focus just on agentic ones in this talk, but happy to talk about anything else afterwards.
So, in life sciences, I'm just going to click through these things. you know, kind of like I was mentioning in the beginning, people often started with rag use cases, whether that is um you know, employee handbook PDFs, medical literature sort of retrieval, lots of sort of PubMed PDF use cases that I've seen. Um slightly more advanced one I thought was pretty interesting was helping to author regulatory doc submissions using retrieved context from prior regulatory docs.
Um, but as we move into agents, whether that's agent systems with tools or text to SQL or multi-agent orchestration, one thing we're not really hitting on today, but that is a super common use case is I'm sure today or yesterday you've heard a lot about data bricks genie. And data bricks genie is really special because it can be used as an agent in a multi-agent system. There's an API, we don't always talk about it, but there's an API for Genie that can be treated as an agent to do text to SQL for you.
So lots of customers that I've talked to have tried to do their own text to SQL which is a really difficult engineering problem but Genie helps solve some of that stuff. They can just treat Genie as a text to SQL agent. It does all that work for you and retrieves back the structured data. So a few of these things like I'm going to talk more more in depth about the sales rep next best action one on the next slide. But um the final thing is we talked a lot about fine-tuning and pre-training in 2023 2024.
We do a bit less of that now just because LLMs themselves have gotten so good at so many things and also they're incredibly cheap nowadays which is amazing but we still have customers doing fine-tuning and pre-training on data bricks like especially this drug discovery one I think Merk was here talking about that one this week but there are other customers that do that as well and for very very large scale sort of like um this one I talk about is clinical note entity extraction but for very large scale structured information extraction from unstructured data it's actually really useful to train smaller models to do that because of costs.
You might have you might purchase a 100 million clinical notes from optimum and want to extract information from those things. So it's worthwhile to use a smaller model for that. Um so I'm going to go a little bit deeper into one really interesting one and this is my ugly diagram so I apologize but um in life sciences organizations in their commercial units they of course have a salesforce and it's a really common use case.
They want to empower that salesforce in some way to do their own not necessarily analyses but to do their own um asking questions about data and so every life sciences organization of course does journey orchestration they do their own next best action but empowering uh a salesperson to ask questions about an HCP to um ask what they're what whether they've been contacted recently have they used any samples do they have any patients with a particular diagnosis those are all really valuable questions that a sales rep might ask and in their case this is a multi agent system.
They used a genie agent that had a bunch of HCP data. It actually had a bunch of IQVIA data in this case. So I put that on the very bottom in green, but it also has sort of HCP interactions data and a few other things. And that Genie Space does the job of all the text to SQL. So it translates that question, looks at all the metadata of all the tables it has, generates the SQL, executes it, and returns back that structured information.
Right? And then another part of it was they later on they wanted to add in the ability for the sales reps to ask about their compensation. And so we added a second genie space with specific um sales rep compensation data. This was a complicated one because of governance of course like you shouldn't be able to ask what your colleagueu's compensation is. And so they really had to figure out how to pass through the identity all the way through from the person asking it to the supervisor agent to the genie space.
And that's one thing you can do in data bricks is not just embed credentials in your agent but you can do identity pass through all the way through to the data which is quite nice. Um the next one is a research assistant. So this is a simple one. Um this was you know a bunch of customers have done something similar to this where they have a bunch of unstructured data and some people are tempted to sort of dump all that unstructured data into one single vector search index. oftent times it's more effective to put sort of domain specific um data into different vector search indexes.
So in this case um we split by therapeutic area and so there's a supervisor agent which is sort of a common pattern in this case that can use either internal search data so three different vector search indexes for different therapeutic areas but it can also go and do a PubMed search and one thing you'll notice in the purple the dotted lines there are tool calls. So of course the supervisor agent is choosing which agent to use kind of like a tool but these uh search agents are choosing which tools are best based on the nature of the question.
So like we were talking about earlier you create and define tools and it's really easy to create um unstructured search tools and data bricks. deleted structured today in the demo, but it's very similar for vector search indexes. And per, you know, depending on the nature of the question, it can choose which therapeutic area to go do retrieval on. And because this isn't rag, this is agentic retrieval. If what is retrieved is not good, it could choose to go do retrieval again.
Maybe it rephrases the question. Maybe it rephrases the question in a few different ways and does retrieval on all those questions. Those are all things that you can do with these types of agents. Thank you. And so now we're going to go into the use cases in healthcare. Um there going to be a couple diagrams. There's a test after everyone will get a piece of paper and we need you guys to draw all of them from memory.

30:55 Healthcare use cases

So just just kidding. Um so we did a little bit about this. Um really the main thing that we want to talk about in in the buckets they're they're similar. Um so I won't go too much into it was the evolution in terms of retrieval augmented generation agent systems and then multi-agent systems. I think there is sometimes a fallacy that people think that one is inherently better than the other. And so in some cases people try to use uh one kind of uh architecture for everything.
Um knowledge stores are still incredibly important. Um but also fine-tuning so important and agent systems even though they're the newest and hottest they are very important right. Um so in this case we're not going to go too much into which of these are uh these blocks. But the main thing that we talk about in terms of like social needs intervention when we're talking about agents, well, if we have a chatbot interface, that's one thing, but how do we make sure that these uh agents work in a way that's autonomously and then more efficient for our organization?
In this case, we want to know if uh a particular patient exhibits signs that they have social needs and then what do we do with that? So, how do we detect that and act autonomously um from the data from the clinical notes? In this case, we have multiple in terms of steps where this agent can then do what it needs to do in terms of augmentation. It can get the uh clinical notes. It can then do classification on the social needs that are um categories based on what the internal documentation and requirements are um in terms of if someone has lack of transport and they can't get to a doctor, they have food scarcity or insecurity and stuff like that.
That is really important when we're actually trying to target care. Um then we can do entity extraction as well and making sure that we understand the relationships in these notes um and all do this autonomously. So then we can get a final where we get a next best action with this augmented table so that practitioners where they're a human in the loop where there's still going to be humans in terms of this workflow. It's not going to be completely autonomous because we want to check for certain things and then we also have the patients that are impacted by this.
There's a great example of having an agent do a lot of work that um we don't necessarily need manual kind of um classification on this because having someone sit down and read through every single note and classify is definitely viable. Um but we have tools that can do this and that way we can target um patients more effectively as as well as uh faster. We can determine their needs um as soon as the nodes land and we can go from there.
Other thing that we're going to talk about um is patient throughput and staff burnout. We talked a bit about efficiency. A lot of people are trying to do more with less. That's a classic thing, right? Um how do we make sure that we are allocating um practitioners effectively and also making sure that we're not contributing to attrition? We don't want to over assign someone um or underassign people in cases that if inpatient and outpatient are separate in the system then and we we get that wrong then we might have idling resources in one and the other they might be swamped.
We don't want that, right? And so in this case we can have this agent that combines with um streaming capacity of different ICUs and ERS and the like. We can then uh use these agents to figure out what the capacity um is going on and the trends with this um just based on the information that's coming in the notes and stuff like that um and then tell us what is going on with some of these and maybe highlight some trends that we need to actually look at and take action on.
So in this case we can actually look at how are we going to plan these resource allocation. We can do it in real time because we're doing this autonomously. Um so that if I look at a table like from yesterday or even like today I can see at any given er what the capacity is and as well as like maybe the recommendations on the allocation there or potential idling resources. We can make this pipeline that can understand the notes and the numbers and everything like that and then give us this kind of view instead of having someone work down on the analyze the data and make a dashboard and stuff like that.
That's absolutely viable. This makes it though that we have an agent workflow um that can do this system for us and then we can rely on and then iterate on top of it. Um and it's also very understandable for the people who are using it in terms of if someone who built this system like in terms of pure um like SQL or analysis what if they go on vacation or something like that and we don't have explanability of what's going on and then something happens right in this case we can actually work with natural language um and then design the system so it's more understandable as well as commenting on itself so that we understand the reasoning and how it's working and then how to iterate on it.
Um so we're going to go a little bit on um what's coming next. we have a few minutes um so that y'all can see what we're what we're working on and what is going on in the industry and so yeah so yeah I think this is this is just the way that we think about it it's not a formalized term but when people started building agents we noticed a lot of analytical agents and think of that as like where an agent might retrieve huge swats of information structured or unstructured and you're kind of fine where it takes a long time it's retrieving analyzing it's answering sort of arbitrary very questions.

35:18 Industry future and takeaways

Um, Genie is a good example of an analytical agent. Um, but I'm seeing more and more use cases where operational agents are becoming important where they're embedded maybe in a workflow or super low latency needs are required. So, it's an interesting dynamic where an operational agent maybe you need to define a small set of problems that it needs to solve and do those very quickly whereas analytical agents might need to answer sort of arbitrary questions and analyze data for you.
So, it's an interesting thing. I'm starting to see more operational agents. Um, as mentioned earlier, there's a lot of I wouldn't say competing standards, but there's lots of upcoming standards in this space. MCP stands for model context protocol. It's a standard protocol invented by Enthropic. It's open source for exposing tools to agents. And I get a lot of questions about MCP. It's very rare I do a meeting about agents and I don't get asked about MCP.
But as you might have heard today in the keynote, we're standardizing an MCP as well where so if you build a tool in data bricks, it can be exposed via MCP. You can also host custom MCP servers on data bricks. A2A is another interesting one that's uh it's called agent to agent. It's by from Google. Um and that's how agents talk to each other. And a lot of people are worried about how your different agents and different systems are going to talk to each other.
I don't think this standard is is as much of a standard yet. But um there's lots of these things. Everybody asks about you know should I use Langraph or Crew AI or Autogen? And there's a lot of froth in this space about standards and frameworks. I think this will become clearer maybe later this year, maybe next year. And then multi-agent systems. Um, we kind of talked about it on that graph, but a lot of folks want to start building multi-agent systems before they really nail single agent systems.
So, but I think as we get better with some of those standards with um whether that's the interoperability, whether it's open source and the protocols between them, we're going to see more and more multi-agent systems, including agents living in multiple places. Like you might have a multi-agent system on data bricks where one of those agents is in a separate place. Cool. Yep. And uh it's becoming more and more common with multi-agent systems as people are trying to optimize and make things more efficient.
You can imagine like a call center where a patient calls in um and then there's different flows that they might take in terms of scheduling information and stuff like that. Those can be agents that do their own thing as well. So they're they're separated out. Um and that's kind of like the multi- aent in a nutshell. Um what do we do in terms of like uh agent evaluations that are actually effective? We went over a lot of things.
Um this is going to be iterated. I I personally do not think that many um systems are implementing evaluations as a first principle um or doing it really really in-depth. So we need to focus on making sure that these eval are done uh well and consistently. Uh and we also have self-optimizing systems. If you all have heard DSPI um in terms of the idea that prompt engineering doesn't have to be iterative in terms of just writing but we can programmatically update prompts and make things better and optimize them.
Um we have uh direct integration and also working with that in terms of our our engineering team on that. Um and what does that mean for prompt engineering and prompt tuning in the future which was a huge huge part uh entire roles were designed around that when um LMS really became uh productionalized. And so if you're going to take one thing away from today's session agents aren't that hard to build. We all did it together but they are hard to evaluate.
That's why data bicks is so focused on the evaluations piece. Yep. And evaluations mean trust and safety, which is paramount in our industry. Um, and again, data bricks is trying to demystify that and make it a lot easier. And so, thank you so much for your time and I hope you enjoy the rest of your days. Yeah.

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.