Skip to main content

Transforming Energy: Well Planning and Drilling Optimization

Summary

  • Automate well planning workflows: Databricks Data and AI platform streamlines traditionally manual, fragmented well-planning processes enabling faster decisions and operational collaboration.
  • Data-driven decision support: Combine advanced analytics and AI-driven insights to optimize well planning, improve drilling outcomes, and reduce operational delays.
  • Integrated reference architecture: Implement comprehensive platform architecture connecting data ingestion, analytics, and AI to automate and optimize energy industry workflows.

Transforming Energy: Well Planning and Drilling Optimization

Watch: Transforming Energy: Well Planning and Drilling Optimization
Traditionally, well-planning has relied on manual, fragmented workflows that slow down decisions and create operational silos. In this video, we’ll show how Databricks combines data, advanced analytics, and AI-driven insights to automate and streamline these processes.

Chapters

FAQs

What challenges does traditional well planning face?

Traditional well planning relies on manual, fragmented workflows that slow decision-making and create operational silos, increasing costs and reducing operational efficiency.

How does Databricks streamline well planning?

The platform combines data integration, advanced analytics, and AI capabilities to automate manual processes, improving collaboration, accelerating decisions, and optimizing drilling outcomes.

What is included in the reference architecture for well planning?

The comprehensive architecture integrates data collection from wells, processing pipelines, analytics, and AI models to provide end-to-end well planning and optimization capabilities.

What business outcomes result from well planning optimization?

Implementing these solutions reduces operational silos, accelerates decision-making, improves drilling performance, and enables energy companies to operate more efficiently.

Full transcript

0:00 Introduction and agenda

Welcome to today's session on transforming energy, well planning and drilling optimization. Um I'm excited to be here with you uh to really talk through how data bricks is um revolutionizing the well planning process. I'm a solution architect here at Data Bricks. uh Sergey Kitzky uh will also be joining me today where I'll be exploring how traditional well planning challenges can be transformed through our comprehensive data intelligence platform.
Let me walk through our agenda for the next hour. Uh we'll start off by examining the challenges of traditional well planning, understanding some of the pain points that plague this space uh and then we'll dive into a datadriven solution with data bricks showcasing our platform uh capabilities and solving some of these challenges. Finally, we'll see these solution in action as Sergey walks through a comprehensive demo uh on well planning and drilling optimization.
We'll wrap up with a Q&A session. Uh but but feel free to add questions to the chat. We have who's another solution architect on our team there ready to help out and answer answer questions as they they pop up. U before we get started, I'd love to better introduce ourselves. Uh as I mentioned, my name is is. Uh I bring 7 years of oil and gas industry experience to data bricks. Uh I have expertise in in data science and data engineering.
I worked at several upstream companies including EOG as well as Apache where I got firsthand knowledge to um to some of these issues that we'll be discussing today. My most recent stop was at Meta where I was a data scientist and a data engineer. Um and I joined Data Bricks uh in December of 2024. I'm based in, Texas. I'll turn it over to introduce himself as well. >> Yeah. Hi everybody. Good morning, good afternoon.
Thank you everyone for joining us today and uh few words about me. Sergey Kleski, solution architect and datab bricks. Um I have like extensive extensive uh software engineering background for 15 years in different uh uh engineering companies uh technical consultant right um my industry that I worked on mostly for five for last five years that was all in gas energy uh also media entertainment uh I certified um Azure DCP and datab bricks uh architect and also I did some contribution to the uh OS with your data platform.
Thank you everyone. Over to you. >> Awesome. Cool. Thanks. Um so let's dive into the topic for today. Um the energy industry faces lots of significant challenges in well planning that have massive downstream impacts. Um this is a business critical issue that affects everything from safety to profitability that we'll be diving into today. The subtitle here really says it all. We need to understand the critical link between accurate estimations and operational success.

2:34 Traditional planning challenges

To start off, uh, this conversation will really be sort of centered around the rig schedule. And so I I want to introduce that rig schedule. Um, the rig schedule is truly the lifeblood of oil and gas operations. Uh, think of it as the master orchestration document that determines when and where every rig is assigned across all wells in an operation. This document is critical for several reasons. First, accurate scheduling, you know, reduces non-productive time.
When rigs sit idle, companies lose money at rates of thousands of dollars per day. Uh second, it really optimizes everything else within the operation. Um they impact, you know, the rig schedule impacts project timelines, crew assignments, equipment allocation, and supply chain logistics. When schedules are wrong, the domino effect uh is is immediate and really expansive. Uh I want to walk through one of those those sort of domino effects I mentioned. uh when when things go wrong, it all starts really in this case with inaccurate time estimations.
Um a drilling engineer working with limited or fragmented data provides a flawed duration projection. Uh you know, this isn't due to incompetence. It's it's often because they're working with incomplete information or using outdated estimation methods uh which which we'll discuss more today. This bad projection leads to flawed resource allocation where rig scheduler uh creates an unrealistic timeline based on that bad estimate.
Now we have equipment conflicts because crews and resources were were scheduled based on incorrect assumptions. This in itself causes MPT which which escalates exponentially. Um this MPT and idle rigs can cascade into budget overruns that can blow past constraints leading to missed financial targets and threatened milestones. Um the result of all this really is is investor confidence suffers impacting stock price and ultimately market cap.
Uh this isn't theoretical, this is happening across the industry. Um and what we'll dive into more today. Uh and while obviously the rig schedule has um has implications at the drilling site itself, uh it it doesn't stop there. Poor rig scheduling creates organizationalwide impact and touches every department. Safety becomes compromised with incre in increased risk exposure and incident potential. Financial bills with budget overruns, cash flow issues and AF accuracy problems.
Operations face idle crew times costing 50,000 plus dollars per day, equipment conflicts and resource waste. Um supply chain struggles with material delivery misalignment and inventory imbalances. Stakeholders, like we already talked about, experience investor confidence erosion and partner relationship strain. and even environmental and regulatory compliance suffer with extended emissions periods and permit timeline violations.
This really isn't just a drilling problem. It's an enterprisewide problem that requires an enterprise solution. Part of what makes the rig schedule so complex is really the sheer number of variables that feed into the decision-making process. Um, we're not just talking about the duration and cost estimations which we'll we'll be discussing today and are highlighted in red. Uh those are critical. Uh but we also need you know production estimates, well information, lease agreements, resource constraints.
Um there's external inputs such as oil price outlook, scheduled maintenance windows with vendors. Um you know that add a different level of complexity. Each of these inputs can change and when they do it can really ripple through the entire schedule. Uh this challenge isn't just about having data, it's about having it integrated, current and accessible for decision-making. So as we continue to dive into this use case, I want to really introduce two key players in this process that we'll be focusing on today.
Um first is the drilling engineer. Uh their responsibilities include well trajectory well trajectory design, drilling parameter optimization, time and cost estimation, risk assessment and formation evaluation. Um in regards to this particular sort of use case, one drilling one drilling engineer told us that time is money. They're constantly looking on ways to improve uh those the duration or days on location uh for the different wells they're drilling.
Uh then we have a race scheduler whose responsibilities include resource allocation, fleet optimization, project timeline management, crew coordination and equipment scheduling. Uh their perspective on this scenario is that my schedules are only as good as the estimates I receive. This highlights the critical dependency between these two roles. The rig scheduler can be incredibly skilled, but if they're working with inaccurate estimates from the drilling engineer, the entire operation can suffer.
So, as we get more context on this scenario, uh let's look at how this process traditionally works uh out there today and why at least these inevitable outcomes we discussed. In the traditional method uh we have multiple disperate data sources vendor cost data drilling operations reporting coming from source source operational systems geological data that's all living living in these separate source uh databases and systems.
The result is that drilling engineers spend days or weeks reconciling numbers between systems often in in curated data systems like Excel. Without a single source of truth, drilling engineers are forced to provide budget and time estimations based on best guesses or or templated methodology. They're doing their best with really the fragmented information that they have available. Meanwhile, the riguler is continuously updating the rig schedule to reflect these changes made to the different estimates and other source inputs that we we showed on that previous slide.
This creates constant thrash in the organization as schedules shift and teams scramble to adapt. So what changes with the lakehouse? Let's show the transformation that's that's possible with a lakehouse enabled approach leading to these optimal outcomes. Instead of fragmented data, all data sources are being brought into a single source of truth, the enterprise lakehouse. This eliminates those days and weeks spent reconciling numbers between systems.
And for drilling drilling engineers, this means ease of use and confidence in data. We don't stop there. As we see today, we're going to have machine learning coupled with custom application development, which results in more accurate estimations developed in a more efficient manner. The impact on the rig schedule is dramatic. With more accurate estimations, there's less need to update schedules. This results in less thrash among operational teams and success in dependent workflows.
This isn't just theoretical improvement. It's a fundamental transformation for how well planning works, enabled by the modern data architecture and AI capabilities. So now that we better understand the problem, I'd like to dig into um a solution that we've developed leveraging data bricks intelligence platform. Sergey is going to be walking through a live demo of this momentarily. But before we get to that, I'd like to introduce a few concepts, especially some of the newer technologies that we've recently announced um at Summit and in the the previous months.

9:40 Data-driven platform overview

I want to start with light flow which is our unified data engineering platform previously called DT in the um in the at the traditional model data engineering is complex fragmented and timeconuming lakeflow changes this by providing a single integrated platform for all of your data engineering needs flow handles the heavy lifting of data integration allowing your teams to focus on analysis and decision-m rather than data plumbing.
This is the foundation for what makes everything downstream possible. Late flow provides three key pillars for transfer for that transform data engineering. The first is LakeFlow connect uh which seamlessly brings in data from all of your source systems whether it's streaming telemetry data, batch files or external APIs. We have connectors built into major database systems and applications such as SQL Server, Oracle, Salesforce, etc. with more connections coming um in the coming months.
The next big pillar is is declarative pipelines. Uh we use declarative pipelines to uh clean, enrich and prepare data for analysis and work it through the medallion architecture that we've we've uh we're leveraging here at data bricks which is the bronze, silver and gold. Uh we'll get more of that here here momentarily. Uh this light flow the declarative pipelines component is really what we'll be focused on today. Uh the final component of light flow is jobs.
Uh jobs is our orchestration platform that manages workflows and dependencies um logic as well. Uh and so it's our way of orchestrating the these com these complex data data engineering pipelines. What makes it powerful is that these aren't separate tools that you need to integrate with each other. You're not using a separate orchestrator, a separate pipeline tool, a separate connection tool. They're all a unified system that handles your entire data entire data pipeline from source to insight.
So going back to LakeFlow declarative pipelines or LDP as you'll hear it referenced um is really built on this declarative framework meaning you declare what transformations you need and LDP determines and automates how to execute. Uh we have a new multifile editor that was recently released and we're uh taking the developer experience to the next level. It's now easier than ever to structure transformation logic, configure pipelines, iterate quickly throughout the development life cycle.
Uh, and the edi the editor feature uh really really highlights that. uh late flow declarative pipelines makes it really easy to if you can write SQL statements, if you can use some basic syntax to sort of declare um upstream and downstream tables, you can really start to build out these complex uh DAGs that make make your uh your data engineering workflows seamless. So once your data is properly stored into the lakehouse in that in that bronze, silver and gold architecture, um we we want to really talk about what what can we do to start uh giving insight to the drilling engineer.
And so we'll spend a little time today talking about AutoML. Uh data bricks AutoMLs is not a new solution, but it's one that our customers are finding tons of value in still. Um it's what we call a glass box solution. It empowers data teams without taking away control. Uh this is really crucial in energy applications where understanding model behavior is as important as model accuracy. Uh here's what really makes it powerful.
You get a UI and an API to start experiments very quickly with autocreated ML flow experiments that track models and metrics. The system performs autoML training using multiple algorithms automatically generating reproducible trial notebooks with source code for every model. And that's really the key differentiator compared to other blackbox sort of automated ML approaches. AutoML is not a black box. It's a glass box.
Uh you get generated notebooks with feature engineering, data exploration and model training code. This means that you can understand and debug data quality uh pre-processing decisions and you can easily update business logic in your model training uh notebooks itself. Uh this allows you to easily create you know highv value models that you can easily deploy uh via model registry and iterate further. Those first two technologies have been around but these next two are are where we're starting to discuss some of our newest features to the lakehouse.
I want to start talk about lakebased today. Our solution for applications that need transactional capabilities alongside analytical power. Traditional architectures force you to choose between analytical performance and transactional consistencies. But Lakebase really eliminates this trade-off. Latebase provides lakehouse integration with enterprise uh readiness. It's a fully managed Postgress system with separation of storage and compute providing modern development experience built for AI.
Um this this is really a spin-off of uh we recently acquired Neon uh which was a Postgress uh provider that really mastered this separation of storage and compute. And so Lakebas is our integration of that technology within our lakehouse. So what this means is that you can now build responsive interactive applications that operate on the same data as your analytical workflows. No more data silos, no more complex ETL pipelines to move data back and forth between your OOLTP and OLAP instance uh which result in much more consistent and robust uh applications.
So you know how can you potentially use lakebase and how how we're using it in this demo today. Uh the first is this this section on the left hand side uh which is what we're calling reverse ETL. So the idea behind this use case for lakebase is that you have data that you've you know massage put models on top of it's highly aggregated very sort of fit for purpose that's residing in your data lakehouse um and you want to be able to serve that up to an application through OOLTP what reverse ETL does is it allows you to automatically sync that data from your uh your data lakehouse into your OLTP postgress instance which is on lake base.
This makes it really easy to serve up that highly valued um uh data uh directly within your application. The next use case is on the right hand side which is around storing application state. And so the idea here is that you can now start to build out your entire application uh on top of lakebase. Uh you can store different user states, inputs, etc. You'll see that here today as well. And then finally, the last sort of feature of Lakebase, which is in private preview today, is that same sync back into your lakehouse.
And so maybe you're storing application states or in our case, we're going to we're actually going to um be be writing our um AF estimates or our days on location estimates to our OLTP instance. And we can easily sync that data back to the warehouse for further analytical use such as genie rooms, um downstream modeling, etc. Once again, that's in private preview. Uh but coming soon, the final big chunk of what we'll be talking about is around the agent bricks multi- aent supervisor.
Um just as an introductory to agent bricks, um agent bricks enables several powerful use cases for energy companies by building out robust agentic modules or bricks is what we call them. Uh right now we have four available. um information extraction which turns unstructured data into structured insights through summarization, classification, key information extraction. You know, you can think about processing drilling reports, PDFs, things of that nature and getting them into a delta table.
Custom LLM, which specializes in in development of LLM endpoints to your domain specific guidelines using your unstructured data. This really means building AI that understands energy terminology, regulatory requirements, and operational context. Our knowledge assistant brick turns your documentation into an AI expert within a few clicks. Um, and then finally, the one that we'll really be highlighting today is our multi- aent supervisor.
And so this brick allows uh really creates an endpoint for you to leverage that uh you know allows you to design AI systems that bring together genie other agents that are seen on the screen and various AI tools that can enable complex workflows um that can reason across multiple data sources and different agentic bricks that you've seen here today. So now that we've sort of seen some of these capabilities or discussed them at a high level, um I I want to take a minute to sort of walk through the architecture what Sergey is going to show here momentarily.
So here here on the screen is is the architecture that you'll become readily familiar with uh here once Sergey opens up and starts showing the demo. Uh but I want to walk through some of the key points to really think about today. Uh first is that that bullet point one which is around sort of ingesting and transforming data through lake flow. Uh in this use case we we've you know taken several source systems uh ingested data into to our our lakehouse architecture of bronze, silver and gold tables.

18:42 Technical reference architecture

For those that don't know, bronze is sort of a raw our raw file staging area and then silver and gold are are our more um refined data sets uh uh up until gold which is sort of our fitforpurpose use case. And so we're using light flow to uh you know ingest this data, transform it and put it throughout that medallion architecture. Uh we haven't touched on this much today but just for clarity um we're we're still sort of you leveraging some of the key fundamental data bricks capabilities which are um obviously storing data in open data f open uh data formats such as Delta Lake and iceberg uh under the hood of LDP we're still using Apache Spark and Photon as the um you know the engine that does these transformations and then ultimately all this data is ending up being tagged by Unity catalog um where all the governance and security and lineage tracking is taking place.
But regardless, we've used LDP in this case to get this data into our our uh Medallion architecture. And then from there, we can start to do some really cool things and build on top of this. Uh bullet point two is where we're actually pulling in data around cost and uh phase data, time estimation data uh to build out some different models that our drilling engineers will use within the application. Um, you know, we built pretty simple models today, but these could be as complex as you want.
We we leveraged AutoML, which we talked about was that glass box solution that created some model endpoints which will then be consumed with our data bricks app uh in the drilling est estimates modeling component. Um, the next sort of box is around this the lakebased OLTP postgress instance. That's that's going to be that lakebased concept we talked about. Uh that first bullet point number three is our reverse ETL um framework where we have gold data.
We have some highly aggregated data sets that have has been ran through our medallion architecture and we want to serve that up to our um to our application. And so we use our automatic lakebased sync sync tables um to do reverse ETL on that data. It it it syncs that data directly from the lakehouse into lake base which then can then be consumed within our offset wells analysis. Um once you know the bullet number four is around sort of that um vanilla ETL or or being able to build out application state on top of lakebase.
Um what we're doing with that use case is we're actually you'll see um Sergey is going to uh be able to actually write these estimates that he's coming up with based on our models directly back to our OLTP instance. Um and then we can automatically sync that back into our our lakehouse or further downstream analytics. Once again, that bullet point number four is the component that's in private preview. Uh, but still will be really good to show and excited for that use case.
The final sort of new technology to pay attention to is that multi- aent supervisor as we mentioned and a lot of our customers are seeing uh a really really big traction with our our our genie uh AIB genie uh uh technology which is our our natural language sort of text to SQL engine that allows users to interact and ask questions in uh in natural language and get results back. Um, in our case, we developed out a few genie rooms.
We have an NPT genie room. We have a drilling cost genie room. Um, and so our multi- aent supervisor actually sits on top of these different genies. Um, provides an endpoint for our application to interact with. And so when we ask it questions, it's going through and it's figuring out where exactly it needs to uh route those questions, the logic needed to is this a cost or a uh an MPT question and allows us to sort of make our much more robust and sort of chain them together.
So um you know Sergey's about I'm turning this over to now. uh he's going to work walk through all all this uh all this technology but uh yeah definitely keep keep these big five pillars in mind as you see the solution uh Sergey with that I will turn it over to you okay let me know if you see my screen and hear me well >> yep we see you >> awesome uh thank you for uh setting the use case an overview of related data brick services.

23:13 Application demo

Uh my role for the second part of the session is to showcase the datab brick services capabilities uh and how they incorporate that in a web application. Uh so let's move on and I use the following scenario. I'm a drilling engineer who recently joined the team. I don't have much information on the how the data is organized in the lakehouse. um what the schemas and table structure is and so forth. So my manager gave me access to the application and um which I need to discover and start working on the my first uh drill plan.
So let's take a look at the um what the components the application consist of. So I see the sidebar or form with the inputs uh tabs uh on the main page of the application. And I see the map view right and I I also see the AI assistant in the uh bottom right corner here. So and first as I mentioned I don't um have many details on the structure of this data. So I would like to start my journey by challenging the UI assistant to get some uh information uh on this right and I have couple of questions.
For example my first question is about the um unique u wells on the unique production information. So I'm going to ask the question which I already prepared. So uh while the assistant thinking I want to share my expectation for the AI assistant. Uh okay we are this is the real time demo. So and we work on the uh demo environment. Let me show you maybe the backup of the uh of the question. So I as the question about wells for each unique production information and in general my expectation on the AI assistant that uh the AI knows well the data structure its sources and how to manage the user request and uh respond correctly.
Right? Let's uh let's get back to the previous step and uh try once again on the live demo and ask the another question uh which is the uh what well involve cam had the highest NPT cost. So again uh as you can see I used English instead of SQL or Python code. So um this is the user interface that the um application provides as the end users. So let's wait the uh answer from AI again the real uh okay uh it's a demo so we have the well uh name and also we have the NPT estimated cost.
So it means that I used English not SQL not Python. So it seems to be working and um let's start work on my first drill planning. So uh first of all I'm going to start with the offset analysis. I'm going to use the uh map view on the main page. I also have the target formation um select box here and I can navigate through the all the options see the location of the wells on the map. Right. Get the data uh zoom in or zoom out.
Kind of navigate through the map. I also want to see some historical data or at least data from the um 10 last wells created right is the uh for target formation like bonspring. I have the ratio between ds and cumulative days. I see kind of dashboard boring right but I used to use the external tools uh like PowerBI or visualization tools but now everything incorporated in one place in the application which is awesome I see the job cost um again maybe some additional filtering capabilities will be added later for the application but it it's useful for me right so uh also uh I I'm going to kind of have some estimation as as far as I know there uh machine learning models under the hood.
So I can uh make the adjustment of the inputs and see the predictions uh the predictions updated for each uh cost um phase right and also uh I have total well cost um and also I'm going to have estimations from the machine learning model for time estimation. Let me change geological syntax for example, right? The prediction updated for each subface and I also have the total days on location. Right? So um um I done with the offset analysis um review the dashboards got uh my prediction from machine learning models.
Right? It's time to save um my estimations for maybe get back to the estimations tomorrow or in one week or even share the estimations as my colleagues did right I'll uh have to put the API number which is required let me use like this one so I'm going to work uh with let's use this target information and done I will uncheck this uh select box which mean that uh if I uh check this uh set box the theme agent like intelligent theme agent will review my inputs and estimations regarding the outliers anomalies so and we'll put the uh stamp review stamp right it's just the um requires my attention this is some anomalies here here everything looks good right is I will save uh without it so just to see my record here and also I will do it once again because we're not required the API number is unique our uh for the application for the sake of demo right and we will save it but we will not wait because it can uh take some time so we if we will have time we will get back to the uh screen and I will show you the step so it seems to be working right and um now let's go to the uh datab bricks user interface where um uh where I can show you um how the how the all the data bricks services and be easily created and uh which I used it for the application I show you a moment ago.
So uh what we did we asked the AI system some questions right we examined dashboards uh we used machine learning predictions we uh got the uh air fees total days on locations so uh first of all the application right so this is a web application uh which I demonstrated a moment ago so and I want to finish this topic uh and then we will uh focus on data ML and AI Okay. So, um let's let me show how to create the application.
You go to compute uh applications uh create app. So datab bricks apps is the fastest and most secure way to build data in AI application on the uh databicks data intelligence platform like uh personas like developers, data scientists or data engineers can create application using a popular Python framework such as dash flask radio. For our demo, we use streamlid and also uh they can choose from pre-built Python templates uh uh for their application like chatb data or LTP database.

30:47 Implementation and configuration

So datab bricks apps provide the serverless deployment and building governance which means that the um engineers doesn't require uh to build additional infrastructure the application run automatically provision in serverless compute allowing deployment with ease and of course production readiness. So um I will not create one more application for the demo. Let's uh me show the application that we uh used for the demo and I uh demonstrated a moment ago.
So let's get back. I will use energy uh well planner app. Uh this is the deployed application which has the uh running endpoint right. I use this endpoint as URL for my application and also it requires the uh source link. If we go uh to the source right, we see the this is the um workspace folder with Python code. That's it. So as soon as code uh uploaded to the uh workspace uh folder, we click deploy and datab bricks apps will um manage all of this uh stuff.
I mean infrastructure and uh um readiness of the application. So uh we got the application. Um now as mentioned data may come from many sources and even in different formats such as unstructured semistructured or structured formats or even in form of batches or uh stream right and our goal is to ingest the data improve its structure and quality and make it actionable. So uh we used lakeflow decorative pipeline tool which allowed us uh to instantly build um a data pipeline with bronze, silver and gold tables from just a few lines of code.
So let me show how the pipeline looks like. I go back here and here. So this is the visualization of pipeline and maybe let's go deeper. uh we use the code to manage the pipeline right to specify materialized view and also you can use the visual tool to manage the steps uh of the of the pipeline right to create streaming the uh table or materialized view. So the wonderful like features that uh the pipeline provides is the uh constraints and quality expectations and also we used as you can see like live that mean that we use the streaming uh uh view for is like streaming table which mean that new data come uh the downstream tables as well will be updated.
So and uh the data in the lakehouse right we ingested it it's cleaned aggregated but um isn't built for low latency app interactions right or transactional workload and let's see how easy uh we can sync gold layer data from our uh materialized views into fully managed uh posgress database. So to create the uh lake base we go to compute alltp database the feature uh in the preview. If you don't see the uh tab in the compute um uh page uh please go to the uh preview features from uh if you are workspace manager uh or admin you will be able to um um activate the feature right.
So LTP database uh create data instance couple of settings like name uh capacity unit um then uh high uh high high availability of the instance right but again I will not create the um database instance for the demo we also have created instance let me go to the instance and show you um couple of details what we have right the connection details for your application uh permissions management uh right and also you can make all the tables I mean posgress tables as the unity catalog tables which will be available for your um uh unity as a regular unity catalog tables or use um for your python pispark code or uh applications.
So um and also mentioned that uh reversing uh reverse ETL right um we have the database created um we can leverage the reverse ETL approach to sync data from lakehouse table to the posgress tables and also it was mentioned that lakebase uh combines the high performance posgress engine uh It uh has deep uh lakehouse integration and building data synchronization. So the fresh insights flow in uh flow into application without any extra uh infrastructure.
Right? So let me show how to create the uh reverse ETL pipeline in datab bricks. So I go to the um my unity catalog. For example, I want to use uh my goal table which is uh the data for example we used for our application from lake base I mean for uh for data in the view map for dashboard and right. So I have the summary gold for job right I click the table and then click create uh sync table. So here a couple of settings like uh posgress table name database instance uh primary key to do synchronization right and sync mode which is uh snapshot triggered or continuous and create again I won't create the uh lake base for the demo let's uh I mean sync uh sync um sync table right I already have the created gold uh table let me show you how it looks like.
So uh we have source table which is drill job summary gold. This is the unity catalog table and also we have pipeline ID which responsible to synchronize uh data from uh lake B lakehouse table to the lakebased table right I mean posgress and I have uh sync now button to synchronize data uh manually. So but again it depends on the sync mode which I showed a moment ago. All right. So again new data come here. We have data in posgress data ready to uh to consume from uh the application.
So to vis for visualization and so forth and also we used lake base to save uh the estimations as mentioned. Right. So let's get back and um we covered like data topics right and we have data in lakehouse and also in lakebase. Now let's talk about the machine learning models and uh as previously mentioned data bricks autom is the easiest way to train and serve machine learning models. This is a glassbox solution which empowers data teams without sacrificing uh the uh control.
So let me demonstrate the machine learning model creation in AutoML. So I will get back to the um datab bricks UI uh then goes to experiments. So uh as you can see AutoML supports the forecasting problems uh classification and regression. So if I go to the um regression for example right this is couple of settings which require autom requires from you just the uh experiment name so sorry uh let's scroll cluster predefined cluster right input as a training data set from un catalog tables prediction target based on the data set here and couple of advanced configuration like uh evaluation uh metrics and so forth.
So again we already have created uh um data mod uh machine learning models. So uh at least we have um predictions um models for uh job time and job cost. So um let me show you how the um uh how the models look like. Right? I can uh find my models in the uh Unity catalog. So I can go to the uh uh catalog and see a job face time model and drilling cost model. Later on I will I will say how we can get the models registered in uniquity catalog.
But I can open for example job phase time model here right uh this one uh comes with this uh model has two versions which one one of them already promoted to production and um let's go deeper and see what inside of the model right so it allows the inputs uh lineage traces but we interested in how in general the model uh was trained right if I go to the source run uh I can find the matrix evaluation matrix hyperparameters which used for the last uh run within experiment.
But if I get one step back right, I can see in general the whole picture how the model was trained, right? I see the uh target column. I see the evaluation metric and uh within the one experiment the um AutoML uh creates the uh explorational notebook which mentioned, right? If I go to the um expression notebook uh I will see the how uh autoML um kind of sees your data. It tries to get the statistics on data on the data set right.
It helps to better understand the problem and work on the algorithm for model uh training right and also uh model selection right as you can see here uh let me do this right within one experiment we have multiple runs for different uh algorithm and uh libraries used for uh for model training right and uh we can see that the last run that xg boost regressor uh shows the better performance of the model based on the evaluation score, right?
And if we wants to see how the um how the model trained within this run, right? Or we can uh bring some expertise or we are not satisfied with the run and we can we want to improve it, right? We can go to the notebook here or even here, right? You see like notebook for best model. you open and see the whole process, how the model train, how it manage the uh data set um some transformation of data right and um if I scroll down as soon as we satisfied with the model and we want to use the model uh for inference right first of all we need to register the model so and uh to register model we can do this programmatically or uh in UI click the button.
But the idea is if you want to have your machine learn model uh or output of the AutoML uh in Unity catalog, you need to register the model in your model registry. We used uh datab bricks u registry uh um to register the model not I mean this code right and for inference uh we have two options. We can use the model as a py funk right in our pispark code SQL or uh we can uh use the endpoint like uh for rest API in our case in our application uh we use the uh rest API to provide the inputs send the request and got the uh predicted cost or time uh get the predictions from the models.
So we have two separate endpoints for each model. Let me show you how to um get the um how to read how to uh sort the model. Right. I go to the um my Unity catalog, right? I have model. I use the job phase because my models registered and click surf model. So again I can do this programmatically and I can do this uh from UI. So even we can have multiple versions served to separate endpoints and we can manage uh let me show you quickly split the traffic.
So if you want to check the uh make some AB testing or performance testing right. So this is how it works how the um uh how the model serving process looks like right and also few words about the notebook which I showed before is the that we can use the notebook for um uh to deploy code not deploy model which means that if you have production environment we can use the notebook to train model right in on the uh production environment use production data rather and thinking how we can um move production data or get access to production data for training from dev environment.
So um this is for um uh autoML. So we considered the data pipeline management and used AutoML to train the models for predictions right which we used with data we used from the uh pipeline. Uh so last thing I wanted to demonstrate today is how easy AI assistant uh development is. So again I go to the uh agent here and uh as showed the support for um like use cases and for this demo we interested in the multi- aent supervisor.
I can click the um build. So couple of settings again just name uh description and I'm really encourage you the better description you provide the better performance of your agent and also we can create up to 10 different agents and tools which supervisor will manage right you can use uh as of now is a genius space uh or agent endpoint and you see MCP is coming soon so and couple of uh optional settings here like uh format or tone is like system uh instructions for the multi- aent supervisor.
Again, we already have created supervisor. Uh this name is a uh drilling job supervisor. And as far as you can see, we uh provided the description for supervisor which the drilling uh expert like in oil and gas. It manages three uh genie agents which is the uh cost genie agent, NPT genie agent and time genie agent and all of them has the instructions right they specific uh roles within uh this um agentic system right and if I go deeper for example for this genius space I can show you quickly that we have um first of all data right we use unity catalog tables to provide the data which this particular genius uh space manages. uh please as the best practice do not uh kind of add all your tables all the tables you have and unity catalog to the one genius space uh this is kind of one of the best practices for genius spaces right and we have instructions uh it's like you are drilling engineer and couple of uh some some kind of guid guidance for the agent how to manage the users request and where to find data if there are some intricacies within data structure.
So uh again um three gen spaces, three agents with uh separate instructions with separate roles and I also can even I have questions and I can play with the uh with the agent right the cog genie agent in the playground in datab bricks UI right or even I can go back and ask the same question let me show you which I used for example like this put it here and ask the uh multi- agent supervisor to provide me the answer on the uh on my question.
Right? So I can see here the how it thinks, right? I see the trace. Uh let me let me ask the another question So and even I if I'm not satisfied with the uh quality of the response you see I can improve the quality. So uh last thing that I want to show you how we can see the trace here but you can ask how we can trace the request and see in general the logs of the request to the agent if our users I mean application user will send the request to multient supervisor.
This is the great question and uh we have the MLflow experiment here. I will click on the uh link right and here the all requests are logged um uh in datab bricks right we have uh uh requests we have response we have execution time and if I click any of them right I can see the initial request from the user I have the uh details and see the breakdown and flow of the query right for example here the uh agent tries tries to understand the context then uh try to delegate the query to the agent and even you can see what exactly SQL uh the genie uh agent uh invoked right to get the data and provide back to the as the answer to the uh to the end user right and again we deploy the multi- aent as the endpoint and we use the endpoint as the for rest API from the uh from the application from the UI So again we covered lake base saved in the lake base we used the university to get data from lakehouse to the lake base for the application right for operational data we used machine learning trained using autoML and uh we use the bootstamp like like ask AI to review our inputs and put our stamp here which is this one.
So, I'm done. Um, thank you for your attention. Uh, over to you.

Learn more about the Databricks Data and AI platform.

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