Field AI context (with helpers to auto-build!)

Jamie Davidson · Friday Demos · March 28, 2025 · 9:46

A huge step forward in enriching Omni models for AI. We now have field specific AI context, and helpers for value generation. The net is huge step forwards in AI quality across any use…

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. Uh I can demo a couple things too. So all right I think that's live. So I've got um a few AI AI features as well. So to sort of set the stage um you know the semantic model is a great way to constrain sort of the input and out output space but it's hard if uh we don't have context for specific data values.

  2. So, um, for example, show me revenue by month, uh, for Levis's. Um, you know, I'm asking for your revenue for a specific brand for, you know, fake e-commerce store. And it does, you know, I guess pivoted month and revenue, but returns no results because Levis's the brand is is, you know, maybe correctly picked the brand the brand, but uh, you know, not the right right data value.

  3. Um, so we've got a few new fields uh that are present inside the model and like a little helper as well to generate summary values for specific fields and these are pieces of metadata that can be applied to uh to our semantic model. So in this case I'm going to generate the you know this metadata here. We've also added ability to express synonyms and AI context now on the field level as well to show you.

  4. I'm going to save save that. Now, let's just do the exact same query again uh and see how the the AI does. Here we go. We've got Levis's and it correctly grabs the the right the right name because it it sort of saw the context. And just to show you what the model looks like here, we've got now these these new fields, the sample values, and we've also got another property that's all values in the case where uh there's only, you know, a handful of of enumerated values to to be able to do.

  5. This is all provided as context to the LLM. Um, one one other thing, uh, you know, we've we've started to see a pattern where folks will do things like apply tags to fields and then create an extension of a topic to be able to go and and make it so that uh that it's basically, you know, a curated set to an LLM.

  6. Um, we've also now got a uh AI fields property inside the the topic which is going to behave just like regular fields do but but yeah, this is this is live and um in in the product now it'll behave exactly like regular fields uh will do but won't necessitate you know a uh an extension or another topic to to be able to go in and play with.

  7. Um and then the last thing I've been sort of working on too this is not before you leave that one. Um, it will presumably be possible for us to run like an asynchronous process that does that sort of guessing or I mean not even guessing it's running like real queries. Yeah. across your entire you know warehouse at some point right yeah definitely so for things like we this is sort of the next phase I think what we'll want to do is do things like uh generate sample values or uh all values to for maybe it's for tagged fields maybe it's for every field inside it you know where where we do things like uh you know generate summary cubes or sort of descriptive stats uh

  8. sort of the exploratory pieces too and you can even imagine that being something that's almost like it's it's like our refresh schema workflow where we're tied to a data warehouse. You could have an asynchronous process that effectively, you know, this could this is actually very literally this is in a workbook model today. We could have we could have it be a branch that's you know applying new you know new deltas uh to existing values to it could be something where there's workflow built on as well.

  9. like we won't we without first make it possible to enumerate these things really we we've seen a bunch of customers uh put things in those AI contexts and in descriptions where you say like for example these values you know the country is a threedigit code or something like that that we could basically have a little bit more structure and also automate the process to provide that context you know to to these LLMs giving it you know they're really good at lookups they're really good at sort of simple simple, you know, sort of com combinations of of fields and picking out the right fields, doing things like, you know, I like Levis's I I typed incorrectly without like the, you know, the dash and without the

  10. capitalization. It's good at generalizing and sort of uh, you know, enabling that type to to reference things. Um, it's not so good at knowing the exactly what it should be generalizing. So, we want to be able to provide some of that context. Um, the the last thing I was Sorry, real quick. Uh, I I I did not understand what the AI fields property did.

  11. You said it's the same as fields. Oh, AI fields is it basically it it limits it exclusively for the AI context. So basically what what a fields property would do on topics where you're going to limit it to uh you know the field picker effectively the AI fields will limit the context provided to the AI. So like think of it as a new Yeah.

  12. Um, yeah. I feel like the way we're enabling people to manipulate the context at this point is complicated enough that like we need like a context debugger or something. Oh, Nate, this is so good. I love it that. So, actually uh I I I actually it was inspired very literally too by your your uh debugger in the viz uh stuff.

  13. So, I've got I've got two two things. Oh, great. Uh I so the first one I'm not a plant. I'm not a plant. I know this so good. Uh so the uh the first feature I'll do is another model property. Uh which you know the we as part of our um context to LLMs we show them what the shape of the queries look like.

  14. So like how we generate our semantic queries things like filters per period that are like a little bit non-standard you know sort of the special special sauce that that uh we've we've built into the the product but we have to provide context for um you know we want to also provide uh sort of domain specific context for given topics.

  15. So like understanding of uh you know this this e-commerce store or the e-commerce you know the the inventory manager use case you know for it um to a sort of representative queries that sort of may be something that we want and so the the piece that I've I've built in is a save query to topic I just threw it in this model this is not live so very much open to feedback and like honestly I'm open to feedback on all the stuff please um but this save query to topic basically is a it's a new way of gener generating um sample queries assigned to a topic that are meant to be representative.

  16. So this one I guess is like uh Levis's revenue. I I don't I don't even know. Um you can have an optional description and AI context too. You can imagine that we put these things in the UI. You can imagine them also being used in in sort of the the model. So just to show people what this will look like.

  17. Uh actually I'll I'll go back to the model real quick. you know, we've got this new sample query with I guess I you can tell I I probably should remove the empty strings uh that are op optional values. Uh that's a that's a work work in progress. Um but the the intent is basically now providing this in the prompts that we we generate to the AI.

  18. So and this is going to lead lead to the amazing uh plant too. So I've got a new feature that uh basically is an AI debugger. Right now it's only available to uh basically if we're in dev mode and it'll be feature flag explicitly too so you can enumerate in the um the environment. I think we also sort of to Nate's meta point, we need to make it so it's possible to uh show you know the customers what the context is that they're providing and what you because we're going to be dynamically generating the context now too you know dependent on the topic or dependent on like the the you know the values and the metadata and stuff too.

  19. So giving it uh you know sort of better ability. But just to show you uh and actually I I'll show you just it's not a super useful um thing but you can kind of see uh the messages passed back. Uh let's see. I'll just say show me users in the UK. Um let's see if this this works.

  20. Uh and I broke something. So shoot. I'm sorry. I I broke something. I can't actually show you the the messages, too. But we I I want to get the debugger the debugger going to I'm going to ping you without a doubt. Uh because I I would love I I I want to make sure we sort of showcase the relevant metadata, but also not like some of the like we have to break apart how we're training LLMs to, you know, contextual stuff that's dependent on the data model and then like system level stuff that is like omni semantic queries and sort of figuring out how we break that apart is going to be uh you know important too.

  21. Um just one more um parameter that may be helpful for context is on the relationship entries too. You know, typically joins represent like a verb relationship between like a subject and an object. Um so it might be just interesting to provide that as extra context. Love that idea. That's a great call.