AI Mode

Gustav Staprans · Friday Demos · April 25, 2025 · 6:34

We've been working on a new UI to simplify the natural language experience. Query history, charting, and fast linking to the workbook.

Transcript

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

  1. All right, I think that I am next. Um, so some of you may know we are trying to make a full page um, AI chat experience and I wanted to show off um, what's now in the product today behind the feature flag and also some stuff that'll imminently be landing. So, um, this is on the playground where I've turned the feature flag on to get to the experience.

  2. You just add chat to the URL. Um, it's going to land you here with the same kind of input box, but you'll see down here you can pick connections, uh, models, and then topics. So, right now, it's going to, um, show the NBA topic by default. So, let's just drop, um, an easy question in here. And the kind of the the new kind of core feature that I want to show off today is that we will actually visualize the query for you in line now whereas the workbook would not do that.

  3. So you know you'll be able to ask a question and then see all the data um that backs that result. If we want to change topics um you know eventually that'll be done automatically but um you can uh do it change models and topics down here. So let's you know look at the bike share topics. Let's ask the bike share what we should what we should ask it.

  4. Okay. So it's it's saying that it's about bike share. Maybe a little bit confusing. It's not sure it can answer the question, but it does give us some stuff that we can actually ask next. So let's let's ask how many bike trips were taken. It's going to go and generate a query for us. And you'll see it will kind of dynamically pick the viz that it thinks be is best based on the question and the data that you asked.

  5. And let's do one more example. So, let's break this out by let's just get to break out the the bike trip data by week and see what it does. And boom. So, now it gave us kind of a nicely uh formatted uh you know line chart here. And what's really nice about our auto viz is that it tends to you know pick good ranges for the axes.

  6. So, it's you know you can actually see the data you're looking at. it gives us all the nice kind of uh tool tips and everything else. There's some simple resizing you can do if you want to as as well for whatever reason. So that's kind of now in the product today and I'd love people to play around with um the auto viz element of this.

  7. Um and actually there's one more piece to I'll show it off in the next demo here. So this is my local um instance and we're going to ask a a question of our events table. How many events per week for the past year and divide the number of events by 17. So there's a query here and a calculation here.

  8. And let's see how this how this does. And local is a bit slower than in production for the AI to actually work. So should be faster in production. So, it's going to generate a query. Then, we're should get some feedback saying it's going to um generate a calculation as well. Okay. So, here it looks like it's it's taking its time.

  9. It's having a hard time creating the the query. So, it's doing the retry logic that Steven implemented. And then here, it's going to tell you what it's going to do. And then down at the bottom, it just briefly said, I'm going to generate a calculation. Generate a calculation. Now, it's going to run the query and get the viz.

  10. Um, and this this layer, this kind of multi-layered approach of getting a query, generating a calc, and visualizing it is all in the product today. The stuff that's new on my local branch um is some work that Jaime's done that lets you toggle between the results in the chart. So maybe you you want to see kind of what's going on underneath the hood here.

  11. Um, you can look at the actual data in a table view. So you can see events counts, event counts divided by 17, which is the calc that the AI created. And then it also shows the filters up here as well. Um, so we're trying to slowly build this out to give all the the data and information people might want now that they can actually run and visualize queries inside of the AI um, and don't have to go to the workbook to actually see the results of the questions they're asking.

  12. Yeah. So that's the demo for today. Um, I would encourage everyone who's interested to go and poke at this um, slash chat page and um, you know, ask it your tough questions. Awesome. That's an insanely great demo. Uh, I was curious if there are any plans to externalize the APIs uh, associated with the visualization. it's top of mind.

  13. Um there is a little bit of complexity on the engineering side to get that functionality into the API, but um yes, I would say probably not in the next week or two weeks as I'm going to be out for uh a little while, but um yeah, it's top of mind. Yeah, agree. That's super cool. Um would we be able to like click a like open this in workbook from the AI chat if you wanted to say, "Oh, that's really helpful.

  14. I want to go customize it, bring it into a dashboard, things like that. Yeah, that's the plan. It's not in the app um as what's deployed today, but it's something we want to do currently. Nice. Thanks. Actually, I got a random question, too. The the Steve, this might be for you, but the would it be possible to create the retry logic or sort of the, you know, the error handling and and whatnot in the uh API?

  15. Uh and is or is that is that there today? Actually, I don't even know. No, the API has fallen far behind. But yes, Houston and I have been talking about a plan to put the logic in a place where the API and the front end can sort of share it. Thanks.