
From AI Scepticism to Shipping: Building AI That Actually Works
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Thanks for joining us everybody. Uh we as I am Colin I'm the CEO of a company called Omni. Ariel runs product for us. Uh and we are going to go through and talk about how we built out our natural language experience in Omni. Um so we'll we'll go through the story and then we'll we'll tell you about some things that we've learned that are probably more applicable even outside of our product.
Um so at the very highest level uh we're going to tell the story of how we started building natural language into the product. Um, I know that sort of everyone is doing it, but it's it's sort of informative how we approach things. And then we'll talk a little bit about why AI is actually hard and also what's amazing about it.
Um, cool. So, oh, I went the wrong way. Oh jeez. Um, so I I will say that um my background is actually in data analytics. So I fell into building data tools after being a data person for a decade. Um, and when we started thinking about building natural language or AI experiences into the product or just applying them as data people, um, I I definitely came from a place of sort of deep skepticism.
Um, just the idea that, uh, frankly, I thought it was smarter than the AI and that couldn't possibly be useful. Um and so we were actually very cautious about building it into the product because I think like many people there's a sort of fear that um AI is very good at gaslighting the user and so uh if you are not skeptical uh it can be very difficult to actually tease out whether there's real value there.
Um, so actually our first AI experience in the product, um, so for folks that don't know, we're building a BI tool, so a little bit of everything across the product and our calculation language, so the way that you add calculations on top of a query is in a pure Excel dialect. We copied it exactly and we copied it exactly because we didn't want people to learn a new language.
Um, but one of our engineers sort of proposed that maybe LLM would be good at writing Excel. And so on his own he actually built the first AI experience in the product where if you watch the GIF it can do things like parse JSON or write calculations or write moving averages but because the internet has so much Excel um it's actually very very good at doing things and it can start to do the types of calculations that might be very hard for a human.
So you can actually have it do things like put the population of each country next to a row of data with a giant if statement. Now, probably not a great way of doing it, but it starts unlocking these sort of magical use cases where we actually started to believe a little bit. And so, this is actually one of our customers when we first released it.
Um, it there was just actually a feeling that it could do some magical things. And so, that was actually like the first foray that we took into natural language. And so, again to like detail our product a little bit, uh, we definitely believe in the semantic layer. So a lot of the product is built around modeling your data, templating out fields, um a a data team sort of control plane for sharing data with an organization.
And so when we started to build our natural language, um what what I will say is that for every person that is building natural language experiences with data, you've got a very hard fork decision about whether you're going to write SQL or whether you're going to go through an intermediate like a semantic layer to actually compile queries.
and our background. So I both of us spent a very long time at Looker in data modeling. We're believers in the semantic layer. We've definitely routed everything that we've done through the semantic layer. There's a lot of good reasons to do that. You get control. We'll sort of talk about some examples of those things. Um at the same time, you've got open and eye and clawed able to do completely magical things with no information on top of your data warehouse.
So what I would say is omni or not very very important decision that you'll make up front about whether you write SQL or whether you write semantics. So we drove everything through semantics. Um it means that what we're doing is we're taking a natural language query. We are translating it into an omniquery. So we're effectively selecting fields out of the UI and then we're pushing result sets.
The advantage of that to go back to sort of my original sort of fear is that we always know that it's producing a query that the user could produce. Now whether it's producing what the user intended is sort of the subtlety of of running analytics teams and things like that. Um but you can do very very simple things like this you know like which brand has done you know purchased most in the past 7 days.
It'll it'll write filter it'll build a query. Um and that was actually the first experience. And I will say that as we released that we honestly didn't really use it at all internally for kind of the reasons that I mentioned. It was sort of one of these toys that we put in the product. Um, and we sort of just left it there.
And what ended up happening was actually our customers picked it up and started using it. And we started to understand the advantages of the semantic layer for doing natural language. And so one of them is that when you have a semantic layer, you can get a very strong guarantee of things like rowle access, column level access, strong permissions in the database.
And again, if you're going to go the SQL route, you can do OOTH down to the database. There's definitely routes through these things, but a large part of our business is embedded analytics. So our customers pushing out analytics to their customers. And in these embedded contexts, the thought is often that the user of those anal analytics is not an analyst in any way.
So we work with travel agents and HR professionals and people that don't define themselves as data people where natural language is a very appealing experience. And so we actually had some customers pick this thing up, put it out in front of customers, and they were actually the first people using Omni to do natural language in real life.
And what was interesting was that their customers actually loved it. And it's all for the reasons that you'd expect. It can just abstract away the picking of fields and the construction of filters. You just say what you want and go. And that was actually the moment where we had a discussion and said maybe we should go implement this stuff internally and see if it works.
and has sort of led us down the path to where we are today. Um, what was interesting though is that when you start digging into natural language and the database, what you realize is that again like these LLMs can do pretty magical things with very little metadata. If your fields are named well and you know like your your database is well annotated, it can go figure things out, but there's more nuance maybe than the user appreciates in their data model.
So things that are obvious to the data people um and Ariel's going to talk about some of these examples later are not always obvious to the user. And what that meant is that once we started building more metadata into the application on top of the raw schema, you can massively increase the precision of these result sets. And so for all of the sort of statistitians in the room, um you always worry about this idea of overfitting.
um you know like when you do statistical analysis you're trying to make sure that you're not sort of biasing your test data set for your production data set. It turns out when you're building for natural language you're effectively just overtuning your entire database. You understand the queries that your users are running. Sometimes it gets it right, sometimes it gets it wrong.
And when you actually observe those things, you can go and um sort of improve the metadata and sort of nudge it back. And again like we'll show you some examples later but once we started building this layer we could actually give ourselves control to increase the precision of things. So if we say sales and we don't have a field called sales again like synonyms are pretty magical for these LLMs but it can actually now start picking up your internal word for it and redirecting queries.
And so that was sort of the next step for us. Um where we went from there is uh this sort of new expectation for experiences that people are building out. So you saw a lot of it in sort of the classic pivot table page. What I will say is again back to the sort of SQL versus non-SSQL.
If you really look at the AI use cases that are best, they keep the human in the loop. So if if any of us went to an LLM and just asked a question about a fact that was sort of undiagnosable from a response and we just got a number back, probably all of us are going to go keep doing research and trying to understand those things.
But if you get a response back and it can citate a source and it can tell you how it's doing the math, you can actually sort of introspect the results and get much better um sort of confidence in what you're doing. And that's actually the sort of accidental advantage that that semantic layer gives and sort of connectivity to the database is it can construct a query.
It can build filters and you can actually say like no when I said this week what I meant was you know week to date not the past calendar seven days. And those things are actually very very hard to articulate in language explicitly. You know, like introspecting again like 200 lines of SQL. It's probably not the best way to understand 7 days versus 3 days.
But you do need to start building out experiences that sort of reflect what your user is trying to do. So we've got this sort of verticalized um chat experience as well. Um and again like the the interesting thing about these new interfaces is now you can start separating a lot of these use cases from the sort of BI context.
So uh it's hard to deliver a full BI tool into a web app. You know there's a lot of Chrome associated with our app. It's pretty easy to put a text box in your app and share out that experience. And so again, like it's been interesting to see how building a new way of exploration actually changes the sort of interface that you want to deliver.
It really opens up a whole bunch of different experiences. Again, I'm sure all of you do things like chat GBT on your phone. It's pretty good at doing those sorts of tasks. Uh you know, like at Looker, we didn't even build a a mobile app for I think like 11 years because doing analytics on your phone is actually trickier than it seems.
But when you start thinking about these new types of use cases and the ability for natural language to sort of use a UI, it does open up more of these experiences. The next frontier is actually uh we think going to be people sort of integrating these experiences into lots of different places. So MCP is sort of the new hot term.
Um it's effectively just like an API gateway to all a whole bunch of different apps. And what's interesting is um if you connect it out to a BI tool, you can take these result sets and actually have Claude go build you a dashboard on the fly. And again like there are enormous trade-offs doing these things. Um it is very difficult now to refine those objects.
And so again like for for folks that have used chatbt or whatever um state becomes really challenging to deal with but the speed with which it can do one-off things becomes very very interesting for a lot of use cases. So we've released a whole bunch of MCB content where people can start doing things in claude. I'll concede that a lot of this is sort of demoare for now.
Um, but it will be interesting to see how all these tools fit together and whether people have their Salesforce and their BI tool and their HR service all part of a giant um, sort of AI experience in the future. Um, I'm skeptical, but we'll see. Um, and then the sort of last one that I would sort of caution people on, and again, like we're sort of trying to solve these problems progressively, but the true magic is sort of when AI can go spin off and actually think.
And what I will say now is going back to sort of my original thought of skepticism, the things that it's magical at are things like lookups. If you go ask it to look up the last 10 support tickets for a customer and summarize them, the results are actually incredible. Like they're objectively outstanding. If you ask it to go analyze churn over the last 12 months and predict who your best customers are, I will I will bet with 99% accuracy that it will give you a poor conclusion and maybe some interesting things, but the sort of cone of uncertainty as it grows becomes really really difficult for these things.
So the general takeaway is I don't think it's going to take anyone's job anytime soon. But what it will do is give people tools to start doing different types of tasks in really interesting ways that might have taken 10 minutes or an hour before and now take 2 seconds. So again, going back to add the population and rebase my query for all of the people that have been in data for a while, that was sort of like go Google a source, grab a population table, put it in your warehouse, write a join.
Now you can just write a 500 line if statement with AI in like 15 seconds. And you might need to verify your populations and make sure that they're actually correct. But the sort of magic that it unlocks for a lot of these use cases actually really incredible. I think what's going to be most interesting is how we build frameworks to put these things back on the rail.
So like the the sort of last thought on how we're building out is the reason those cohort analysis challenges are so hard is because now you actually need to start understanding the context of data. If I say go give me the last 10 support tickets, it's pretty objective. If I go say analyze our win rates for anyone that's in sort of B2B SAS, your win rates this quarter always look bad compared to previous quarters because you have a lot of open opportunities and losses close out before wins.
And that's obvious to anyone that's worked in data or SAS for a long time. But when you tell an LLM what does our win rate look like and it curves down on the sort of final day of the quarter every year, it it cannot do great analysis. And I it it will be very interesting to see whether these problems get solved over time.
But what I will say is that when you bring together a really clean data model and all of the metadata, the things that it unlocks are are very magical. And so I I would expect that everyone in this room is doing something with natural language and data in the next 18 months. Um and Errol's going to tell you more about, you know, our experience.
Nope. Got to find the right slide. Wait. Uh, I used the forward error. The right. There you go. Oh, this was your slide. You want to talk about it? No, just go. Okay, we're gonna go. Cool. All right. So, I'm going to talk about a couple of examples of truly our learnings like literally Colin and I and the team as we were building this out in our product.
Both building the product for our customers, but also as you mentioned, we set up one night we're like, how do we use this for ourselves internally like as data people? Um so the first big learning we had is uh we had to teach AI how we spoke as a company. So as data folks and as product builders the first thing we really focused on was making sure that the AI could get the semantics of querying right.
We were focused on did it pick the right fields? Did it write a filter correctly? Early on it did not write date filters correctly. And we sat down and we were starting to just ask questions once we got that working of like how many deals did I close this quarter? things that we would just ask each other or ask folks on the sales team.
And what we found is that it was getting it semantically right. It was pulling number of opportunities uh is closed true is in the time range of January to March. Uh but for our business was actually wrong. And the reason it was wrong is because if you had handed that same question to somebody who deeply understood our business, we would know that I was actually asking kind of subtly how many deals did I win?
Like I don't really care about close lost. I want to know how many were closed, true and close one. And by the way, we used a fiscal quarter, but I don't go around saying how many deals did we close this fiscal quarter call and I just say quarter. And so the big learning for our product uh what we actually experimented with was what is the best way to get this information in because some of this is not really synonyms.
It's not really fieldle information about like that's not something I want to attach to the is closed field. It's a little bit higher level, a little bit broader about just how we talk and what that hidden meaning is underneath. And so the first thing we introduced in our product was quite literally a big hammer of an open context window that we said, let's just throw anything in there and see what happens.
And it's worked amazingly well as really just this top level instructions. And we've since expanded it to various layers that you can put it in our data model. Uh, but we just started quite literally running queries and then putting any information we could about that hidden meaning that Colin and I just intuitively knew. Um, and so I think the biggest takeaway here is some of it is a technology problem of like can we write the right query?
Do we have the right semantic information of joins? And part of it is actually really nuanced to your users, whether it's different folks in different departments that speak differently or just this hidden language your business has. And just it's it's going to be iterative. You can get some of it at the start like some stuff we already had thought about.
A lot of it is just watching what people are actually asking and then thinking what's kind of the hidden piece that I intuitively know but the AI is not going to know. And you can also do some pretty fun things with it. You can teach AI to do quite a lot of things. So we've had uh certain users, these are actual transcripts from our data.
It says talk like a pirate to our sales team. So you can kind of troll your CRO and things like that. Um, but it works really well. Here's an example of our our loving chatbot blobby as a pirate. Uh, and a good example of quite literally like we have just expanded our big block of context over time as folks have been using it.
And our I I think I cleaned this up a bit, but um, our initial inclination as data folks is to try to overoptimize this and be like, well, did we get are we contradicting ourselves? And what I would say everybody is just throw in as much as you can and optimize later. The second learning is sort of the opposite uh which is that sometimes it is in fact a context problem and we had just built this great new context window.
You could throw as much information in as you wanted and so everything started to look like a nail. And so to give you a good example of that, we were looking through all the logs trying to figure out why were queries not giving us the answer we wanted. And there was a whole category of questions folks were asking where again it wrote the query correctly.
It pulled the right fields, but I got I I did not get an answer, which was very very unsatisfying. And in this case, we didn't get an answer for a whole category of things because when I was asking for go filter on little spoon, the way that I as a user am thinking about just like I'm just going to write my customer's name, Little Spoon, that's like a weird formatted field in our database because of how it's actually stored in our application.
And so what the user was asking getting literally translated into a filter did not actually result in the correct answer. So we sat down, we started trying to solve this with context because we had this big hammer now. And so we started by saying, okay, anytime you're going to go do a lookup filter query, use contains instead of equal to because we'll at least catch things like little spoon incorporated or little spoon opportunity.
Kind of worked. The second thing was what if we just told it exactly what the values were within those fields and that worked really well. So we added a little context parameter on every field worked great for low cardality things as you could imagine statuses only have five values processing shipped things like that. Uh and it was sort of the proof of concept that proved that okay having a little bit more sight into what the actual data is underneath this helped the AI immensely get it right.
It was just completely unscalable to go ask every customer to enumerate values for every field in their database and especially at large card uh large high cardality fields. So this is when it switched over from being a okay this is not a problem for the user to go solve it's a problem for us to go solve and so we actually brought this to the engineering team and they built a very cool little tool so a new tool for our chatbot blobby to use that said if you write a filter you get no results go hit a very specific other type of query that's going to go enumerate every value for that field try to do your LLM magic to match what the user asked and
then rerun the query again with the correct value and it's worked really really well and solved like a whole category of problems that we were having. But the big learning for us and I think we're still trying to figure it out is when when are these problems something that the customer or our users have to solve or when is it a structural data problem or a structural problem for engineering to go solve about how it works.
The third learning which Colin kind of talked about is we also spent a lot of time at the start because we're human trying to make sure that the chatbot and the queries were written as in ways that humans could understand. And what we found as just like playing around again things we were doing over and over was like pull information about this customer, pull information about this entity.
Um the summarization's incredible. It can just look over massive amounts of information that as humans we would go write an aggregate query or at most pull five to 10 fields because I'm not going to consume every uh support ticket. But Colin actually one night you started putting prompts in like well what would just happen if I told the AI to do something absurd like go pull every single field about this entity.
Just pull everything and see what happens. And the results were really great. I guess unsurprising in hindsight. And the learning for us now is trying to figure out the cases where we kind of need to get that nuance into the to the chatbot of when do you need to go do querying in a way that only you can do things like go really deep in figuring out why.
So run like 50 queries and try to summarize it versus when do you need to give output to the user in a way that is much more aggregated or a way that they would think about writing that query. and you we're still trying to figure out when you want each of those and how to categorize the types of questions that match what the user intent is and sprinkle in a little bit of what the LLM can uniquely do well.
And then the fourth one uh we the the best part I would say about building an AI product as a product person is looking over the data which we have all of our prompt logs conversations. It is the clearest way to get actual intent from our users of what they are trying to do. They're literally telling me in words what they're trying to achieve versus me having to pour over like really obscure data sets of like averages and things like that.
Um, so we look through this a lot and we try to find patterns as like where are things not working well again? Is it context? Is it a product problem? But also what are folks trying to do that we just don't enable yet? And this was actually uh written by our VP of marketing Jonathan. He's very convinced that if he asks our chatbot to ultra think that it will do things differently.
Uh it soon it will because we are actually taking that and we're like oh you're trying to not do a what question a why question. And so now we are trying to figure out if you ask ultrasink or probably something more productized. Can we actually teach the AI to go do that in a different way? And so the takeaway here is just like literally looking over that information is the best source of how folks are actually trying to solve their problems.
And then it's just up to us as product people or data people to figure out how to enable it. And and just to add to that, like we literally pull up the logs for our internal company once a week and just look at there's like a thumbs up, thumbs down, which people don't always do, but there are so few things that the data team gets that are like I'm doing a good job or I'm not doing a good job.
And these ones sort of tactically tell you things that people are trying to do for their job that they were either able to do really happily or were not able to do. And it's actually sort of unbelievable because it's one thing to go to the sales team and be like what data do you need and you know publish out a view or a set of views or something like that.
It's another one to see the 25 questions that the sales team asked and be like 15 of these were great and answered easily and 10 of them they are struggling with but I actually can go do a thing to solve that problem. And that feedback loop has been so interesting because I I felt like just as someone who's managed data teams for a while, like you you never you sort of got feedback on how well that you were doing, but you never really got it at a really tactical level about the data sets that were made available.
And a lot of them were sort of subtly more difficult than you realized because of semantics, things that are obvious to a data person about how to pull a record that are not to a sales rep. Um, and so that has been like a huge unlock for us to figure out what to put in front of people.
Cool. And so we're doing a lot of thinking on that. A couple of the things that have come out of watching our our customers try to interact like part of it again is going to be things that the data teams and the customers need to solve like are the data sets available? Are they structured correctly? Is it answering what you're trying to?
And then part of it on our side of oh, there's new categories of things folks have realized LLMs can do that is hard for humans, like the correlations, the wise, the go find every dimension and slice this metric and then try to correlate what's going on. So things like deep researchy mode. Um, and then on the flip, new categories of analytical questions and trying to teach teach the AI like how to discern user intent and match it to what it goes and and does.
Um, so we will we will get no uh Blobby to be a Nobel Prize winner soon enough. And uh yeah, thanks for coming.