
Dashboard summary AI (getting close)
Continuing work on dashboard AI summarization. We overhauled the UX to enable selectively including queries and making sure we aren't running extra queries either. All in service of…
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Okay. So, I'm mostly here to give a small progress update on uh document summarization or dashboard summaries. Uh when I was demoing this a couple weeks ago, uh it was via a new option up here. And really what that was doing is it was just hacking the existing text tile um and putting a new text tile on the dashboard.
um that was not going to work well with the scheduler. It also was not going to work well with hidden tiles if you wanted to hide the other charts in your dashboard and only have the summary. Um so the progress that I've uh made recently is to leverage a lot of the work that Richard did with the spreadsheet.
um where the spreadsheet will have these kind of these queries that it depends on that have data fed into it um and use that um that plumbing for a new kind of AI analysis tab. Um so you can add these summary tabs now with a more of a full page editor. provide your instructions um in a nice markdown editor here.
And then when you go back to the dashboard um you'll see it's going to generate um the summary for you. Give it a second. So the the benefits of this kind of change and how it's implemented is that if if we want to hide tiles or hide charts and only show this the AI analysis on the dashboard, this will let us do that.
It'll also unlock um scheduling as well. So, none of that's implemented yet, but by building on Richard spreadsheet foundation and treating it as like a first class um part of the document in the workbook, it's going to let us add all that functionality to these summarizations or these AI analysis. So, mostly just progress update there. That's cool.
Do do you think uh I mean I could see this where just replacing the AI summary viz entirely and not having a summary viz and just just doing this for a single chart is fine too. Yeah, totally. Um I mean yeah already because right now the AI summary viz actually runs the query right and then visualizes it whereas this is more of a dependency on another query.
I like this better rather than a copy. Um and so you yeah you can selectively kind of choose you know uh any number of queries that you want to depend on. So yeah and can you remind me too what's the constraint on like the data sets or like what what can get summarized? Uh anything that is in a topic like size-wise though like oh size-wise I think it's it's like several hundred thousand characters of data.
um a few hundred thousand tokens worth of data. Um yeah, that's a rough estimate, but if you have multiple charts selected, like let's say you have five charts selected, each one will get an equal size of of the context. So if one chart has 50,000 rows, it's not going to that's not going to take up the whole context of the summary.
It's going to try to split it evenly between each of the queries that you select. And does it basically summarize each of the sub query or each of the individual queries and then resummarizes the sort of aggregated thing or it it doesn't do summaries and then aggregate them. It um just passes in um what do you call it like um like it samples data basically to fill up the specific section of the the specific amount of the context window that each query has.
Just one summary I I think we've we we uh we can take it offline too. We should definitely uh think more about like the sampling data piece too because a summary of a sample data set is not valuable in in general. Like you don't don't want to throw it away. Excuse me. Yeah. We we almost want to pass it to like a sub querer that can then consume the sample in some way.
I don't know what the state of the art is on stuff like that, but yeah, it does feel like we need something. Can we like do uh some maybe statistical modeling of min, max, you know, standard deviation, you know, those sorts of things first and also do the sampling. Yeah. Yeah. And we like we've talked about taking like first end rows, last end rows, and some from the middle.
I think we have a bunch of ideas here. We just got to go figure out like what which ones make sense. Stephen was going to say something. So we take we take we basically split it. We if we need to truncate a data set 30% from the very beginning 30% from the very end and then 40% remaining in the middle we sample and so we say here's the beginning here's some samples from the middle here's the end.
So that that's the algorithm and it also gets totals as well right? Yeah. Gets totals. Yeah.