
Omni AI improvements (filters + error handling)
Some work on error handling and filter construction for Omni's AI functions, continuing to make exploring simpler for end users
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
I can go next uh I have a few uh AI demos I think one of which Colin might appreciate about filters um let me share my screen um so there's been a few just general bugs with the AI around generating invalid queries and invalid filters that don't run or might crash the page and so this is on playground and I want to just give you an example of this it's like filter by last 15 hours and if it does what it's expected to do it's going to crash the page when it finishes loading great so it it tried to generate a filter it's invalid crash the page um and this is kind of a larger issue with the AI where we generate a query and
we just shove it in and don't really validate it at all and so this last couple days I've been working on validation for AI generated queries so now I'm on my local test Thunder salmon so let's run let's say like filter by last 15 hours and what it's going to end up doing is ideally generating a custom filter um for this value great and if I want to get even more creative with this filter I can say like filter by 30 minutes ago or five minutes and it's going to be able to generate another um custom filter for that range so these things are typically like pretty difficult to do in the UI um and now it's going to have some additional validation and checks
and make sure we generate the right filter and put that into the app um and then the other piece of this validation which I'm really excited about um is a little pre-recorded video because it's on a different branch um is using the uh query planner to validate the queries that we generate um to make sure that all the fields are valid filters everything like that so I have a little video here where you can see um generate a query with the field products count greater than five and I don't have products count in my topic here um previously this would just generate an invalid query and try to run it automatically um but now that we have validation from the query planner it's going to
come back and say hey you don't have that that field in your topic so we can't we can't generate a valid query with that but what you can do is you can click try again and it's going to take that error message that the AI spat out and then feed that back in and say next time I try to answer your question let me take into account the fact that I got an error um and then it'll it'll generate a valid query ideally the second time around so it'll try to fix the error that the query planner provided um and this is all in a larger kind of push to improve the the quality of AI responses as we end up um adding just starting
to add or migrate all the AI stuff into this nice little sidebar which I'm working on as well so instead of having this little bar up here we're going to move into more of a chat interface which Jared has been helping design um yeah so those are the the updates there um can we teach it to use like our compound filters and stuff like that like if it like I I'm just thinking through like some of the really hard stuff as like I want weekdays this year um and like I don't even know if our filters can do that maybe they can but like certainly there's grammar somewhere that can go say like pick these five days of the week and also filter for this
year um but I'm wondering sort of like how hard or easy if we did want to you know let someone do anything like that would be uh conceptually it seems very feasible um and a lot of this work is is hopefully laying the groundwork to be able to to make that easier to build um but those could be my famous last words