
AI session saving / state
We're doing the legwork to make all of your AI sessions stateful - quickly share an AI session with a coworker, or return to a previous analysis with all of the context.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
a couple um first off a real real PSA that really is not for very much of the public so maybe no one cares but otherwise no one will ever know about this added this thing for OATH with database OOTH that allows you to log out which is pretty much only useful for people initially setting up uh their connection But you know, whatever.
Here it is. If you have no connection and you mess up your configuration and you need to log out, it's on the top page. Um, the other another PSA is that we launched uh we've launched a gentic mode. So, this is a more public interesting PSA in the chat. So, just to prove it, I'm on uh Will's instance, which did not have the feature flag on before.
Now it does uh and if I and al this is al also going to show show something interesting um I discovered this about oils instance so I'm just going to ask this question localization all kinds of fun still happening in this instance um and if you'll notice the uh AI it doesn't have very much interesting to say about this.
That's because uh Will's got the AIC data feature off. Um so just to prove that it does work in this case, it doesn't work that well. So you really shouldn't turn that on. But you know, you should allow the AI to see your results, but if you really don't want to, there it is. It still will be able to iterate as much as it can.
Uh all right. So then the thing that I'm actually working on um is if we skip one uh this persisting AI chats you know so I hit AI assistant and rather than sending me to slash slash chat it actually sent me to slash chat slash EU ID and so I Um, and it gives me the count of users.
Um, but then if I go to the workbook, uh, the chat followed me because it, so it ended up in the URL here, uh, in the chat here. Uh then if I ask always asked California is my follow and then I realized it's actually really hard to type California. Uh so I started asking Texas. Um so now it's got Texas, right?
It showed it's changed the query and if I tab back over to here, I'll see that this this chat actually updated. This little state is what we do. So, we don't want it to like run the query when it loads the whole chat. Um, there's a bug. It lost that one. Whatever. Has this one. Um, and so it's got this state.
It says like, you know, you could hit explore. We may want to like rerun query button here. I don't know. This is still kind of a work in progress. What exactly to show here? Yeah, that's so that's that's still probably week out. We want to let uh agentic mode bake a little bit. Um Stephen is the idea that we can also deep link into queries in the session kind of allah leftnav history type stuff.
Uh we could there's no current capability to do that now but these all have IDs so you could imagine yeah we should just assume that people want that. Yeah. to to and would you restart the history at that point or just like Yeah, I don't know. I I don't know the answer, but I think people are going to want to be able to deep link into the session um and like scroll up and down by seeing the chat history.
Just all chatt we got a request for that just yesterday from a really large customer. Um, basically they're they're confused cuz they like logged away and then when they came back their entire full history that they wanted to show off was gone. Um, so that would be really really cool. Yeah. Um, Stephen question. I'm sorry. Go ahead.
Go. I was going to say like I I think we want almost like named groups of sessions. So this would be like exploring users and then underneath it you'd want to carry out the queries. So you definitely want that like classic. Yeah. I mean that's like the the state that's just like how it's done. That's exactly right.
Like it's just become a standard at this point. Yeah. Yeah. Um my question here is on not rerunning the query. What if it's cached? Can we just show it if it's already cached and then this we get some state here if it's like been past that period where you have to hit rerun. We don't or just always we don't really have we could try we could always rerun the most recent query.
That probably honestly that's probably the right thing to do because then the ones above the fold which 90% of the time you don't scroll up and look at stay in this state and this one runs. That's probably just what we should do. Yeah, I think Nate did some cool work on the dashboards that like won't run the queries until you scroll them into view too.
So we could look at something like that maybe. the the weird weirdness is that summarization can be referencing old data. So right there's actually a that was no Jamie's right. There was actually a principled reason for it which is that like yeah so if you had the same cache you need like a snapshot almost of yeah we could like we have the we deliberately throw the data away to not bloat the chat history potentially.
Um it so yeah I don't know we we could also see we could also look like this and just see how much like especially if we got a rerun query button here like does this actually bother people that much or do they mostly just want to Yeah. Yeah. Can you talk about Oh sorry Jamie go for it.
I was just going to say too, you can imagine even that we basically have a summarization rerun kind of a thing too or like some sort of state that sort of indicates hey this is from previous result set or something like it's it it becomes more complicated uh for for sure because it's not a static thing but uh but like I'm sure we can kind of play with UI.
Uh, I was going to say, Stephen, can you just talk about the URL sharing bit and like who can see what or who can't see what? I was even going to demo it and then realized I hadn't tested that part and it's been click. Okay. Uh, but at least you are certainly URL sharing does work. So, here I am as my other user and I've got this URL.
It's a different chat. I just happen to have asked the exact same questions. Um, and I can load it as this user and see it. What is supposed to happen as an admin user is then I'm supposed to say um I'm supposed to add to the chat and it's supposed to fork off a new chat so I don't accidentally mess with uh personal Steven's chat.
Um but it doesn't work right now. Um and if you're not an admin like if so if I try to share that because like the thing we were uh I guess the background here that we have to figure out or are trying to solve for is summary like queries are obviously very well locked behind permissions and if we rerun queries and if you don't have access to certain rows of data like you're see them but summaries is just text.
So if you have summaries in your chat and that summary is exposing rows or pieces of data that you you wouldn't this other user wouldn't have been able to see it's like we have to handle that. Um so I can't remember Stephen if you can just fill us in on like where do we leave off on for now we're just saying link sharing with or admins only.
What if it's yours? Like can the user go back their own history? Yeah. Yeah. Yeah. You can go through your own you can see your own links. Or admins can see your links. Um, that's it for now. We'll we'll pro we'll certainly then endeavor to open it up more like querers who have access to everything on the restricted queries have access to all the topics that have be used in the chat, but we're just that's later.
Um, it's also worth mentioning that we treat the AI responses like customer data. Um, and so they're actually the way this thing is persisted, the whole the these little bits are not actually persistent with the rest of the stuff. So, um, the chat is structurally persistent in the database with what you said and then the AI responses are turned into little IDs and stuffed in.
And so when you loads this, it it pulls a thing out and then rehydrates it and the Reddus uh cache expires after 30 days. So basically like at after a certain point of the chat, if you were to load it, uh your responses would be there, but the 30-day old AI responses would would disappear. Nice. And uh now that we're going to have URL persisted stuff there, can we include that URL in our like analytics data next to the prompt or something about or like that session so that uh from analytics we can deep link to rerun what the user was looking at.
Yeah, I mean I think we already tracked the chat. This is just the chat session ID uh which we already tracked. So we can either explicitly track the URL or Okay, got it. So, we should be able to from now chat session ID reconstruct URL to actually go open that up, which is a big unlock for folks that are trying to like look through session logs and actually now see the responses according to those prompts.
Cool.