
AI in Omni, backed by a semantic model for accuracy
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Hey, this is Connor from AMY. In this video, I'll walk you through AMI's AI features for querying and summarizing data. I'll also explain a bit about the underlying semantic model, which you can curate and fine-tune to get more accurate results. Finally, I'll show you how you can open up this AI functionality to your customers as well. This video is a bit longer since there's a lot of ground to cover, so feel free to jump around different sections to learn about what's most relevant to you.
Okay, let me show you Omni's AI features by walking you through some use cases. So, let's say you've just joined your company as head of sales and you're looking to get up to speed on the business. You might start in an Omni workbook like this. We poke around in the data a bit, see what's useful and maybe I want to start in this order transactions topic.
Now, this topic is just curated set of data put together by the data team where I can freely pull from any of these tables. But maybe I just want to start asking questions. So I can pop open this AI query helper tab and type in my question. So maybe I want to start with something really basic. I'll just say what's our revenue per month.
Give that a second to run. Awesome. So that's delivered as a query in the context of an OMI workbook, which is great because it lets us validate the results. So it looks like it's grabbed the uh created month field as well as the total sale price field which is how we define revenue in this data. From here um I can use this just as a jumping off point.
So if I wanted to hop into the field picker here I could add or remove fields. Um I could insert a column to the right and start writing Excel calculations which I'll show you a bit more later. Um I can even pop up in the SQL and see what's being written down to my database. So AI is great for delivering those answers and then also um getting me started and giving me a jumping off point to do further analysis.
I also wanted to show you that um I I used the word revenue in my question here uh but the AI model still correctly grabbed the total sale price field and that's because in our underlying semantic model we've given AI some context and metadata so that it can accurately interpret our data and deliver more relevant results. And I'll show you um under the hood a bit later.
For now, if I wanted to keep going with AI, I could filter this data. So maybe I want to ask only show me orders in USA. Give that a second. That should add a filter for only orders that happen in the USA. Okay, awesome. So, um we've gotten a baseline understanding of revenue here. Maybe I want to start with a new question.
I can just go ahead and pop that into the chat directly. So maybe I want to look at product uh product categories. So I'll say what are the best selling product categories that's going to work on deliver me a new query to answer that question. Here it's grabbed the product category field. Um looks like this is particularly helpful for us for now.
Um, bestselling is an interesting question since it could be interpreted in a different in a few different ways, but AI still delivered a relevant query. If I wanted to be more specific with the data I want, I can also just ask directly. So, I could say also show me count of orders. And that should just add the order count field directly to my query.
So, I can keep iterating until I get the data that I'm looking for. Awesome. So, up until now, we've been pulling data from our database and from our data model, but we can also use AI to help us create new metrics. So, let me close out this AI query helper for now. And I can pop open the AI calculations helper and ask it to help me write some formulas.
So, one that might be helpful is um calculate the percentage of percentage of total revenue made up on each category. Awesome. So that's uh correctly writing that formula for me. It's grabbing the B1 field and then dividing that by the total of the B column. Can also make that a percentage just to um make a percent easier.
Another metric that might be helpful is the average revenue per order. So um I could say calculate the average revenue per order category. Great. And then it's going to divide B1 by C1. Make that a currency field so it reads nicer. Great. Now, this metric is probably useful beyond just this particular analysis. So, what I can do is promote it to the workbook so that it'll become a field in my field picker that I can pick from here.
And if I want to make this more broadly available, let's say it's useful to teams across the company and I want to use it in future analyses, I can also pop open this modeling uh section and let me move myself out of the way so you can see hit modeling and then I can hit promote and that would make it so that any workbook based on this data model has access to this field.
So it's easy to not only analyze data with AI on existing fields, but I can also create new logic with AI, verify that it's correct, and then push it down into the shared data model for broader reuse. Okay, back to our analysis. So if I wanted to look at this data over time, a pivot table might be helpful, and I can do that with AI as well.
So let me pop open our AI query helper again, and I'll just ask it to break this out by month. Give that a second to run. Great. So now it's grabbed this created app field and it's pivoted our data by. Now this is a lot of data to try to digest at once. And if I wanted just some quick insights, I can ask AI to just summarize these results for me.
And while this is running, um it might take a bit since there's a lot of data here. I wanted to also show you that we have an option for an AI summary visualization tile. And a really great use case for this is something like our user lookup dashboard, which is zooming in to a particular user and customer's purchasing behavior over time.
And here we've set up an AI visualization AI summary visualization tile that's looking at some of this user's order history and giving us a customer profile kind of painting a picture of this user so we can better understand um how to design the product for them. I'll head back to our original analysis and now we have this nice AI summary here.
It's giving us some key insights like looks like genes are a consistently strong performer. um there's some slight seasonal variation, given us some metrics to look at, and it's also even given us some recommendations for follow-up questions. And so from here, we can just repeat the process. We can ask more questions, dig into the data, and continue querying and iterating.
So in this entire workflow, we've gone from asking our very first questions about the data to doing some pretty detailed analysis and all the way to coming up with useful takeaways. In Omni, AI can lead your entire analysis like I just showed you. Or it can just be a starting point where you continue digging in with the UI, Excel CS, or SQL.
And since it's always showing you what fields are being used, you can trust the results and make adjustments as needed. All right, now that we've done some AI querying, I'd love to show a little bit more of Omni's semantic model, which powers all of these queries. We know AI can feel like a bit of a black box sometimes.
So, in Omni, you can edit your semantic model to help curate and fine-tune the results. To show you the semantic model in action, I'll start us off with a simple query in a new workbook. Just going to pop open the AI quer helper again and I'll just ask how many users are in the US. We'll see what that gets us.
Okay, so this is not very helpful. It's given us a very blonde filter of where country equals United States. Um in our actual data which I know um the United States actually represented as USA. So we want to give AI a little bit more context here to help it deliver better results. So what I can do here is open up the country field.
I'll hit edit here and we'll see a few ways that we can add in context and metadata. There's a description field and there's also some AI context that we can give some synonyms and then I can also provide it some values that actually uh some values in in that field. So here I might just say in the AI context um there are two possible values USA and UK.
I can also hit query summary values which will give uh on these semantic model a list of all the values possible for that field. I'll hit update there. And now let me clear out that query and I'll ask that question again. So, how many users are in the US? Awesome. And it gave us the right filter. And that's because again, AI now has that context.
So, it can understand us is probably referring to USA. And that's one of the values of this field. So, I'm going to grab it. I'm going to put it into the filter. Let me show you what's happening here under the hood. So, I'm gonna jump into the jump into the uh Omni workbook model. And I'm not going to explain everything about Omni's architecture here, but I want to show you that um that AI context that we just gave and those values that we just provided are now stored in this IDE version of the model that's powering all these queries.
In the IDE, we can go much deeper than just providing um those values, although that's very quick and easy. you can uh do a lot more in the IDE. So, if I jump over over to the order items view, which is a bit more built out, you'll see that most of the fields here have an AI context field, which gives more context on that field.
Um, there's this tags, which is telling Omni to use this field for AI. And there's also descriptions that we're pulling in from DBT or just defined in Omni's shared data model. So, you can reuse that metadata as well. A good example of this is earlier um I used uh this total sale price field when um AI or AI pulled it in this total sale price field when I asked about revenue and that's because in this description we've asked it to pull in this field whenever users ask about sales or revenue.
So that's a good way to curate the model with this metadata. This is at the table level. But we can also define this context at the topic level. So that whenever someone is asking about questions in a particular topic, AI can act upon context just for that topic. So here we've provided a pretty significant list of AI context here.
Um and we've also even given it a example query. And you can just grab this from um the Omni query itself. If you just open up the inspector here, um you can just go ahead and copy and paste this query structure and then put it directly into the AI context. So I want to use this to give you a quick example of how you can really tune your results.
If I pop back to the initial query, let me reset this a little bit. Clear this out. And let me just ask show me top users by order count that a second to run. Great. So it's given me first name, last name, and order count. And that's because if I jump to the order items topic, we have something defined in here saying if asked about which users or who include the fields user's first name and user's last name only, don't include email unless explicitly asked.
So, if I wanted to get a little more specific here and maybe change this up a bit, maybe I want to pull in full name instead. So, I'll say user's full name. So, that's concatenated into one field. And maybe I also want to see um user ID anytime I ask about a a user. So, I'll say and users ID only.
Go ahead and save that. Head back to my query. Give it a refresh. Just clear out that query. And I'll say ask that question again. So show me top users by order count. Great. So now it's pulled in the ID field, but we see that it's still pulling in first name and last name. So um I know since I'm curating this model that I actually didn't tell AI that it can use that full name field.
If I go into the users view, you'll see that if I scroll down to full name, I can find it. Ah, there we go. Um, here we don't have that tag that's called use for AI. So, I want to add that in here. And what that is going to do is it's going to tell that topic that it can pull that field.
And if you go if we go back to the order items topic, we see that um we're defining these AI fields with this tag use for AI. So I'm going to go back to my original query. Going to refresh again. And now we should get um the fields that we want. So say show me top users by count.
Great. So now we have our full name field and our ID field. You can get really creative with this. So if I wanted to be really specific with my instructions and say um when asked to summarize results um always start with the key takeaway is and then describe describe the most important takeaway. Save changes. Go back here.
I'll refresh. And now I'll just say summarize these results. We'll give that a second. Awesome. We see it has listened to us and it said the key takeaway is that top customers have between 10 to 14 distinct orders as well as the rest of the summary. So you can get really customized with the semantic model and that's really powerful for opening up access to end users.
You want them to be able to use AI to get insights and make decisions but you also want to make sure that they can trust the results and that they make sense. So that's why Omni semantic model is so valuable for opening up AI to the rest of your organization. So with all of these AI features, we know that organizations will want to use them differently.
So all of them can be toggled on and off in settings. Show you that page here. This also lets you control which data is passed to an external LLM or not. Some features only use metadata. So like when you are asking AI to give you a query, it only needs to see the name of a column, the name of tables, the metadata in your semantic model.
But when you ask AI to summarize results for you, it actually needs to see your data and that will get passed to an LM. So we have a whole AI data privacy page where you can read much more on this and then toggle on the features accordingly. So far, I've also only shown you OMI's AI features, but because OMI sits on top of your database, you can also leverage modern machine learning and AI capabilities from databases like Snowflake and data bricks to enrich your data with AI.
For example, I have this customer review dashboard built on top of some Snowflake data where I'm looking at the customer reviews coming in for my product. And let's say I wanted to investigate a given uh a given week of reviews. Maybe this one needs a little bit of love. Um here's the actual comment that was given to me.
But I've used AI to generate a sentiment score and a summary to make it easier to get insights at a glance. And if I pop open the workbook view, I'll show you that this content summary field is built off of Snowflake Cortex's complete function, which just lets me pass in this prompt and answer this question. And similarly for the sentiment score, I'm utilizing Snowflake Cortex's sentiment function which is purpose-built for giving that sentiment score.
And we can do similar enrichment with data bricks as well. Here's a uh chart looking at order items by region. But this region field actually didn't exist in my original data. I only had this state field. And instead of trying to annotate all that data by hand, um, I just use data bricks AI classify function, which is built on top of their mosaic AI and it lets you pass in the state value and then classify that state value by row into one of these values.
So you can get really customized with this and deliver these insights directly to your end users. The last thing I want to show you is that you can bring all these features to your customers as well with embedded analytics. So let's say I'm a marketing manager and my company uses Gleam to manage our e-commerce store. I could log into my portal here and here's all all the data for my company and Gleam.
I could go to this custom analysis section and start asking questions of AI just like I have been with um our internal Omni instance. So for example, I could uh say, you know, maybe I want to run a campaign for a top user. So I'll say show me top users last month and give me their ID and pull me.
Give that a second to run. And this is operating off the same function um that I've been showing you throughout this video. So here I got that list of ids and full name of these customers. And I could continue iterating on this query or I could just directly download it as a CSV and maybe port this into my CRM to actually run a campaign.
You can also get much more customized with this with our API. So here we built a very simple app just to show you show you what's possible. But, you know, I could ask like how many orders did we get in the last three months. We'll give that a second to run. And behind the scenes, it's using the same functionality that I've been showing you.
Great. So, it's it's delivered this query with the month and the total number of orders. You can imagine this embedded into an AI chatbot that you might already have on your website or an additional widget on your platform. Um, you can get really customized with this. And you know, with many more customers expecting AI in their daily lives, using embedded analytics or our API to create a data product like this is a great way to upgrade your existing product much faster than you might be able to by building it from scratch.
Okay, so that's a quick intro to using AI in AMI and I hope it gave you some ideas for how you can open up access to AI for your own team. Of course, this is a lot more fun to play around with on your own data. So, please reach out to us. We would love to show you more.