[
  {
    "startMs": 12500,
    "text": "I'm gonna talk to you about the data team. Uh, so Fivetran serves data teams, Fivetran and dbt Labs. Uh, if you're in the data world, you probably heard earlier this year that, uh, these two companies merged. A match made in heaven. Uh, now we can move your data and transform it. Uh, and we do it for thousands of companies. We've been doing it for over ten years. Uh, this is almost the only job I've ever had. It's the only job after I was a scientist.  Um, so we've been doing this for a while. Um, but this, like many, uh, worlds, is in an era of rapid"
  },
  {
    "startMs": 42320,
    "text": "change. And it's an era of rapid change for us as vendors, but it is also, uh, a era of rapid change for engineers who work with data in any way and for data teams in particular. Uh, AI agents are really good at writing SQL queries and making charts, and a lot of the activities of the data team are things that AIs, uh, can do.  But there is good news, which is that data teams have a new job, which is to connect that AI to context."
  },
  {
    "startMs": 72280,
    "text": "Um, so their old job was business intelligence, but business intelligence is dead. Uh, we have artifacts now instead of dashboards. Don't call them dashboards. They're artifacts.  Uh, and, um, but this is not just a vacuous marketing speak. Uh, something really has changed. Um, it's, uh, a lot of the dashboard work that used to be done by humans really can and should be done by AIs now, and we should probably have more, uh, dashboards that are shorter-lived, uh, because they"
  },
  {
    "startMs": 102280,
    "text": "are so fast to make, uh, now. But, um, those dashboards need to give correct answers. And not only do we need to build dashboards, but we want to connect autonomous AI agents to, um, to data. Uh, and those autonomous AI agents have questions as well that they need data-grounded answers to. And so we have to ask, how do we make this possible? How do we make it so that your head of sales, uh, when he goes into, uh, their AI assistant,"
  },
  {
    "startMs": 132300,
    "text": "Claude or ChatGPT or, uh, Slack and asks, uh, \"Give me your three best ideas for improving pipeline conversion.\" Uh, people love asking very open-ended questions of AI agents. And actually, that's a good pattern. That's a practice you want to encourage.  Um, how do we make sure that it will actually give real, uh, high-quality answers to these kinds of questions? Well, uh, in the last six months, a pattern has started to emerge of how to do this well.  Uh, and we've seen it in a bunch of"
  },
  {
    "startMs": 162160,
    "text": "different tech-forward companies. So here are some examples. Uh, uh, Ramp, a company a lot of you probably know. They make corporate credit cards and tools connected to that. Uh, they have been out ahead on this area for a while. They started doing this, uh, last year. Um, what they did is they made an agentic data analyst that is connected to their data in-- which they, uh,  they model with dbt, uh, and, uh, they store in Snowflake. Um, they made a agentic data analyst that connects to that data."
  },
  {
    "startMs": 192560,
    "text": "Um, Stripe, uh, has done something similar. People like to give their analysts fun names. They call it Kai, uh, and it's their knowledge AI agent. You know, I just realized that Kai is an acronym, uh, five seconds ago, I put that together. Um,  so, uh, Kai, similar to Ramp, it connects to their data in Stripe's data platform. Uh, DoorDash has one they call Vera, uh, which again, connects to modeled data. Uh, DoorDash is actually a big Fivetran customer, Fivetran and dbt."
  },
  {
    "startMs": 222900,
    "text": "Uh, they replicate their data, they model it, and then they connect AI to that modeled data. Um, and it's not just, uh, startups. The AI, AI labs are doing the same thing. Um, so, uh, OpenAI and Anthropic, both longtime Fivetran customers, uh, since they set up their first data stack. Uh, they have both built in-house data agents, uh, that connect to their data platforms. Uh, and, uh, what all of these... And they've written about it on their blog, and I encourage you to go read about it"
  },
  {
    "startMs": 253140,
    "text": "as a way to learn about best practices. Um, what all of these have in common is that they are connecting their AIs to the same data stack that they built for serving business intelligence. So the same data stack that has been serving humans for years at these companies, they are using as the source of truth for AI agents who have questions about data. It looks kind of like this. Um, AI is, from this point of view, a new consumer of the data stack. You have all of your business"
  },
  {
    "startMs": 283080,
    "text": "systems. You replicate the data into a data warehouse or data lake, and you used to connect your business intelligence tools to that data warehouse. You still do for a little while longer. Uh, and, uh, now you connect your AI agents to that same data stack. And this turns out to work extremely well. One of the funny things about AIs is they are so anthropomorphic. Uh, they act a lot like people. And so the very same things that make data, uh, work well for people,"
  },
  {
    "startMs": 313080,
    "text": "make data work well for AIs. You have to take the data from all the sys- the business systems. Um, you want to put it in one database so that you can do joins across systems. Uh, you want to model that data. You want to model that data in a way that is specific to your business. And modeling is fundamentally an exercise of simplification. You're presenting a simplified view of what is probably some very messy and complicated data that lives in the systems of record. So all of the investments that you've been making"
  },
  {
    "startMs": 343000,
    "text": "to organize your data estate for humans for years are the exact same ones that you want to build on for AIs. There are some new things you want to do. AIs can traverse domains that, uh, previously were difficult for people. Uh, the big one is unstructured data. You can actually do meaningful things with unstructured data with AI, um, because their ability to, uh, speed read is so extraordinary. Uh, that they can actually go and read like a thousand transcripts of calls with customers who meet certain characteristics and"
  },
  {
    "startMs": 372900,
    "text": "things like that. Um, so there's, there's some new things that you need to do, but there's a lot of existing patterns that work well, uh, that you should build on when you wanna connect AI to data. Now, what you should not do, and what none of these companies that I just mentioned are doing,  is, uh, the MCP web approach, where you connect your AI assistant via MCP connections to all of your different systems of record. This is a little counterintuitive. You"
  },
  {
    "startMs": 402840,
    "text": "might ask, \"If I wanna connect my AI agent to my Salesforce data, shouldn't I connect it to the Salesforce connector?\" That would seem... That sounds like a good idea. I agree. Uh, this does not work well. Uh, and the reason it does not work well, uh, think about a person.  If you told an analyst, \"I want you to answer a question about what's happening in our business, and I want you to do it by just logging into all these different systems and clicking around.\" They could do it. It would take them, like, a year,  and they would make a lot of mistakes. Uh, it's a very"
  },
  {
    "startMs": 432560,
    "text": "error-prone process. Uh, trying to answer questions about data through MCP tools is kind of like that. Um, you run into these problems. The data is very messy in these source systems. If you do not have a messy Salesforce, get the hell out of here. Uh, I am mad at you if you do not have a messy Salesforce.  We have an especially messy Salesforce, but I would not claim to be the champion because that is a contest which has a champion. Uh, so the data is very messy. The data in the data warehouse has been cleaned up and organized, uh,"
  },
  {
    "startMs": 462320,
    "text": "according to the rules of your business. That's why we have data warehouses. But it is not that way in the systems of record. Also, the query languages are terrible.  If you ask questions about data to an agent, and that agent is connected to these MCP servers, it's gonna have to run SOQL queries, which is, uh, Salesforce's dumb dialect of SQL. It's gonna have to run JQL queries, which is so dumb it's not even a dialect of SQL. Um, if you know JQL, I'm sorry. I know JQL 'cause I wrote our original Jira connector long ago. Um,"
  },
  {
    "startMs": 493000,
    "text": "a- or, y- you know, if you connect to the Slack MCP server, all you have is the search, uh, terms that you type in the Slack bar. That's your tool for searching through the data. Uh, imagine trying to answer a data question with those query languages. And you can't even do joins across sources, right? The data all lives in different systems. So even though it sounds like a good idea to use MCP to solve this problem of getting context for your AI agents, it's actually a terrible idea because it fails in practice. MCP tools are still useful. They're useful for taking action,"
  },
  {
    "startMs": 523520,
    "text": "uh, or for retrieving individual records, uh, that have just been updated. MCPs are federated, so they have no latency. Um, so they have a role to play in the system, but they are not the way that you should gather context about the world and your business for your AI agents. You should build it on your data stack, like all those companies I just mentioned do.  Uh, and this is how we do it at Fivetran. We've been doing it this way for a couple years. So this is a little diagram of how this actually looks at Fivetran. Um, we have several"
  },
  {
    "startMs": 553400,
    "text": "different, uh, clients that read the data. Um, we have Slack, actually. We have a data bot in Slack, like a lot of those companies I mentioned earlier. We have Claude connected directly, uh, so you can ask questions of Claude. I asked a question of Claude on the train on the way over here. Um, and, uh, I-- it's still working on it, and I don't know the answer yet.  Uh, and, and we-- you can connect autonomous agents to the same infrastructure. So at Fivetran, our, uh, autonomous support agent, uh,"
  },
  {
    "startMs": 583680,
    "text": "which will answer some of your questions. If you're a Fivetran user and you ask the right kind of question where the s- the agent, uh, can be highly confident that it knows, uh, the right answer, um, it will just go ahead and answer your question. Uh, and the way it does that is it connects to this very same data stack. The same data stack we originally built to serve BI now supports an autonomous support agent, and it works great. They all connect through an MCP server, uh, 'cause MCP is, at its bottom, a protocol that you just use for connecting external tools of any kind."
  },
  {
    "startMs": 613680,
    "text": "There's nothing good or bad about MCP, even though I just said, \"Don't rely on MCP servers,\" in the previous slide. It's not actually MCP that's the problem there. It's the, the tools. Uh, and they connect to our BigQuery data warehouse, um, which has inside of it a giant dbt model that has been gradually evolved over the last ten years. Uh, that, again, is the same one that supports our BI tools. Um, there are a couple of problems you have to find solutions to in order to, uh, bring in the unstructured domain"
  },
  {
    "startMs": 643700,
    "text": "and in order to give the agent a map of the database. You do not just wanna connect the agent, uh, to the database and then say, \"Go look around and see what you find.\" You will not get good answers. We have tried it.  Uh, you'll get better answers than you did six months ago 'cause they are getting better at that. But in general, that is not, uh, a good approach. You have to give it some kind of map of the database. So, uh, the way that we so- recommend that you solve this, there are a lot of, of vendors that will sell you tools to give you some kind of"
  },
  {
    "startMs": 673740,
    "text": "c- context catalog, uh, to put in front of your database. And I am here to tell you that you do not need any of them. Uh, it is a database. Metadata is a kind of data. Do you know where you could put that metadata about what's in your database? Also in your database. Uh, and this is our modest proposal for solving it. It has a website. It's a standard. It's the world's simplest standard. Uh,  kind of like it's AGENTS.md, but for databases. We suggest"
  },
  {
    "startMs": 704120,
    "text": "that a great way to solve this problem, the way that we solve this problem, is you make a special schema in your database called AGENTS, and then you put in it a table called Root, which literally has a column of Markdown blobs, uh, that describe the rest of the tables in, in the AGENTS schema. And the rest of the tables are gonna be user-dependent. I'm gonna show you a demo here where it looks like this. But the Fivetran production instance actually has a bunch of metadata from Looker in it. So the, the tables after the root table are Uh, are a representation"
  },
  {
    "startMs": 734160,
    "text": "of the Looker model because that's the best source of metadata at Fivetran right now. Um, and, uh, this, uh, this pattern works extremely well because agents and databases are just like this, perfect combination.  They have, uh, exactly the mirror image of each other's strengths and weaknesses. Um, so agents, uh, they are kinda crazy if you're used to deterministic software. They can interpret open-ended questions, which is not really a thing that any other kind of software can do. Um, they,"
  },
  {
    "startMs": 764220,
    "text": "they can actually exhibit some kind of comprehension of ideas,  uh, and they can explain answers back to you in plain language. Um, those are amazing attributes. However, they cannot remember literally anything.  They're like the guy in \"Memento\" who has to write notes for himself. I don't know if you ever saw that movie. If you haven't, great movie. Uh, uh, who has to write notes for him. It's kinda the one that made Christopher Nolan famous. Um, there's probably some Christopher Nolan fan here who's like, \"That is not the one. There was this other movie before it.\""
  },
  {
    "startMs": 795420,
    "text": "So, um, the, the agents can't remember anything, uh, and they are very nondeterministic. Um, databases are like the exact opposite. They only remember things. They can't do anything else. Uh, and so they represent this perfect marriage, uh, to agents. You can store the data about your business in there, and then you can also store in a bunch of little tables in a special schema, a map of the rest of the database that acts as a guide for that agent. Um, and you haven't even had to buy anything you didn't already have if you're a user of the"
  },
  {
    "startMs": 825440,
    "text": "modern data stack. Uh, so I'm gonna show you a little demo of... Oh, and one last thing about unstructured data, which I showed you in this previous slide. Um,"
  },
  {
    "startMs": 837440,
    "text": "uh, the unstructured domain, which is kinda new, uh, in the world of analytics. Usually, we didn't really bother with unstructured data if we're just building dashboards 'cause dashboards can't really do anything with unstructured data. But now you can. Agents can just read it. Uh, you need a way to make that unstructured data searchable. Uh, and another thing that you do not need to buy, uh, is a separate vector database, uh, because all of the major data platforms are now offering built-in vector indexes. Uh, and they also work great.  Uh,"
  },
  {
    "startMs": 867500,
    "text": "and it's really convenient to have everything in one database, a theme I will return to again and again. Um, even, even if there are other vector indexes that are slightly better, having it all in a single system where you can write hybrid queries, uh, is really helpful, as you will see.  So use the vector indexes of the database. Uh, so I'm gonna give you a little demo of how, uh, we can actually put this together. And, uh, the-- we need a, we need a use case. I'm not actually gonna show you"
  },
  {
    "startMs": 897100,
    "text": "Fivetran's internal data, which is al- very large, uh, and would take a long time to explain. I'd have to onboard you to the company first. Um, instead, I'm gonna give a demo of some data from F1. Um, hopefully, there's some F1 fans in the audience who can ask questions.  There we go. There's always a couple. Um, and an F1 data set is really nice because, uh, first of all, there's a great public, uh, data portal that has all of the F1 data. Uh, it's very detailed. It has even things like telemetry of where each car is at e-each moment in"
  },
  {
    "startMs": 927000,
    "text": "time. Um, so it's a size... It's like a meaty structured data set, uh, but then it also has an unstructured domain. So there's the, um, the rules, uh, of F1 and the glossary of all the terminology, um, which is on the F1 website, which we're also gonna ingest to the database. Uh, fun fact, you can put unstructured text in SQL databases, uh, unless you are in 1975 and you're using Oracle, uh, from 1975, um, you can put giant blobs of text in databases. They are great at that now. Sometimes people"
  },
  {
    "startMs": 957280,
    "text": "seem to think that they need to, like, anytime you have a file, a, a long string of text, you gotta put it over in S3 or something. Not so. Text columns work great. Um, so we're gonna put that unstructured data right in the same database. Um, and we also have the transcripts of the press conferences. Uh, so it's a nice meaty data set, um, but it's something everyone knows something about. Everyone knows what cars are and what races are.  Um, so our sources are there on the left. Uh, we, uh, we have the OpenF1 API, which has all the structured data."
  },
  {
    "startMs": 987760,
    "text": "Uh, we have the, uh, F1 website, uh, which has all of the unstructured domain and all the transcripts of all the post-match press conferences. Uh, and then we're gonna use Fivetran, uh, to, uh, write and run a couple of connectors that replicate all this data.  So I, and by I, I mean my friend Codex, uh, made, uh, two connectors using the Fivetran Connector SDK, which is a way to write the, the capture portion of a Fivetran connector that you can then run on the Fivetran platform."
  },
  {
    "startMs": 1018120,
    "text": "Um, it reflects all the lessons that we've learned over the years about how to make great connectors in a nice Python API. And, um, I recommend that you don't use it. I recommend that you just have your AI agent use it with our Connector SDK skill, and it will write you beautiful connectors to any data source you desire. Um, and that lands all the data in, uh, BigQuery. In this demo, I used BigQuery, uh, and a bunch of source tables, and then we used dbt, uh, to model that data. Uh, the data, it comes out of the API in a little bit of a funky format. APIs are often"
  },
  {
    "startMs": 1048100,
    "text": "kinda funky, and so we have to normalize, uh, the data, uh, some, uh, to make it easy for the agent to navigate and understand. And that's where we do our vectorization. Um, so we just use a regular dbt model in the data warehouse, uh, to incrementally, uh, vectorize the unstructured domain so that we can search it. Uh, and then we're gonna use, um, a Gemini agent, just 'cause it was convenient when I set this up, uh, to set it up in Google Cloud, but you could use anything. It could be your"
  },
  {
    "startMs": 1078100,
    "text": "own agent, it could be Claude, it could be ChatGPT. None of these components are really proprietary. This is really just a pattern of how you put these things together. And the system prompt of that agent just says, \"Go look at agents.root, and you'll find out everything else you need to know there.\" Um, so as the data in the database evolves, the agent is automatically gonna pick up those changes 'cause its, its system prompt is like this long. Uh, and then we're, we have a bunch of evals All agentic systems need evals. They're the equivalent of performance benchmarks. These are just questions that have known"
  },
  {
    "startMs": 1108048,
    "text": "correct answers that you use to make sure you don't break it  after you build it in the first place. Um, so a quick whirlwind tour of what these pieces look like. This is a little snippet of the connector. You know, it calls the APIs, it extracts the-- it, it interprets the responses, it sticks the rows into the destination. Um, this is an example of what a dbt model looks like. Um, if you are not a dbt user, dbt models are basically just SQL queries, um, with some little, uh, sort of, uh, pragmas"
  },
  {
    "startMs": 1138228,
    "text": "in, in, uh, Jinja blocks that tell it things like how to turn this into a data pipeline. Uh, and you can see that what we're basically saying here is, \"I want to, uh, vectorize, uh, the text of the, um...\" This is of the, uh, F1 glossary. Uh, I wanna vectorize it into embeddings, and then another part of the dbt model says, \"Please create a vector index so that I can search this thing.\" Uh, and then the evals look"
  },
  {
    "startMs": 1168168,
    "text": "like this. Uh, they're just a bunch of questions, uh, in a Python, uh, in a simple, uh, bit of Python code that runs in CI, uh, that, uh, have correct answers. I set it up as, like, a ten options, and then one of them is correct. There's multiple ways people do evals, um, but this works well for this demonstration. And then the agent is gonna write queries that look like this. Um, so, uh, the queries, this is a fun example of a query because we're, we're trying to find out, uh, what did people say about tire"
  },
  {
    "startMs": 1198028,
    "text": "problems in twenty twenty-five? And like a lot of queries, it's hybrid. It has both structured and unstructured elements. A lot of the questions that people ask and agents ask end up, they have got one predicate that's like a, a, a unstructured search looking for content about a topic, and that's what you see, uh, higher up there, um, in, uh, the VECTOR_SEARCH function, which is just the BigQuery function for doing, uh, vector search, and all of the major data platforms have this now. Uh, and, uh,"
  },
  {
    "startMs": 1228028,
    "text": "then at the bottom, it says, \"Okay, I want post, post-race transcripts, and I want them from twenty twenty-five.\" So that's a structured predicate, and that's a very common pattern. And one of the advantages of putting everything in one database, it's very easy to do stuff like this. This is what it looks like, uh, as tables. The schemas are, are reasonably large, so this is kind of a zoomed-in view of pieces of the schemas. But basically, you've got a source schema. That's what comes out of the connectors. You've got a normalized schema. That's what dbt produces. That's the one that has the, um,"
  },
  {
    "startMs": 1258468,
    "text": "vectorization and indexes on it. And then you have AGENTS schema, which is just three tables in this example. Uh, it's just tables, joins, and columns, which is basically just descriptions of what's in the tables. This is the normalized tables that get described. Uh, descriptions of what's in the columns, uh, and how to join these things together. If you tell the agent those three things, it will take you a long way. We're still experimenting with what is, like, the best amount of information to give the agent in order to make this work well. It's still kind of an open question,"
  },
  {
    "startMs": 1288688,
    "text": "but it doesn't take much.  Um, and I think I spent about five hours in total building this thing. Um, I, uh, spent about two hours building it without really looking at it, and then I gave the talk once, and then I went back and looked at the code, and I was like, \"Oh, man, this needs a little architecture.\" Uh, and I spent about another three hours cleaning it up. Uh, so let's, let's ask some questions of our friend, the data agent here. Uh, where's my cursor?"
  },
  {
    "startMs": 1321448,
    "text": "So this is what it looks like in Gemini. This is just, uh, Google, uh, Google Gemini's basic interface. Like I said, you could do this with any, uh... Whoops. Come here. This is my little F1 analyst agent. And"
  },
  {
    "startMs": 1341448,
    "text": "why?"
  },
  {
    "startMs": 1347588,
    "text": "It's disappeared."
  },
  {
    "startMs": 1350908,
    "text": "The curse of demos."
  },
  {
    "startMs": 1354328,
    "text": "Oh, I'm not on the Wi-Fi. That's why. Slight problem. Um, all right, we're gonna use my iPhone as a hotspot here."
  },
  {
    "startMs": 1371388,
    "text": "Is there conference Wi-Fi here? What is it? On the sign to your right. Right there. To your right. AI. Your iPhone. Oh, you know what? Uh, oh, it's right there. Okay, cool. I think, I think my phone might be getting the job done here. Yeah, yeah. For some reason, uh, BigQuery, uh, F1, uh, sorry, Gemini has been giving me error messages today, but it, it is working. So, uh, let's say, uh, who is most"
  },
  {
    "startMs": 1401448,
    "text": "improved driver this year? All right. Let's see what it's got. So you can see the thinking trace of this thing. Um, and the first thing it does, because this is what we told it to do, is it goes and looks at those 30 tables. Uh, it, it-- well, it looks at the, the three tables in AGENTS schema, and that tells us about-- tells it about the 30 tables in the normalized schema. And then it's thinking about how to interpret that. Uh, it does a little reconnaissance query to understand what's in the database. That's what that was, uh, which is a"
  },
  {
    "startMs": 1431028,
    "text": "common thing for it to do. It'll often do these little queries to kind of probe and find out what's in there. Um, and, uh, let's say it wants us to clarify the question. Uh, let's say it's race positions gained. All right."
  },
  {
    "startMs": 1449428,
    "text": "And it's thinking again, and it's gonna write probably a more complicated query this time."
  },
  {
    "startMs": 1461888,
    "text": "And Uh, there's our longer query. Lots of joins in there. These look a lot like the queries that human analysts write. Um, that's what happens when you have a big schema. Uh, and let's see."
  },
  {
    "startMs": 1483552,
    "text": "There we go. Uh, so the most improved driver by this metric is Lance Stroll. I'm not an F1 nerd, so I don't actually know a lot about F1. I chose this 'cause it's such a good data set. Like the worst driver. Huh? He's like the worst driver. Is he?"
  },
  {
    "startMs": 1507312,
    "text": "But, but most improved, right? Like that often is the worst. It's like your fastest-growing product, right? Is always kind of a questionable endorsement, right?  Uh, and, uh, that poor guy has gone way down. Um, and I've got zillions more examples of questions here I asked recently. Uh, so, you know, I asked it, like, uh, \"What are the toughest corners this season?\" And it'll go, and it'll look at the actual crash data and the press conference"
  },
  {
    "startMs": 1536912,
    "text": "transcripts and say, \"Which are the hardest corners?\" Um, and, uh, I asked it who the handsomest F1 driver was. Very important question. Uh, at first it refused to answer, which I think is AI safety run amok. Uh, and then I really had to push it, uh, and it said Charles Leclerc, which we all know is the correct answer. Uh, so you can see it has structured data, it has unstructured data. Uh, it's ultimately a very simple"
  },
  {
    "startMs": 1566632,
    "text": "pattern, and as the AI models have gotten smarter, uh, this, uh, pattern has worked better and better. This is, uh, this way of connecting AI to data works better the smarter the models get, um, because you're really putting them in charge, um, rather than trying to hamstring them with some elaborate, uh, over-engineered, uh, context assistant. And my takeaway for you is that you should really think about this as a responsibility of your data team. Uh, the data team should"
  },
  {
    "startMs": 1596552,
    "text": "own your context. The exact same skills that made them good at delivering analytics are gonna make them good at delivering context. Um, and keep-- use standard components to do this. Don't get locked into anyone's walled garden. Um, agents and databases are really all you need. Uh, you can go a long way with that pattern. Um, and keep, keep your definitions in code, 'cause then the agents can write the code for you. And that's it. Uh, and we're at time. Thank you very much."
  }
]
