AI Engineer Code Summit 2026
The New Job of the Data Team Is Providing Context to AI — George Fraser, Fivetran
Loading slides…
Read the talk
The New Job of the Data Team Is Providing Context to AI
George Fraser shows how to turn an existing data warehouse into the foundation for an AI analyst. His Formula 1 demo combines dbt models, a directory called AGENTS and vector search over press conference transcripts.
From a talk by George Fraser
At a glance
Ideas worth remembering
Give analytical agents access to the modeled warehouse that already serves BI. Direct application tools remain useful for actions and freshly updated individual records.
Use
AGENTS.ROOTas a stable entry point to queryable metadata. In the F1 demo, descriptions of tables, columns and joins guide the agent through 30 normalized tables.Keeping text, embeddings and structured fields together lets one SQL query combine semantic relevance with precise restrictions such as session type and year.
Known-answer evaluations help catch regressions. Open-ended analysis also requires deciding what the question means, as the live driver ranking demonstrated.
The data team can keep business definitions in code and make them discoverable across assistants, leaving agents free to choose the queries each question requires.
What would make an AI’s sales advice worth taking?
Imagine your head of sales opening an AI assistant and asking for its three best ideas for improving pipeline conversion. That is a perfectly reasonable question. It also leaves almost all the analytical work to the assistant. What does conversion mean at this company? Where are deals getting stuck? What evidence would justify recommending a change?
George Fraser, co-founder of Fivetran, thinks data teams should encourage questions this open-ended. Agents are already good at writing SQL and making charts. He jokes that dashboards have been renamed “artifacts,” then makes a more interesting prediction. Once dashboards become cheap to produce, companies should have more of them, and many should be short-lived.
The definitions behind those dashboards still need to be right. They matter even more when an autonomous agent asks its own questions and acts on the answers. That gives the data team a new job. It has to make what the company knows about its data available to any agent doing the analysis.
Fraser points to several companies using much the same design.
- Ramp connects an AI analyst to data modeled with dbt and stored in Snowflake.
- Stripe connects its internal knowledge agent to its data platform.
- DoorDash replicates and models its data before giving its analyst access to it.
- OpenAI and Anthropic have each built internal agents that use their existing data platforms.
In each case, AI becomes another consumer of the infrastructure originally built for business intelligence. Replicating records into one warehouse makes cross-system joins possible. Modeling simplifies the messy representations in the source applications and expresses the company’s own rules. An agent benefits from much the same work that makes a database usable by a new human analyst.
Where the agent changes the economics is reading. Suppose an analyst can identify a group of customers with certain characteristics. The agent could then read a thousand transcripts of calls with those customers. The familiar work of defining the group makes a previously impractical investigation possible.
Why connecting an agent to every source application breaks down
If the question concerns Salesforce, why not give the agent the Salesforce connector? Extend that reasoning across the company and you get what Fraser calls the MCP web. The assistant uses the Model Context Protocol to reach each system of record separately. A human analyst could work the same way, logging into one application after another and piecing together an answer. It would be slow and remarkably easy to get wrong.
The agent inherits three problems that the warehouse already solves.
- Business rules. Operational records can be a mess. Fraser considers Fivetran’s Salesforce instance especially messy, though he declines to claim the championship. The cleaned-up interpretation of those records already lives in the warehouse.
- Query languages. Salesforce exposes SOQL, Jira has JQL, and the Slack search tool in his example offers the terms you could type into the search bar. Each gives the analyst a different and limited way to query the data.
- Joins. None of those individual tools can issue a single join across all three systems. The agent has to reconcile the separate results itself.
Direct connections are still useful for taking an action or fetching a particular record that somebody just updated. Going to the source avoids waiting for the next replication. For a question about patterns across the business, the warehouse has a considerable advantage.
So where does MCP fit at Fivetran? A Slack data bot, Claude and an autonomous customer support agent all connect through an MCP server to BigQuery. The support agent can answer certain customer questions directly when it has high confidence. Behind all three clients sits the same dbt model that Fivetran has developed over roughly ten years to serve its BI tools.
The consequential design choice is what the server lets the agent query. MCP can expose a collection of isolated application searches. It can just as easily expose a database where somebody has already done the work of making those records fit together.
Give the agent a map it can query with SQL
Fivetran tried giving agents database access and letting them look around. The answers were disappointing. Even a well-modeled warehouse can be a dreadful place to start if you have no idea which tables to use or how they relate.
Fraser’s response to the growing market for context catalogs is that metadata is itself data. The database is quite a good place to keep it. Fivetran’s proposed Agents Schema plays a role similar to an AGENTS.md file in a code repository. It gives the agent a known place to start discovering its surroundings.
Create a schema named AGENTS. Its entry point, AGENTS.ROOT, contains Markdown describing the other metadata tables available in that schema. What can a newly connected agent learn on its first query? The documented directory lookup is small enough to remember.
sql
SELECT provider, key, content
FROM AGENTS.ROOT
The returned descriptions tell the agent where to query next. The contents beyond that directory can vary considerably by company. Fivetran’s production metadata largely represents its Looker model because that was the best account of its business data available internally. A company with better documentation in another tool can publish that instead.
Fraser compares the agent to the protagonist of Memento, forever writing notes to himself. An agent can interpret an ambiguous question and explain a result in ordinary language, yet it is a poor place to entrust the company’s long-term memory. Keeping the business data and the notes explaining it in the warehouse gives every new session somewhere to look.
Build an F1 analyst from telemetry and press conferences
The other addition to the warehouse is searchable text. A conventional dashboard has little use for a pile of press conference transcripts. An agent can read them, provided it can find the passages worth reading. Fraser prefers the warehouse’s built-in vector index for this job. Even if a specialist index does somewhat better at search, keeping everything together makes it much easier to combine a search by meaning with ordinary SQL conditions.
Formula 1 makes a useful test case because it has both kinds of data in abundance. You can understand the questions without first having to learn how Fivetran’s business works.
- The OpenF1 API supplies structured racing data, down to telemetry describing where each car is at different moments.
- The F1 website supplies the rules, a glossary of racing terminology and transcripts of post-race press conferences. The long documents can live in ordinary SQL text columns alongside the racing data.
Fraser had Codex write two connectors using the Python Fivetran Connector SDK. The SDK lets the developer supply the code that captures the data. Fivetran runs the connectors, which call the sources, interpret their responses and deliver rows to source tables in BigQuery. Fraser recommends giving the coding agent the Connector SDK skill to help it write that capture code.
The API’s representation is awkward to navigate directly. dbt reshapes the source tables into a normalized schema that the analyst can use. The same transformation pipeline incrementally generates vectors for the text, making the documents searchable inside BigQuery.
Gemini was a convenient choice of analyst given the Google Cloud setup. Its key system instruction is simply to start at AGENTS.ROOT. As the warehouse evolves, updating the directory and the metadata it points to lets the agent discover the changes without rewriting its system prompt. Another agent capable of querying the warehouse could follow the same instructions.
Put embeddings in dbt and known answers in CI
What does it take to turn the F1 glossary into something the agent can search by meaning? The example uses an ordinary dbt model. Most of the model is SQL. Jinja blocks give dbt additional instructions about how to run that SQL as part of a data pipeline.
There are two pieces to look for in the model. One generates an embedding, a numerical representation of the glossary text that allows comparison by similarity. The other asks the warehouse to create a vector index over the embeddings. Incremental processing lets the pipeline add searchable material as the underlying data changes.
The distinction matters when building the rest of the analyst. The pipeline prepares the searchable representations ahead of time. At question time, the agent can use the index to locate relevant text and read what it says.
A small Python evaluation suite runs in continuous integration. Each test asks a question with ten possible answers, one of them correct. That makes it straightforward to catch a regression when a change breaks a question the analyst used to answer. The format is deliberately narrow. Scoring a known answer is considerably easier than judging the quality of three open-ended recommendations for improving sales conversion.
Find what people said about tire problems in 2025
A question about tire problems sounds like a text search. It becomes more interesting when the analyst wants specifically what people said in post-race press conferences during 2025. Which parts of that request should the database answer by similarity, and which can it settle exactly?
The example query combines two kinds of conditions.
- Topic. BigQuery’s
VECTOR_SEARCHfinds transcript content related to tire problems. A passage can be relevant even if the speaker used different words. - Eligibility. Ordinary SQL predicates restrict the transcripts to post-race sessions and the year 2025.
A good semantic match from the wrong year is still the wrong evidence. Keeping the vectors and the transcript metadata in one database lets a single query express both requirements. The agent can then read the matching material to work out what people actually said.
How three metadata tables guide an agent through 30 data tables
It helps to trace two paths through the F1 warehouse. How does a press conference become searchable, and how does a newly connected analyst find out where to search? The first path carries the actual records. The second supplies the instructions needed to query them.
The source schema holds what the connectors deliver. The normalized schema holds what dbt produces, including the embeddings and indexes. The AGENTS directory guides the analyst to three kinds of metadata about those normalized tables. One describes what each table contains, another explains its columns, and the third tells the agent how to join tables together.
Those three metadata tables give the agent a way into 30 normalized tables. Fraser is still experimenting with how much description to supply. The useful finding here is how far the agent gets with just tables, columns and joins.
Building the demo took Fraser about five hours. He spent roughly two hours getting the first version together without looking closely at the code. After giving the talk once, he went back, decided the project needed some architecture and spent another three hours cleaning it up. Most of the time went into that second pass.
Where the F1 query gets its data and its instructions
Read the diagram as text
- OpenF1 API. Data preparation — Structured race records and telemetry.
- F1 website. Data preparation — Rules, glossary entries and press conference transcripts.
- BigQuery source schema. Data preparation — Rows delivered by the two connectors.
- Normalized schema. Data preparation — 30 modeled tables, with embeddings and vector indexes for searchable text.
- AGENTS.ROOT. Database discovery — The system prompt directs the agent here to discover available metadata.
- Tables, columns and joins. Database discovery — Three metadata tables explain what the normalized data means and how its tables connect.
- Agent-written BigQuery query. The tire example combines semantic search with restrictions on transcript type and year.
- OpenF1 API → BigQuery source schema: Connector replicates race records.
- F1 website → BigQuery source schema: Connector replicates documents.
- BigQuery source schema → Normalized schema: dbt normalizes records and indexes text.
- AGENTS.ROOT → Tables, columns and joins: Directory identifies metadata to read.
- Tables, columns and joins → Agent-written BigQuery query: Guides table, column and join choices.
- Normalized schema → Agent-written BigQuery query: Supplies searchable text and structured fields.
Who is the most improved driver this year?
After a brief encounter with the curse of live demos and a missing Wi-Fi connection, Fraser gets his F1 analyst running in Gemini. He asks who the most improved driver is this year. The question has much the same shape as the sales question that opened the talk. The words are clear enough. The metric is missing.
Gemini first consults the three metadata tables describing the 30 normalized tables. Then it runs a small exploratory query to see what the database contains. Fraser often sees agents make these preliminary probes. In this case the agent pauses to ask what improvement should mean. Fraser chooses race positions gained.
With the metric settled, Gemini writes a much longer query with numerous joins. Who comes out on top under that definition? The answer it returns is Lance Stroll.
Someone in the audience objects that Stroll is a poor driver. Fraser finds that entirely compatible with the result. Being the most improved driver can be a little like being the company’s fastest-growing product. It is a surprisingly ambiguous endorsement. Stroll’s ranking is the agent’s result under the chosen measure, with the precise aggregation and comparison period left unspecified.
Two earlier questions show how much the kind of evidence can vary.
- Which corners are toughest this season? The analyst can examine actual crash records alongside what drivers said in press conferences. That gives it observations about both incidents and the experience of driving those corners.
- Who is the handsomest F1 driver? The agent initially refused. After some persuasion it chose Charles Leclerc, a verdict Fraser was happy to endorse. No warehouse definition was going to settle that one.
What the data team should own
The revealing moment in the live demo was the clarification. The warehouse could tell Gemini what racing data existed and how to join it. The person asking the question still had to say what counted as improvement. Once those two pieces were in place, the agent could work out a fairly involved query for itself.
Fraser has found this arrangement works better as models get more capable. The agent has room to decide what to inspect, when to ask a question and how to assemble the analysis. An elaborate intermediary that prescribes every retrieval step can limit how much the system benefits from a better model.
His recommendation is to give the data team ownership of context. That team already knows how to reconcile source systems, simplify records and express the company’s definitions. Keep those definitions in code, publish them where a warehouse-connected agent can discover them, and use standard components so the choice of assistant can change. There is a further benefit to writing the definitions as code. The agents can help maintain the very models they rely on.
Resources
From the talk
Explains the AGENTS.ROOT directory, how agents discover metadata providers and how to connect an agent through SQL or MCP.
The Python SDK Fraser used to build the two custom connectors that brought racing records and F1 website content into BigQuery. Includes guidance on developing, testing and deploying connectors.
Further reading
Provides workflows for publishing existing metadata from tools including dbt and Looker into the warehouse. A practical starting point for building the database map.
Full transcript
Loading transcript…