Skip to main content

Why AI Agents Give Wrong Answers on Company Data: Semantic Layers and Metric Views

Summary

  • Prototype trap: Demos work on clean schemas but fail on production data.
  • Data traps: Chasm, fan and ambiguous metric relationships degrade accuracy from 95% to 65%.
  • Semantic layer solution: Unity Catalog Metric Views keep definitions and SQL deterministic.

Why AI Agents Give Wrong Answers on Company Data: Semantic Layers and Metric Views

Watch: Why AI Agents Give Wrong Answers on Company Data: Semantic Layers and Metric Views
Talk by Sonny Rivera, Principal Data and AI Strategist, ThoughtSpot
A semantic layer for AI agents is the governed set of human-verified business definitions and deterministic SQL that stops an agent guessing what revenue, active customer or churn mean. This video explains why agentic analytics demos succeed on clean, narrow schemas and then fail in production, covering chasm and fan traps in multi-fact data, ambiguous metrics, definitions that change while agent skills do not, and accuracy falling from 95% to 65% in a month without maintenance, and how a semantic layer with Databricks Unity Catalog Metric Views keeps answers correct.
It explains the prototype trap: demos succeed on clean, narrow schemas but fail in production because of chasm and fan traps, ambiguous metrics, and definitions that change while agent skills do not. The talk cites a drop from 95% to 65% accuracy after a month without maintenance. The semantic stack spans metadata, metrics, ontology and a knowledge graph. A production-grade layer should be deterministic, maintained as code, aligned with your security model, enriched with synonyms and AI context, and interoperable through the Open Semantic Interchange. A five-question checklist for evaluating agentic analytics platforms and a Spotter agent demo close the video.
Sponsored by ThoughtSpot.

Chapters

FAQs

Why do agentic analytics demos succeed but production deployments fail?

This video describes the prototype trap: demos work on clean, narrow schemas but real production data has chasm and fan traps in multi-fact relationships, ambiguous metrics and definitions that change while agent skills do not. This causes accuracy to drop from 95% to 65% without maintenance.

What are chasm traps and fan traps in data?

These are data modeling problems where ambiguous table relationships cause agents to join incorrectly. This video emphasizes that semantic layers must address these structural issues to prevent wrong answers.

How does a semantic layer keep definitions consistent?

A semantic layer spans metadata, metrics, ontology and knowledge graph—all deterministic, maintained as code and aligned with security. This video shows how Databricks Unity Catalog Metric Views enforce human-verified business definitions.

How should I evaluate agentic analytics platforms?

This video provides a five-question checklist for evaluating platforms, including whether they enforce semantic layers and deterministic SQL. A Spotter agent demo shows how production-grade layers prevent accuracy degradation.

Full transcript

00:00 Introduction: why AI analytics demos fail in production

Thank you to everyone who came to the morning session. I really appreciate you being here. We'll talk about this in a little more detail. Before we begin, we need to discuss a few points. One of them is statements about future results. There are some statements regarding the prospects. This is a standard formality. You know that we cannot be held accountable for what we said, because everything can change. There is also a survey you can take.
So, please fill out the questionnaires. Databricks appreciates this, and the feedback is also useful for me. So, let's go through these points. Before we start, was anyone at the show last night? Did anyone walk? That's it. 1 , 2, we have 4, 5, there are several people. Thank you for going to the show and then coming here this morning. I appreciate it. One more thing I want to do: raise your hands, do any of you or your teams already have a ready-made demo or prototype of AI analytics?
Good. OK. Keep your hands up if it's already in production, trusted by the finance department or management. One . That's it. This is it. Thank you. Good job. Can you come out here and help me? OK. This is the challenge we all face. Isn't that right? Almost anyone and any platform can make a demo, but getting to production is a different story. So, there is a gap between an impressive demo and a working solution in production.
So today we'll talk about where AI agents go wrong and how semantics fixes it. Let's get down to business. I didn't introduce myself because I was waiting for this slide. I believed you already knew who I was. I'm Sunny Rivera, the lead data and AI strategist at ThoughtSpot. I help clients with their data and artificial intelligence strategies. I would be happy if you would take a photo and add me on LinkedIn. Please do this.
Now, what is ThoughtSpot? Let's talk briefly about ThoughtSpot. ThoughtSpot is an analytical platform based on generative AI. We have been involved in search analytics and natural language analytics since our founding. We have always suggested: request your data and get answers. We can even embed our product into your own solutions. We have both agents and natural language support for working with data. So, we are also a long-time partner of Databricks and have a great strategic partnership with them.
Um, of course, we love Databricks because it scales. Um, like us, they are committed to interoperability, and that is extremely important. It is clearly efficient, one of the fastest platforms, well managed; Security and management are critical, and of course it is secure. So that's just a little bit about our partnership with Databricks. Now, many of you are probably asking yourself, "What's in it for me? Why am I here?
Why did I get up so early and come to an 8 a. m. session to talk about this and hear about this?" Well, for the data engineers that I've seen and talked to, you're required to build agents based on data that can be messy, ambiguous, or poorly structured. So, at the end of this conversation, you'll be able to say, "What's my problem as a data engineer?" "and what is the challenge of architecture? and what should architecture do, as opposed to what I should do as a data engineer?
If you're a data scientist , you've probably already implemented LLM directly on top of your data. You've probably done text- to-SQL transformations, and you've probably seen almost- correct answers, and you've seen it happen over and over again . Well, in this talk, we're going to show you why it doesn't work at scale, what are the common challenges and issues, and how to solve them. Um, if you're a data leader— and I've seen a few here—your boards of directors are demanding that you have an AI orientation, that you deliver AI-powered analytics.
So, by the end of this talk, you're going to be able to say what a well-designed architecture is, what a good outcome looks like, and you know what that looks like before you have to explain multi-million dollar losses to your auditors in your reports, right? So the main takeaway here is this: by the end of the talk, you're going to know what to avoid, what a good outcome looks like, and what it takes to go from a great pilot to a robust production solution.

05:38 The prototype trap: agents on raw warehouse data

So, first of all, we see this happening over and over again. It seems strange, doesn't it? Has it always been like this? That's how it is. I don't know why it's happening. Okay. The prototype trap, and that's a little bit of what I was talking about. Um. When you get to that point , natural language works great. It works great on clean, narrow schemas. Um, you have a lot of success there. Demos are fast, stakeholders are impressed .
And it's done in just a few weeks. And you , as a data scientist or data engineer, look like a superhero. You feel like a superhero, right? So the question becomes , "Hey, why don't we just push this to our data warehouse?" Why can't we just point this directly to our data warehouse and get moving? "And that's where scaling really hurts. And as a computer scientist, I'm a computer scientist myself, I know that scaling is a problem that we struggle with.
It's scaling data, it's scaling performance, it's scaling people, it's scaling processes, but scaling is hurting. And that's where it starts to fall apart. So, one of the things that we see in this prototype trap is a couple of different failure modes. And I thought I'd share with you what these things look like and the problems that you might run into in this area. The first one, uh, what I call mode one, I don't know, I couldn't think of a better name.

07:04 Chasm traps and fan traps in multi-fact data

But mode one: data complexity, uh, abyss traps and fan traps—that's what your data architects and data engineers know about. If you haven't heard those terms before, uh, it's when you have multiple facts in your models that need to be combined without double or over-fitting. counting. So the semantic model and the layer that generates your queries and collects this data has to understand the relationships and be able to overcome these chasm traps or avoid the fan traps.
So the first mistake: you have semantically correct SQL, it runs and it generates, but it's actually just completely wrong. And you can test that. You can look at that number and say, " We don't have the 10x revenue that the system is showing." Where did this come from? Isn't that right? The other problem is ambiguity, right? The same income figure exists in many different places, or the same indicator. Active users in your product system—that's not the same as active users in financial reporting , and it's not the same as active users in an investor presentation.

08:13 Ambiguous metrics: why AI picks plausible but wrong answers

So, this becomes a problem. And here's what happens: your LLMs, your agents, choose the plausible answer, not the correct one. Although it may be correct. It's just believable , isn't it? So, the second mode. Third mode, right? Your definitions change, but agents don't. So we view this as a situation where the context changes across the stack. We have business users or analysts at the very top of the stack looking down at different levels, all the way down to the deepest levels of our physical data, right?

09:02 When business definitions change but agents do not

So, these people are sitting at the very top. They go through a level of logic, through dimensional models, and then there are physical models. And so, you can create agents and skills that are directed downward, but it happens that something changes. The metric changes, we decide to track active users for 30 days instead of 14, or vice versa. And then there is a discrepancy between what you created the skills for and what actually shows up in those metrics.
We see this happening, and even Anthropic recently published a great blog about analytics with Claude. They noted that the accuracy of their models dropped from 95% at the beginning to 65% after a month without any maintenance. They did not perform any maintenance. Accuracy has simply declined because ideas, logic, and definitions have changed over time. And then, of course, there's the problem of the " silent" error, right?
This is what really hurts us the most: I got a plausible answer that sounds and looks good. She passes our inspection. We look at her. Yes, everything seems to be correct. And it reaches our management, they make decisions based on it or add it to reports for investors, owners, or top management. This is what happens, and it's not a data problem. This is not a data engineering problem. This is not a data science problem .
This is the problem of the lack of a semantic level. This is what leads to such problems. So, one way we look at or understand the semantic level. What is the semantic level? You can ask. This is actually a stack, right? I call this the semantic level. Some say " semantic model". You will also hear the term "context model" or " context level", but it is more than just one thing. So if we start in the middle, well, I'll start on the left, okay?

11:26 What is a semantic layer: metadata, metrics, ontology, knowledge graph

On the left we have the data. These are the sources from which the data comes. But if you look at the middle, our context layer is actually made up of metadata, right ? So, we have things like tables, schemas, data types. This is all great. We all have them in our catalogs, right? Uh , we have them in DDL. These are all wonderful things. Uh , and then we have metrics, right? So, we can have Data Bricks with metric representations.
You can define metrics in advance. You can predefine associations, aggregates. Which of these metrics are reliable for business? Uh, and this is superimposed on top of our data model. Then we have the ontology level. And this level of ontology is extremely important . That is, it is the difference between mediocre and excellent. Because if you think about the models, the advanced models that we've seen today, they're all trained on data that's connected to each other.
The number one dataset for training our advanced models, used almost everywhere, of the highest quality, is Wikipedia data. Why is that? Because everything there is linked in both directions: backlinks and direct links. It becomes not just data and information, it becomes knowledge because of how the data relates to each other. And that's exactly what our ontologies show us— connectedness. Uh, and we also have the context, uh , from memory.
Who is this person? Sunny Rivera works in sales. I can ask a question and get an answer —I work in the Northeast sales department, so I'll get answers about the Northeast. I am in the sales department. Someone else who works with inventory can get a count of the items, even though we are asking the same question. Yes? What is the best-selling product? Well, I'll get a product that might be different because the cost is different in dollars, and someone else will get a result in units because that's the context and the world they live in.
So, this context is what's important about the data right now. So, this context can also come from your analyst who will add it. And the last part is the knowledge graph. And the knowledge graph is actually an instantiation of all these things. It's the fact that Sunny has this computer with this serial number—that's metadata, right? This belongs to him, attached to his iPhone, connected to this clicker. Yes? So this, uh, knowledge graph—it's really an instantiation of all these things.
And of course, we get metadata and stuff from observability and catalogs. And finally, we can connect to these analytical insights and actions, for example, through ThoughtSpot, mobile apps, or your operating systems. So, I'm a little stuck on this point. I wanted to point out that this is where Claude describes his analytics skills directly from his blog. The first thing that is discussed there is the semantic level.
This is the first step. Isn't that right? I'm also curious that they offer a rollback option. If you can't find what you're looking for, do it the old-fashioned way and fantasize about the answer. That is, turn to another mechanism, not the semantic level, to get the answer. Right? So, I feel relieved that it's not just me saying, "Hey, we should think about semantic models and levels." What are the three properties?

15:29 Three properties of an enterprise semantic layer

There are three things to look out for at the industrial semantic level, right? It is deterministic in its architecture. It is not probabilistic. This allows you to create such a semantic layer and metrics, as well as validate data and responses. You get the correct SQL, it's validated, and it's not just a mapping, right? The next aspect is self-reinforcement. It is easy to maintain, and it helps to maintain itself .
This is software as code. We can implement this model into our CI/CD pipelines. And over time it becomes more accurate, not the other way around. And, of course, it must comply with your security model, RBAC processes, and be passed down, for example, to Databricks— that's great. If you want to do it in ThoughtSpot, you can do it there too, right? Um, so those are three properties to look out for . Another area is semantic enrichment, adding synonyms to your data.

16:44 Semantic enrichment, AI context and Open Semantic Interchange

What does it look like? “Revenue,” “sales,” “ revenue”—all of these can be used by the same organization to refer to the same thing . AI Context Concept: Let's add a little extra context for LLM to eliminate ambiguity in the future. Instructions for agents, memory model—what information do I have about users and about our space. Of course, interoperability, and that's what we're proud of. ThoughtSpot—we are a founding member of the Open Semantic Interchange.
We believe that we should have open models that can interact with each other, and Databricks agrees with that , so we are collaborating with them . So, we can connect to sources like your leakhouses, metrics, views, and models. So think about enriching your semantics, think about interoperability. If you want to remember something, remember two things . First, you need a semantic model. Second, having a semantic model will increase your accuracy threefold.
And so, if you're not subscribed to Juan Sequeda, subscribe to Juan Sequeda. He has great information about semantic models, knowledge graphs, and these are the results of his research. So, I wanted to show you five questions. If you're evaluating, considering your models, your agentive analytics platform, here's what you should be asking. Can I work with many facts at different levels of detail? What happens when business definitions change in real time?

18:11 Five questions for evaluating agentic analytics platforms

And they will change in real time. Analysts will say, " I have a monthly business report tomorrow." I need to change something at the analytics level, not deep in the metrics or database levels, but at the business level to prepare a report. I am going to do this job. Can we handle this? Is security provided at the request level, or within your core security system? Ahem. What is the cost of maintenance? And this is an important question.
What is the cost of maintenance after implementation? Is the system self-regulating or does it require significant maintenance? We see that many people spend 50, 60, 70% of their time supporting agents instead of creating new insights. And also: is the semantic level common to AI and business analytics, or do they diverge? You know, there's something I didn't get to, and we're short on time, so I'll try to briefly show what we're doing here.

19:37 Demo: Spotter agent building a dashboard on a semantic model

This is quite difficult. I'll show you a little ThoughtSpot. If I take a quick look at ThoughtSpot, there are interactive panels that we have. Here is a great example. I have an interactive panel on ThoughtSpot, for example, this panel on pharmaceuticals. It displays all my KPIs. It is built on the basis of my semantic level. Let's see if it loads. But I can just go here, because everything is built on my semantic level, and immediately say: "Hey, tell me about the main conclusions."
What should I know about this dashboard? What has changed? And I can see, "Oh, well, you know, the quality has gone down here." Let's dig into this, shall we? I can say, "Hey, regarding this metric, let's take a look at ... Sorry, I'm getting off topic a little." Regarding this particular metric, I can ask Spotter right here. "Hey, let me ask you a question ." Or I can go to Spotter in general and start learning: " Tell me more about this specific problem."
Then I can dig deeper, and, you know, these graphs are interactive. So, I can interact, drill down, and work with my data, all thanks to a built-in semantic layer that allows me to get answers to the “why” questions. So, that's the last thing I'll show you, and then we'll move on according to plan. I can even ask our agent, "Hey, let's edit this panel and create a new tab, say , about inventory status." Our agent will now start creating all this.
He can ask me a few questions, but this dashboard that you see was built just like that— just by asking our agent, " Build me a dashboard ." He knows what "stock status" means. He knows the related KPIs. Uh, and can build on that . So he can ask me a few questions. I'll just tell him to keep going. We don't necessarily have to watch this all the way through , but I wanted you to see what we can do with our agents and an agent platform that runs on a semantic model.
So, I suspect that's about the time I have. Uh, Natan uses our system. They are delighted with her. Here is their quote. And one last thing: if you want to dive deep into the demo, come see me at booth 410 and we'll help you out on the spot. Good? Thank you very much to everyone who came.

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.