Building and Scaling Production AI Systems With Mosaic AI
Summary
- End-to-end AI pipelines: Learn how to architect and scale production-grade AI systems on the Databricks Data and AI platform.
- Enterprise governance: Explore integration with MLflow, performance tuning, and frameworks for managing the full AI lifecycle.
- Multi-agent systems: Discover techniques for building and evaluating agents, plus governance and observability practices.
Building and Scaling Production AI Systems With Mosaic AI

Talk by Kasey Uhlenhuth, Director, Product, Mosaic AI Platform, Databricks
Ready to go beyond the basics of Mosaic AI? this video will walk you through how to architect and scale production-grade AI systems on the Databricks Data and AI platform. We’ll cover practical techniques for building end-to-end AI pipelines — from processing structured and unstructured data to applying Mosaic AI tools and functions for model development, deployment and monitoring. You’ll learn how to integrate experiment tracking with MLflow, apply performance tuning and use built-in frameworks to manage the full AI lifecycle. By the end, you’ll be equipped to design, deploy and maintain AI systems that deliver measurable outcomes at enterprise scale.
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
0:00Introduction and agenda2:00AI functions and enrichment7:45Document intelligence20:53Building and evaluating agents31:25Multi-agent systems35:13Governance and observability38:50Serverless GPUs and conclusion
FAQs
What are the key steps to build production-grade AI systems on Databricks?
This video covers processing both structured and unstructured data, applying Mosaic AI tools for model development, and integrating MLflow for experiment tracking and governance across your AI lifecycle.
How do I manage multiple AI agents in an enterprise environment?
The video demonstrates techniques for building and evaluating agents, plus governance and observability practices using Databricks' framework to maintain control across multi-agent deployments.
What role does serverless GPUs play in AI system deployment?
Serverless GPUs provide a solution for custom AI building on the Databricks platform, enabling scalable compute resources for your specialized workloads without infrastructure overhead.
Why is MLflow important for AI lifecycle management?
MLflow provides integrated tracking, performance tuning, and deployment management across your entire AI system lifecycle, enabling consistent governance and quality from development through production.
Full transcript
0:00 Introduction and agenda
Hello everyone. Uh, welcome to this session. I hope your data and AI summit has been good so far. Uh, it's probably been a fire hose and we're not going to make it any less intense than this one. Uh, so buckle up. Um, all right. So, in this session, I'm going to try to make it like a whirlwind tour of everything that we've kind of released in the last year. Our team has built a lot in sort of the AI platform space and a lot of tooling in here to help you build AI.
Uh so we're going to try to go through as much of it as possible and so I have all the bullets of the demos in here. Uh if you have a burning burning question, you can wave your hand. But other than that, if it's a question about how you personally can do something or at your org, please save it till the end. But if it's like a burning question about the capability or something like that, wave your hand at me and I'll try to answer it during the session.
Otherwise, I'll be outside afterwards. Uh, and you can ask me there. All right, deal. Okay, cool. Um, if you do want a more higher level overview that's a little more about positioning and how to think about the platform in general, I recommend going to the session tomorrow, not this one. This one I'm trying to keep into the capabilities. All right, so with that quick agenda, so I'm going to quickly go over what the Mosaic AI platform is and then I'm going to deep dive into sort of like the four main sections of this talk.
So we're going to go through AI functions, which is sort of LLM data enrichment. So how can you apply apply AI on your data and that's kind of related to document intelligence. Then we'll go into AI uh agent bricks and genie and vector search. So how do you actually build agents uh that retrieve unstructured data or structured data? Then we'll go into AI gateway and MLflow 3. 0 which is sort of our story around governance and observability for your AI.
And then we'll end with serverless GPUs which is basically our solution to how you can custom build your own AI on our platform. All right, does that make sense? Cool. Good. All right, pictures done. All right, cool. Next. All right. So, here are the four things that we're going to go through. And so, we're just one by one going to go uh through all of these. All right. So, I don't actually know what to call this. So, if you all have a better name for it, let me know.
2:00 AI functions and enrichment
I used to call it LLM data enrichment. AI data enrichment. It's usually called batch inference, but so many people now are using AI. That's such a ML specific word that I'm trying to figure out what the new term is to call it. But we do allow you to apply AI on your data very easily inside of data bricks. So we have something called AI functions. We have a bunch of out of the box AI functions that you can use that you can apply or we have a function called AI query where you can basically use any base LLM that you want.
Feed it a prompt and then run that uh in there as well. You can also use agent bricks. It wasn't demoed in the keynote this morning, but you can actually use agent bricks to customize an AI function to make it work better on your data or to get a lower cost version. So, we'll get into that uh in a second. Um, so again, this AI functions, here are some of the autobox ones. So, AI analyze sentiment, AI classify, AI summarize, AI extract.
And so, you can use these in the SQL editor, you can use them in a notebook. Uh, and you'll be able to use them in LakeFlow pipelines as well. So you can just directly use these as sort of transformations uh in your code uh along the same line. So I'm basically just going to walk through everything and then we'll demo it all. Uh so then we also use these AI functions. We're basically releasing one I believe it's coming out in beta imminently which is called AI parse.
This is going to allow you to parse your PDFs or other unstructured data that you have. Uh eventually Excel too. That's the number one request we get is can you parse all my Excel files into delta tables. Uh so we're working on that. So we'll show you that. Uh we also have as part of that an AI extract table data which will find if you have documents that have tables in it, it will pull that table into its own delta table entirely as well.
Uh and then lastly what I mentioned before you can actually use agent bricks which we announced this morning to basically customize an AI function. Uh and so that's providing you know all of this built-in evaluation capabilities and sort of this quick iterative loop to auto optimize and improve your agent. Uh but you can actually use these agents to do these kind of like automated workflows for you. So you can use these agents to create better information extraction, better summarization, better like text generation capabilities.
So you can use those in there. All right, that was enough slides. All right, so let's actually show how this works. Can you see that from the back of the room? Is that good or can you not see it? Can you see it back there? Okay, cool. Um, all right. So, this is the gist. So, here's a table I have. It has a bunch of customer review data in it. And you can see I have this chunk text column that has like the text of all the reviews.
All you have to do for AI query is you just come in here and then you can see it autocompletes with this AI analyze sentiment and I just give it this and then as sentiment I guess we can name something nice and then you run it and that's literally it. So it's a very underwhelming demo. Uh but once it executes like this is how easy it is to apply these. I should have done limit one I guess. Uh but this is how easy it is to apply these.
So then I can come over here and then now it has the sentiment in here. And so this is how you can make it super easy for people to use AI to sort of enrich the data sets that they already have. So I would say the number one one that I think believe I we see is classification. So a lot of people use this to actually classify different things that they're getting in. Analyze sentiment is also popular and summarize I would say is actually the most popular.
So people are using this a lot of times to summarize the transcripts they're getting. They use it to summarize different calls that they've transcribed um from call centers and things like that. Uh so that's how easy it is to use. All right, but what if you want to use different s sentiments? So I don't know, for some reason this one uses mixed out of the box. Usually it's like neutral. Uh and maybe want like a broader scale.
So you don't want it to just be negative, mixed, positive. You actually want it to be like a five different points or more for your sentiment analysis. So that's where you can use AI query. Oh, dang. Look at that DB assistant. So cool. Dang, how did it know? We must have built this demo too many times. It could predict. Uh anyways, uh sorry little nerd out session. Uh I never actually remember the syntax. That's why that was so exciting.
Uh so you can come in here and this is how you use AI query. So it looks a little less exciting. Let me hold on. I don't actually know how to format format uh SQL because I don't I write Python. But here we go. Uh so when you come in here, you can see Oh, it doesn't let me zoom. All right. Uh but in here, you can see that you just specify your base model. Uh so my base model here is Maverick uh Llama 4. You'll soon be able to put your anthropic claude model through data bricks in here as well.
Uh and then you just need to give it your prompt. So I said, okay, analyze the sentiment as extremely positive, somewhat positive, neutral, somewhat neutral, and extremely negative. Use only these words in your reply. And then you concatenate that with the text. And once you have that, then you can now run this query. So now you're going to do see them like side by side. Uh, but again, that's all you have to do. And you can see that we've put like if you used AI query a couple months ago, you might have seen that the performance was maybe not what you wanted it to be.
We invested a ton to make that performance really good. And that's what you just saw there. And so now you can see you get like a somewhat different scale um in here. Unfortunately, everyone is extremely positive about our energy drink flavors. So don't know why that would be um but you can see in here that this is how you can get sort of more customization uh in there. And that's how you can build prompts for like you know better summarization and things like that.
So it is kind of an underwhelming demo but is actually pretty powerful what this allows you to do. So this is how you can easily augment your data sets or delta tables with AI and that's how you can use AI query for that. All right. So then what about document intelligence? That's what people I think care most about. So if you have a bunch of PDFs or you have a bunch of text files and you want to convert them into structured data inside of your lakehouse.
7:45 Document intelligence
So we're working on AI parse uh which let's see okay here's my PDFs proof. There's PDFs in a UC volume somewhere. Uh and now you can use AI parse. Sorry, I should have written it in actual SQL, but Python for the win. All right. Uh, so in here you can see that I'm using AI parse uh to parse all of these different PDFs. I just did one because it will take some time. This is what the output will look like uh in here. And so it's kind of crazy, but this is parsing every single element.
So we'll basically do some intelligent summarization for you of your PDF. And then we create this elements tag that goes through like and it'll go page by page through your entire thing. So this is a receipt. So this parsing this receipt. So I I don't even think it's in English. It's in German. So there's this receipt and it's able to parse all of it for me in here. And then what you what most people then do is they want to do extraction.
So right now the way we're thinking about it is we're thinking about making parsing and extraction different functions that you call. It's TBD on whether or not that will be the final state of it. Most people combine them together, but we actually see value in doing it separately where you actually might want to use the parse content for multiple use cases that have different extraction rules. So, we're still trying to figure out if that's the right final design.
Uh, but right now again like sort of I would say like the kind of high level way that we think about the data platform and AI is we want to make everything composable. And so we'll specialize all these different components and then you can kind of chain and stitch them together in any way that you want. So this is kind of an example of that where we have AI parse and then AI extract. Uh and then maybe down the road we'll combine them together into a parse and extract function in there.
Uh oh, we detached. Okay, so that's how parse works. Then you can attach it to extraction. So let me kind of show you how you can do. So you can use AI extract which is an out of the box function but actually maybe I can show you in here but this is what will happen if you can see this. Oh I can't zoom in on PowerPoint. Okay. Uh but in here you can see what happens if you use the out of the box AI extract versus if you specialize it yourself.
So out of the box you won't be able to specify which fields you want. It's going to figure out which fields automatically for you which could be nice. Actually, sorry, I lied. You can specify the fields. That's what I have at the top. But you can't tell it like anymore on top of that. So, you can see in here it's like you European. So, it's European syntax, but maybe I want it to use the US syntax. So, I want instead of commas, I want to use a period.
You probably can't see it from the back of the room, but you'll just have to trust me. Uh, and so what you can do is you can use agent bricks to actually help customize your extraction and then you can use AI query with that brick to then change your extraction in there. So to show you how to use information extraction to customize your extraction, we'll go inside data bricks. So we go to the left, go to bricks over agent bricks over here.
Then you click information extraction. You just have to give it your source documents and one example of what you want extract like the extracted output to look like so we can learn what your fields are. But we'll actually autodetect it for you. So I'll show you that in a second. So I'm going to go find um wait is it in this workspace? Which workspace was it in? I think it was. Okay. Uh AI demo. I had to write down the name of this.
I have too many demos on this thing. flavor R&D. Yeah. Okay. All right. So, this is I actually parsed I used AI pars to parse a bunch of formulas and now I want to extract them and these formulas were PDFs. Then I just select the column that has the text. Oh no, maybe it wasn't that one. Oh, I have to process them. Okay, so there is a trick. It's in variant form and it needed to be uh in string form. Okay, here we go.
So, here are the pages. And then you can see that it's actually automatically going to try to detect what the sample output should be for me in here. So, in a second, you'll see it's going to generate what it thinks the JSON that I want to be extracted from this in. This is a open question that we have is should we just extract straight to a delta table rather than the intermediary JSON? Some people want it to be JSON output and some people want to go all the way to delta table.
It's pretty easy to go from a JSON file to a delta table, but it could be more convenient to go straight to delta. So that's another thing that we're trying to figure out as we build this is like how far into the integration do we lean. Uh so food for thought later if you have comments let me know. But you can see here that it totally basically got exactly what I wanted from this. So it has all the different ingredients that it extracted.
It gets the flavor ID. It has like the allergen note about it and the whole ingredient breakdown. So once I have that, I just go ahead and click create agent. And then it's going to drop me into this like agent learning UI that we kind of saw in the keynote, except because this is sort of a simpler use case where we don't need probably a subject matter expert to help us label it. You'll see that it's a little bit of a it's like a data or a developer centric uh UI in here.
Let me zoom out a little bit so it looks a little nicer. All right. So might have to wait a minute to let it update. This the only problem with a live demo is that you do have to wait a little bit. Uh but what you're going to see in here is it's going to show me examples of extra of extraction. Uh and then I can see all of those and it's going to generate or you can already see that has like the schema over here and then I'll be able to edit the schema as I want.
So if like now I'm like oh wait I needed to do flavor profile or something from this. You can then add in the flavor profile um in the extraction. Hopefully this work. Yeah. When you parse that one, it able to read the content that Oh, good question. The question was there's all this I don't even know what this is. Watermark or something in the back of this PDF. Did the parsing actually parse it? I don't know. 113494.
Let's find out. Is that a scam? Uh, I think so. Honestly, I pulled it from Kaggle, so no idea. I've never seen this PDF before in my life. I don't really randomly have PDFs sitting around for me to parse. So, um, but I doubt it to be honest. Uh, but maybe I would be I, you know, I always get surprised by these things. The question was, does it pick up the watermark for the video later? I'm in there. Yeah. Does the extracts all work? scanned PDFs just like it will work on images, PDFs, text, anything.
Uh the future and then hopefully Excel soon. Uh yeah, videos, videos, not yet. Focused on text first, then into videos, I would say. Okay. Uh so here and so this is kind of what the agent learning loop looks like in here. So we're actually going to give you smart recommendations of where we actually think that your uh your descriptions for your fields are perhaps ambiguous. So we actually went ahead and created some of that uh natural language feedback on how it should do extraction for you.
So you can see over here that it basically said oh intended base product is probably the name of the base product intended for some processor application and the flavor ID is a numeric identifier for the flavor of the product and what the allergen note is. So it's giving it's providing all this natural language feedback on what each field is automatically for me and then I can edit that as the expert in here and then it's also giving you recommendations where when we generated these we actually thought was pretty ambiguous and you might want to help in there.
Is it a pressing question? Yeah. Yeah. Go ahead. No, go ahead. Yeah, it can translate the dog. So, I don't have it in this one because this isn't the this is not the German receipt, but I do have a demo of that German receipt where I say uh so one of the things that you can do over here is at this highle instruction. So, you can say what instruction do you want to apply to all fields and I put make all fields in all English only and it translates all of them.
So I would say our information extraction it we we actually weren't sure if we should name it that because it can actually do more. You can have in different fields it automatically do summarization for you. So you can say like also summarize what this does. You can have it do classification in there. Uh and you can so it's really more of a like structured output agent. So we'll do anything and put it into a structured output for you including summarization, classification and translation uh in there.
The only tricky part is then when you choose to optimize. So once you like get this into good shape and you like it and you keep updating the agent and listening to the improvements and work on it, then you can go to use and then can click this get a cheaper agent. And in here we're actually going to use our different techniques to try to help you get a smaller model in the back end so that is cheaper for you but match the performance.
Uh and the only tricky part in here is that we will do automated eval for you at this point. If you have fields that are like summarization or classification, it might be hard for us to do out of the box evaluation on it. So you might have to add your own eval benchmarks in addition to the ones that we provide because the ones that we provide are purely on extraction like did it extract the correct fields and it's not actually saying okay this was technically an extraction use case with summarization and classification and text generation in it.
Uh because those would all have different uh metrics in them. Uh the thing to note here that was kind of subtle is that we never provided labeled data. So you never had to have examples of what good extraction looks like. We just from this uh stage are going to show you examples and then you keep iterating on it and then we can still get you a cheaper model with unlabeled data. And this is because our research team came up with a technique called test time adaptive optimization or tow for short which allows us to basically do fine-tuning on just unlabeled data.
So they have some I don't know some like fancy like RHF like does a bunch of things generates a bunch of different outputs figures out which one's the best one using like you know reward models and yada yada yada in order to create uh better uh basically it's basically in a way like doing distillation of models into smaller ones that then you can have for your cheaper agents here. So it's a slight misnomer that it's an agent because it's really a single model in the back end right now, but eventually we could potentially do it as multiple models that call in here.
So like maybe one day it will be one model that does the extraction and another that does a summarization. So then we can give you better evaluation and things like that. But right now in the beta it's a single model for this use case in particular. Um then you can go ahead and use this. So like if you are happy with your model you can then use it in AI query. So like just like we saw so full full circle moment you can then go inside here uh and let's see limit two great um no that was too fast okay so then you can come in here and this is going to take that agent endpoint that we already created uh and it's going to run it on that original table that you fed us and then we can see it actually do the extraction in here and so yeah so it's all so they can see like everything composes together uh in data bricks and so that's what we're really trying to do as like our unified platform.
So yeah so you can see here this is an example of what PD like AI parse will give you. So this is how it parsed my PDF and then now I extracted it into these fields. Is there way to make this nicer? Okay, there we go. So you can see the PDF parsing. Oh, even better. Sorry for the sound effects. All right, there you go. Okay, so now you can see uh the parsed output and then now we extracted it into nicer fields. And then you can even go a step further and put this into a delta table where you unpack the JSON where every field is now a column.
Cool. Okay, that was that. All right, so that was sort of AI functions and how you can use AI functions to start to compose sort of AI transforms. You'll see something even more exciting in the keynote tomorrow that this will also apply to of where you can start to use all these AI functions to create powerful pipelines. Okay, sneak peek. Okay. Um All right. So, the next thing was Oh, I didn't put it in here. Okay. So, the next thing we're going to talk about is building agents on data bricks.
Uh so, today building agents is really challenging. You all saw this in the keynote. Uh so, the reason why it's hard for people to get into production is because evaluation is difficult. there's too many knobs and there's this trade-off between cost and quality. So, uh, actually, it turns out 85% of users are just doing vibe checks to figure out if their agent is good. So, that's zoinks. Uh, there's too many knobs. So, there's too many ways that you could optimize your model, even if you did have evaluation, to figure out if it was wrong.
20:53 Building and evaluating agents
And then even worse, if you do end up figuring out your evaluation and you do end up being able to optimize it to get better performance, oftentimes the out like the resulting agent is too expensive to deploy at scale. And so then you have to be like, well, guess I'm going to have to use a cheap or worse model and then I have to trade off on the quality that I just worked so hard to optimize for or the whole project goes on ice until you can get the budget that you need to deploy it.
So that's probably the most frustrating one of all. Um, so that's why we built agent bricks to try to help solve all these problems. Uh so you saw this in the keynote already so we're going to fly through it but basically all you do is you select a task and so we have this declarative approach to building agent. So you select a task describe basically what you want the agent to do and then in the back end we're going to create evaluation benchmarks for you automatically so you don't have to keep going to a subject matter expert to review it.
We're going to autooptimize the agent using that agent learning technique we saw in the keynote stage. And then you're going to be able to instead of having to trade off cost and quality, we're gonna have a deep optimization that will actually optimize on both cost and quality in there. And so that's for example with the information extraction. It currently says get a cheaper agent, but that's not correct. It will actually get you a cheaper, better agent in there as well.
Okay, cool. Um, the last thing to mention before I go demo is we did do a lot of work on vector search. So there's kind of some cool capabilities to talk about here. So we actually created an AI function of vector search. So if you actually want to do retrieval in a SQL query. So if you want to kind of like see the similarity of different terms and things like that or report that SQL and apply that on a data set, you can.
Uh and so people do this for like seeing like like looking at customer transaction history and seeing that the similarity between different purchases and stuff like that. Uh vector search has a retrieval tool. So you can actually use vector search as a tool in your agent system. Uh so rather than having to build a rag agent around it, you can just have the index itself as a tool and then call that. Uh we created storage optimized endpoints that actually just got announced I believe today in public preview.
Uh so that allows you to now scale up. So before if you had, you know, millions of vectors, you had to break it down into smaller vectors and then stitch them across. Uh now we support large scale uh vector databases in here or vector indexes in here. So 5 million plus is supported with storage optimized. Uh and it's considerably cheaper. Uh so if you thought vector search was expensive before, it is it was super cheap now.
I forget I forget exactly the X. I feel like it was 7x. Don't quote me on that. Uh but it was a lot cheaper with storage optimized. Uh and then we also added reranking. So we added this extra filtering and our research has shown with our reanking you can boost quality by like 12% on your retrieval in there. Not that anyone actually evaluates their retrieval, but if you did, you would see a 12% boost. All right. Um, okay.
So, we're gonna like quickly run through what we did in the keynote because we're running out of time. Okay. So, agent bricks, uh, the way that you build it, again, it's this declarative approach. So, you could come in here, you add a description, uh, and you can just configure your knowledge sources. As I mentioned before, you can either have your UC files directly in a UC volume for your knowledge assistant or if you already created a vector search index, you can as well.
The main time I would say create your own vector search index is if you did your own kind of fancy thing or if you are uh we often find that people need their own embedding model if they have like deeply like technical medical jargon in there. So they often find having their like a fine-tuned embedding model or using an open source embedding model might work better. Uh similarly, if you need to work in a different language than English, a lot of people use different embedding models.
So that's when I would say, hey, maybe put your own vector search index in here. Uh let's then go look at one of these. So we'll go to the one from the keynote. Okay. Uh so we can go in here. We can see I have this configured. You can go ahead and test it. Uh then I'm just going to do the exact same one. So we can say does spicy manga again typo. uh exceed the surge sugar cap. Uh so you can see in here, so this is the reason I said surge sugar cap is it's a domain specific jargon to this energy drink company in their R&D department.
Uh so you're going to see that it's not going to be able to answer this question. So it's like oh please specify this sugar cap because I don't know what it is. Uh and so then we're going to use the agent learning technique to figure it out. You can see in here that we are connected to ML flow. So you can see the trace. So you can see that reranking is run. You can see which documents are returned etc in here. Uh and then if I go into I'm just going to because I'm running out of time I'm going to combine sections.
So as part of our observability we also have ML flow. You can set up monitoring now in beta. So we have agent monitoring. Agent monitoring is going to work on agents hosted outside of data bricks as well as ones hosted on data bricks. Uh so it's using open telemetry as the standard and we will basically add or uh AI judges to enrich your sources. So full circle just like we use AI functions to enrich delta tables we have traces in tables and then use LLM judges to enrich those.
Got to love it. Anyways um so you can set up agent monitoring on any endpoint. Uh and if it's external there's like an SDK that you can set it up on. Uh what this will give you when you look at your traces is something that looks like this. I don't know why we always have the first column so big but you'll be able to see all the incoming requests, all the outgoing responses. We'll be able to click inside and see like the deeper trace in here.
Uh and then you can see we have all of these LLM judges that are running on it. And then you can like quickly hover over and see like you know why it's failing or not or why it's passing in here. And this just gives you quick automated insights into the performance of your agent. This is like the number one problem people have is doing evaluation. Uh often people are relying on subject matter experts. We have some teams we've talked to.
It's been like over a year working on the same app just because of the back and forth through a subject matter expert to keep figuring out did we get better quality this time? What about this time? And uh basically the non-determinism even with a human judge is what makes it hard um in there. Uh so this immediately helps you get like faster insights which allows the developer to iterate more before going to the subject matter expert.
Maybe one day we can get not ever go to them but for now uh not there yet. But at least we can dramatically reduce the iterations um in there. Okay. So that was observability that we're working on agent monitoring with MLflow tracing. MLflow tracing is part of MLflow 3. 0. It's open source. You can use on external agents as well as ones on data bricks. Okay. Uh so now that we're back here uh let's go back to this. So the agent learning aspect.
So you know how we had that nice like UI with information extraction that like gave us the smart recommendations and we had all the fields all the natural language. This is the knowledge assistant version of that UI. The reason we made it slightly different is because you might want to do a labeling session where the developer may not actually know the right answer when you're doing knowledge assistant because usually it's like a corpus of docs that the developer has never seen because they're building it for some other team.
Uh and so the point of the labeling session is then you can give this data bricks review app to your subject matter experts and then they're going to be able to see something like this where it's going to ask the question. It's then going to run it, give the answer here, and then they can provide the natural language feedback in here. So then they can say, I don't know, uh, use uh lists over bullets. That's kind of a boring one.
And then you can say something like uh only talk about recipes from 2022 plus. I don't know, make it up. Uh so once you do that then when you go back in here you can then choose to merge their feedback in. And so when you merge their feedback in that's when agent learning is going to come in. Agent learning is our optimization technique. We're going to take your natural language requirement convert it into a technical optimization where we're going to change your retrieval.
We're going to change your filtering and we're going to change your prompt behind the scenes. And this scales to the amount of feedback. So we found the more feedback you give the better it does. Uh, and we basically have a system that accounts for the scale of feedback that you have. The gist of it is we're summarizing your feedback, putting it in our own store, and then looking it up based on the question that you ask.
And so that allows us to generalize um across your entire system in there. So that's kind of how like agent learning works and it's going to allow you to uh basically uh use natural language to then iterate on it. Some people are skeptical about it, but I would say try it out and then get back to me. All right? Because actually it pretty it's pretty magical because like this is what people do anyways is they go to subject matter experts, they ask them for feedback and then they try to tune the knobs themselves.
Uh and so it's like why do we need to do that? It's just like pushing around some code. Uh and so this actually works I think pretty efficiently in there. So I would say give it a whirl. Uh we can do it real quick. Uh so we're going to do exactly what demo. So this is not the exact question I asked. So that's all the show generalizes. Uh and then we're going to teach it what the surge sugar cap is. And then now it's already optimized.
So when I go back, oh no, where did it go? Here it is. Go back to this. Rerun it to the same question. Uh you're going to see it's now going to figure out what it is. So you can already see in here. It's like, oh, I need to identify the archetype, the grams of sugar. So, it already basically learned from our natural language feedback instantly on there because it was able to retrieve it from that store and put it in here.
Cool. Uh, we also have citations built in to knowledge assistant, which is probably a favorite feature. Okay. Uh, we're gonna go really fast now. Uh, so the thing people are most excited about is multi-agent supervisor. So, we're definitely going to cover that and then we'll quickly go through governance. All right. So, multi-agent supervisor allows you to bring together genie agents and tools together. First of all, does everyone in here know what Genie is?
31:25 Multi-agent systems
Okay, so I don't really need to demo Genie. Okay, great. Everyone knows what Genie is? Genie is our Texas SQL agent. So, multi-agent supervisor is going to allow you to stitch all of these together. I think maybe I thought in advance on this. No, I didn't. Okay. All right. So basically, you can come in here and you'll be able to configure any Genesis agent endpoint or MCP server. With MCP, we're going to allow you to take all of your UC functions and we're going to have a data bricks hosted uh MCP server.
So all your UC functions and stuff in the UC will allow you to then expose to agents uh as an MCP server. Uh but then we'll also allow you to create your own. So you can actually use data bricks apps to host an MCP server um as well. So a lot of people have their own internal APIs and things that they want to host as an MCP server and then you can put the hosting on data bricks apps uh for that. Uh there's actually a session going on right now about that.
So if you want to learn more you can go watch that video online uh later. Um but that will be the thing there. Uh so you can stitch together genie spaces agent endpoints. Let's just go ahead and look at the one that I already did. Uh so in here I have like uh agent endpoints. This is a rag endpoint and then two genie spaces. I would say probably the number one problem I hear people have is they have a bunch of PDFs and they have metadata on those PDFs.
So for a common example is have a bunch of legal contracts and they want to be able to ask about the different clauses in the legal contract. So they want a ra like aru unstructured rag on that. But then they want to also ask questions like which contracts are up for renewal like auto renewal in the next 30 days which is then asking questions on the structured data of it. So they need a way to have structured and unstructured rag together.
And so this is probably the most common use case that we see people wanting to use multi- aent supervisor for is they're actually going to create a unstructured rag agent on those contracts and then they're going to create a genie space on those contracts. So they're going to use information extraction and AI parse to parse the PDFs and then put it into a delta table and put that delta table into genie and then combine it with the rag agent with multi-agent supervisor and then you can ask it questions on the metadata of your contracts as well as the text of your contracts.
So that's not what I demoed in the thing but that was like realistically the most common use case. And then there's this whole thing. It's like, oh, I want to communicate cross department and there's all these expert agents cross department uh and they want to talk in here and then we can ask uh questions. Um so the way that this works uh is that oh that wasn't it. Well, this guy answered this question whatever I sent it.
Uh so uh but the way that's going to work is this uh the supervisor agent is going to figure like break down complex questions into smaller questions and then it basically delegates it out to various sub aents and then may take the answer from one sub agent and feed it to another. Uh and it seems like so far LM are pretty good at this. The problem is that multi most multi-agent systems go into what's called like a death spiral where it like doesn't realize it got an answer back and so it gets stuck in this like infinite loop and it's pretty hard to get out.
So that's why we actually built it as a agent brick a uh configuration is so that you can go to the improve quality tab and use agent learning to help it actually route better. So you can say, "Oh, you should have called this tool or your logic should have been like this." And so you can use that natural language feedback to actually improve the routing across your various agents. Um, and there, okay, we are running out of time.
We're going to lightning go through this. All right, governance. So a lot of people want to know, okay, I want to democratize AI or I want to be able to audit all my AI usage. So we have AI gateway. Here's take a picture because this has every feature as part of it. We have a unified query interface so that you can query any model API uh with the same interface. It's just following the OpenAI standard. Uh we will do payload logging.
35:13 Governance and observability
So we're going to track all incoming requests and responses for you. So this is the exact same thing as tracing. We just basically log all the traces in a delta table for you. Same as the ML flow. So if you have your ML flow hooked up, it's going to write to the same table through AI gateway. Um, we have usage tracking and a system table so that admins can then look at who's calling each endpoint so they can start to do like cost attribution and things like that.
Um, or abuse detection. We add rate limiting to it. Uh, and we just added fallbacks recently. So, a lot of people have different Azure PTU regions and they want to be able to fall back from one to another. So, you can set that up with AI gateway. Uh, and then we're allowing out of the box guardrail support too, so that you can basically mandate certain guardrails on various endpoints that always run. So if you like never want it to have financial advice, etc.
So we basically see a lot of companies have built their own moderation services. So you can hook up your moderation service uh through the gateway and all the endpoints managed through the gateway. Uh, and then ML 3. 0, I tried to already show you that. I think the only thing I didn't show you is prompt registry. I personally am skeptical about prompt registry. I think the prompt is just part of the model and that you just need to version the model.
You don't need a prompt registry on the side as well. But I can be proven wrong. We'll see. Time will tell on this. Use it and prove me wrong or don't prove me right. Okay. Um, so how does AI gateway work? So I just built a quick dashboard that leverages all the data that you get from AI gateway. So it's not the gateway itself, but it's using all the underlying tables in it. So here you can see this is actually on you can see it's on our dog food workspace.
So here are all the endpoints that we have. So I can see hm someone is doing something with vector search ranking llama 8b uh on our dog food environment and like what the heck are they doing? They're using a lot of tokens like maybe we need to shut them down or maybe this is a strategic project and it's fine that they did that. Uh you can then see like single endpoint tracking. So now I looked at only my GPD40 endpoint that I put in here and what the heck who are these people and why are they calling my open my open AAI endpoint.
So then I can see like okay they did like a month ago so I'll forgive them. But you can start to see now who's calling your endpoint and do you need to lock down more permissions? Do you need to rate limit them? Uh is this okay usage or not? Here's an example of that payload logging where every incoming request and every outgoing response is logged. So you get the status code, the execution time, the incoming request, the outgoing response uh and also the requester in here is all tracked in a single table uh that you can then look at.
You can see you know you can do AB testing. So this is an AB test that was running on this endpoint. Uh and then this is like the table of all of it together yada yada and then you can start to do audits as well. So you can we have data classification. There's a whole uh talk on our data classification tool that we're releasing. So you can run data classification on this table and see if people are sending PII that they shouldn't be or not.
So then you know if you should be adding guardrails on certain endpoints in there. But this allows you to do that kind of audit um in there. Cool. So that was gateway and traces. Oh, we're going to make it. Okay. Last thing, serverless GPUs. So, a lot of what I showed you was kind of like managed offerings where it's like, oh, if you want to build like a quick and easy agent, use our like managed agent bricks to build it.
38:50 Serverless GPUs and conclusion
Uh, but a lot of people are like, I know how to build it. I'm just going to use lang chain, ling graph, stitch it together myself. Uh, or they want to fine-tune their own models. They don't want to use our fine-tuning API. They want to do it themselves in there. Or you're building, you know, image detection models. You're just doing BERT, uh, or you're using like forecasting these days. And so you just need access to GPUs and it's kind of hard to get access to those these days.
Uh so we're building a serverless GPU platform. Uh if you know what MLR is, it's kind of just like the more modern approach to MLR. Uh and so we're basically just giving these serverless GPUs. Um, it's again going to be an underwhelming demo because it works exactly like you thought it should where you go to serverless, you go to configuration, and you just switch from none to A10s and then soon H100's in there. So, it would say it's demo-wise not the most exciting, but is exciting because you didn't have to think much about it.
This is like basically what you want. You just want to be able to switch from CPUs to GPUs, easily use them the way that you've used everything in data bricks when you do custom coding. Um, and it's available to you just like that. Um, so we're pretty excited about this. It is currently in beta. Uh, and then H100's will be coming probably in the fallish uh, early winter time zone. So, you'll be able to get access to that.
So, you'll be able to do multi-node uh, training and things on data bricks. And you can even probably load like you'll there is something in here where we have our whole batch inference with AI query. So you can use that. But if you have super custom models that aren't supported by AI query, you can then also schedule notebooks just like you did with CPU models and then run batch imprints from these notebooks as well because it can load a lot of these models into memory now for GPUs.
And so the whole thing with serless is it scales up and down based on your workloads. This is sort of like a costefficient way to use GPUs. Uh yeah. So, right now it'll be A10s and then soon to be H100's in there. So, kind of a a powerful yet underwhelming demo. Incredible feature. Doesn't demo well other than it works, which is great. Um, okay. So, that was basically the gist of it. I'm in negative time, but so these are all the components that we just went through.
Uh, and like the main reason that it's able to work, there's kind of like our stance on things on the Mosaici platform is that we're trying to be model agnostic. So, you can use any model you want with us. You can use any framework you want on us. We will of course create some managed offerings that try to make some of this stuff as easy as possible. Uh, but that's sort of like the general thing like on serverless GPUs, use whatever you want uh in there.
Uh, we're centrally governed. So, we have Unity catalog so you can govern all your assets. That's also why we built AI gateway so they can centrally manage all your different APIs. Uh and then again we have this dream of composability. We're trying to make all these component systems so you can specialize and modularize like just like micro like we're trying to just be we're basically probably just going to end up being a microservices like platform basically.
So you're building all these AI and data microservices and you have to be able to observe them all govern them all etc. And so everything needs to be composable together. Um and then we do have an incredible research team that's coming up with new techniques to try to help you with your enterprise tasks. So how can we help make things domain specific? How can we make them cheaper for you? how can we make them production ready?
Um so that's where we have techniques like agent learning coming out tow uh etc in there. Um with that here if you want to take a quick picture are all the sessions from my product team that are at the summit. I think most of them have happened already but like for example the tow talk is tomorrow uh if you want to go that and MLFlow 3. 0 um so you can take a screenshot watch these YouTube videos later um etc. With that I'll be outside if you have questions but thank you all for coming and hope you enjoy your summit.
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.