AI Vis Validation

Dan Mosora · Friday Demos · April 10, 2026 · 4:29

We're working on making the visualizations built with AI higher quality and more reliable.

Transcript

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

  1. Hello. I got a couple things in the AI viz generation improvement space here. Uh first one calling structural validation. So there's a feedback mechanism now on the viz generation flow where we have a set of explicit rules that match against the actual configuration being generated. And those will either return a critical failure to get the AI some information to not do it and try again or will just log a warning in like the less critical cases that we just want to kind of monitor and see.

  2. Um sort of a little bit of info on what that means. Kind of like obvious stuff like um missing axes or the wrong kind of axis or things like that. Um So uh like pretty pretty obvious issues. For the actual demo bit see if this works. It should. Um so if I tell it to explicitly show me a bar chart but not assigning a field to the x-axis, it'll try.

  3. It is AI and it will try to do it. Um and it should now get some feedback. So we have it going through the loops here since this is unable to be uh satisfied it will go and retry two two times which is like 5 to 15 seconds each time or so. And then eventually it'll get to this.

  4. Uh whereas before it would generate you a bar chart with like one stacked column and just like doesn't really look that good. Um so that's that one. That's out. That's live. Um and uh I'm monitoring some logs. Mostly getting doesn't happen very often. Um so we're getting warnings like 70 warnings and then here's my I explicitly triggered the critical failure in prod once just to make sure that it was actually doing what it needed to do.

  5. Um so keeping a watch on that. And we'll see how that goes. The other one was as I was testing it I got something like this. If you've seen this error show up in your chat at some point. Um it had enough of a uh uh information so I could track it down so I thought that would be something cool to demo here and I have a prompt.

  6. The issue was it generated a bad config and the config was giving a um an output that uh had all all the different chart types in it so like the error just had like way too much information and the AI didn't know what to do with it. Um so I kind of simplified that uh feedback and gave some more actionable stuff so hopefully we should see fewer um something went wrongs in the viz generation.

  7. Um and now it actually gets some legitimate information about like the field that's having a problem and what's missing so we'll retry. Uh and that's that's all I have there. And what's the what's the rationale that's behind having it retry when it gets the critical validation? Is it just that like it's got it's not going to retry the same thing obviously it's going to try to And in the case where you showed it like you gave it such an explicit prompt that it did retry the same thing.

  8. Yeah so it gets it gets the feedback from the validation failure of what to change but the user prompt is like such a strong signal that it it won't override that but in the cases where it's just sort of like a a less explicit path to the to the issue it'll it'll take in the feedback from the failure and uh What's um what's your philosophy or thinking in terms of like how much of these validation rules ought to be described in the like tool description or system prompt itself?

  9. Like where do we draw the line there? I mean I think the validation's good regardless, but I'm just kind of curious. Mostly just like obvious structural things for the like the explicit rules and and leave the rest to kind of like style context system like that kind of that kind of guidance just to to be not too percent.

  10. Cool. Nice.