On-Demand Webinar · 9 min

10x Your AI Data Analysis: The Context Engineering Formula That Works

Why AI data analysis works on benchmarks and fails on real warehouses, and the DT + DX + CTX formula that closes the gap: trusted data, a curated schema, and the business context that turns a generic model into a domain expert. The live session was not recorded, so this video is a NotebookLM reconstruction built from the transcript and the slides.

Presented by Chris Bergh

What you'll learn 6 points
  • The formula is DT + DX + CTX. Data Trust is tested, monitored, fresh data and the absolute prerequisite. Data Experience is a curated schema — the ten tables that matter instead of the hundreds that confuse. Context is the multiplier: business definitions, example queries, and operational history.
  • MIT's BEAVER benchmark is the evidence for the gap. GPT-4 scores 85%+ on standard public SQL benchmarks and close to 0% end-to-end against real, undocumented enterprise warehouses. When researchers handed the models the right table and column context, performance recovered sharply — the intelligence was there the whole time.
  • Context does not grow linearly with your schema. Join pairs are T × (T−1) ÷ 2, so five tables need ten plain-language explanations, ten tables need 45, and twenty need 190. Curating down to ten tables is what collapses the configuration burden.
  • Example queries are the most underrated category and the highest return per hour invested. One confirmed template — territory versus target, or period-over-period trend — covers about 80% of analyst queries, and counterexamples teach the model why a plausible join doubles the rows.
  • The artifacts are files, not a philosophy: business definitions with caveats and calculation rules, validated SQL templates, ontologies for the domain rules that don't live in the database, and quality metadata — profiling, lineage, and SLA status — surfaced to the AI layer.
  • The starting list is four items: run TestGen on your most critical tables, identify the ten tables that answer 80% of analyst questions, write business definitions for your top 20 columns, and add five validated example queries to the context layer.

Prefer to read it? The written version is in Webinar: 10x Your AI Data Analysis — The Context Engineering Formula That Works.

Slides

39 slides

Transcript

Show chapters and dialogue 1,628 words

00:00:00

Hey everyone. So if you've ever pointed an AI at your company's internal data and gotten an answer that was just confidently, completely wrong, well, you know the frustration I'm talking about. This isn't just some random glitch. It's a fundamental failure mode. Today, we're not just going to talk about the problem, we're going to walk through the exact framework to fix it for good. Let's dive in.

Let's just start with a truth that you've probably already felt. Your AI chatbot is lying to you. Now, look, it's not doing it maliciously. It's just confident. It gives you an answer with the exact same authoritative tone, whether it's spot on or a total hallucination. And here's the most important part. This is not an AI failure. It's a data infrastructure failure that's just disguised as one. The model's doing its job.

It's the data environment we're dropping it into that's the real disaster. And if you think I'm exaggerating, just look at these numbers. The MIT Beaver Benchmark tested GPT-4's ability to write SQL. On clean public data, it nailed it. Over 85% accuracy. Incredible, right? But then they pointed it at real, messy, undocumented company data, the kind we all have, and the accuracy, it plummeted to almost zero.

But here's the kicker. As soon as the researchers gave the model the right context, performance shot right back up. The intelligence was there the whole time. The only thing missing was context. So this brings us right to the heart of the problem, what I like to call the confident AI liar. Let's really diagnose why these incredibly smart models give such terrible answers when they see our internal data. And again, it's not the model, it's the world we're asking it to operate in. Honestly, this is the best analogy for it I've ever heard. Think of an LLM as an infinitely energetic intern. They're super fast, they're eager to help, and they are totally capable of saying something completely wrong with 100% confidence.

They have endless energy but zero business judgment. They have no idea which data tables actually matter, or that a plausible sounding answer is actually total nonsense. Context. Context is the adult in the room that provides that judgment. And right now, we're basically asking this intern to navigate a minefield. First, we hand them a map with hundreds of roads that have no labels.

That's our complex database schema. Then we ask them a ridiculously difficult question that requires years of domain knowledge. And to top it all off, we expect them to understand our company's private lingo, even though they've only ever read the public internet. You see, this isn't one giant, scary AI mystery. It really is a context problem. And when you look closely, that problem breaks down into three very specific, and more importantly, solvable data infrastructure failures.

So here they are, the big three. Number one, your team doesn't actually trust the data. If your analysts have been burned by bad data before, you can bet they'll second-guess every single thing the AI says. Number two, the schema is a graveyard. You know what I'm talking about. 150 tables, old views, weird experimental datasets.

The AI guesses wrong because we never delete anything. And finally, number three, the AI has no clue what your business means. A term like territory alignment just doesn't exist in its public training data. Okay, so we've diagnosed the failures. That's the bad news. The good news, each one of these failures has a specific fix. This isn't about waiting around for a smarter AI.

It's about us building a smarter data foundation. And that all starts with what we call the AI readiness framework. And this slide, this lays out the entire formula. It's so simple. It's DT, for data trust, plus DX, for data experience, plus CTX, for context. If you can get these three things right, you're not looking at a tiny improvement. We're talking about a 10X leap in performance.

So let's break down each one. First up is DT, data trust, and the crucial thing to understand here is that this does not mean your data has to be perfect. Not at all. It just has to be tested, monitored, and fresh. Right? An AI answering questions with data that's three days old is basically useless.

Data trust is the absolute non-negotiable starting line for everything else. Okay. Next is DX, or data experience. This is all about curation. It's about taking that chaotic mess on the left, the warehouse reality, and turning it into that small, clean, well-lit library on the right, with only the 10 tables that actually matter. DX is what stops the AI from wandering through a graveyard of old data, and instead forces it to reason within a clean, curated space. It defines what data the AI is even allowed to look at. And this slide, this is where the magic really happens. This is the final piece, CTX, or context. So if DX builds the library, CTX writes the card catalog. On the left, the AI sees this cryptic nonsense, prod group underscore. No. It has no choice but to guess.

But with context on the right, it knows this means product group number, and even more importantly, it knows how to join it correctly to get an accurate answer. Context tells the AI what the data actually means.

00:05:00

All right, so how do we actually build this context layer by layer? Well, it all starts with the foundation, the absolute must-haves: your schema, your metrics, and your examples. This foundational layer is made up of three essential categories. First, we have to define the physical schema and structure. Second, we define the meaning behind it all with our metrics and business logic.

And third, and this one's huge, we teach the AI how we ask questions with example queries. So let's dig into that first piece, schema and structure. This goes way beyond just table names. We're talking about writing simple one-sentence purpose statements for each table. It's about explicitly declaring the grain. What does one single row in this table represent?

And it's about giving the AI guardrails on the correct join paths. This is basically like handing the AI a clean, annotated map of your data. Now of those three foundational pieces, I have to stop and put a huge star next to this oneExample queries. The source material calls this the highest immediate ROI per hour invested, and it's so true. Giving the AI just a handful of gold standard proven query templates is like giving a student the answer key to the five most common questions on the test.

It just immediately grounds its understanding and prevents a massive amount of common mistakes. So to wrap up this foundational layer, it's schema, metrics, and examples. Seriously, if you build nothing else, build these three things. Together, they will solve the vast majority of the most common AI failures, wrong tables, wrong joins, wrong definitions. And you don't have to boil the ocean.

You can start with just your top 10 most used tables. This is your 80/20 solution right here. But to go from good to great to really level up, we build on top of that foundation with what we call the institutional layer. This is where we start to teach the AI the sophisticated nuance of our business, its quality checks, its history, and its rules.

And this advanced layer also has three parts. We add context about data quality and freshness, so the AI knows if the data is trustworthy right now. We add organizational and operational context, the story of what was happening in the real world when this data was created. And finally, we add policy and entitlements to make sure the AI is secure and compliant. This timeline shows you exactly why that operational context is a total game changer.

A dip in sales volume looks exactly the same in the raw data, right? But a dip caused by a planned territory realignment is completely different from one caused by a new competitor. Without this timeline of business events, the AI has no way of knowing the difference, and it's going to give you a very misleading analysis.

And finally, and this is absolutely critical for any real-world use, a production-ready AI must be a safe AI. The policy layer is where we enforce the rules. We define which columns have PII. We make sure the AI respects the exact same user permissions that your analysts have, and we programmatically apply hard rules based on regulations like GDPR or HIPAA.

This is non-negotiable. So when we put both of these layers together, that robust foundational layer and this sophisticated institutional layer, we see a profound transformation in what the AI can actually do. And this right here, this is the end game. This is the transformation we've been working toward this whole time. The foundational layer stops the AI from making basic mistakes, but it's the institutional layer that elevates it from being a simple data reporter into a true business reasoner.

It gives the AI the judgment to separate an answer that is merely technically correct from one that is truly business accurate. And that, my friends, is the goal. So I'll leave you with this final question to take back to your own teams. Take a really honest look at your data warehouse. Is it a sprawling, undocumented graveyard that confuses even your best human analysts? Or is it a clean, well-lit, curated library that's ready to empower not just your people, but your AI too?

The choice is yours. Thanks so much for watching.

Transcribed automatically from the recording's captions. Names of people, products and companies have been corrected; nothing else is edited. Speakers are not identified: the captions carry no speaker labels, and attributing lines to the presenters would put words in their mouths.

Questions from this session

What is context engineering?

Context engineering is the work of giving a language model the business knowledge it needs to reason about your data: business definitions of terms and metrics, identifiers, domain overviews, validated example queries, and the organizational knowledge that never made it into the database. It is a new discipline, and the ideas and tooling around it are still changing quickly.

Why can't an LLM query an enterprise data warehouse without context?

Because the model has no business reality to reason from. Without context it cannot tell which tables matter, what good looks like in your business, or when a plausible-sounding answer is nonsense. The model is fast, helpful, and entirely capable of being confidently wrong. Context is what turns a capable generalist into grounded decision support.

What is the DT + DX + CTX formula?

Three ingredients that together make AI data analysis roughly ten times faster. DT is data trust, meaning open source quality testing such as TestGen run against any table on any platform. DX is data experience, a curated semantic layer that both your analysts and your AI can navigate. CTX is context engineering: business definitions, example queries, and organizational knowledge.

Why does context get harder as you add tables?

Because the work grows non-linearly. Join pairs follow T times T minus one, divided by two, so five tables need ten plain-language join explanations, ten tables need 45, and twenty need 190. Column definitions grow as tables times columns: ten tables of twenty columns is 200 definitions, twenty tables of thirty columns is 600. Each one needs business meaning, caveats, and usage guidance.

What files make up a context layer?

Plain markdown files, not a platform. A typical set covers a domain overview, terminology, identifiers, metric descriptions, the audiences for the data, example queries, a skill description, and a file kept updated with the data itself. Writing them down is what makes the context reviewable and maintainable rather than tribal knowledge.

How do you start context engineering?

Four steps. Run TestGen on your most critical tables to profile, test and establish trust. Identify the ten tables that answer 80 percent of analyst questions. Write business definitions for your top 20 columns. Add five validated example queries to your AI context layer. Curating down from hundreds of tables to ten is what collapses the configuration burden.

Where to go next