Um, but yeah, we something that we've been doing to manage that though, is we've kind of been adopting this, like, uh, instead of just, we have this like massive system prompt for fairies, as you can imagine, all of it, like the schemas for the shapes and everything, something we've been doing with the more recent stuff is we just let it read the docs. And so it kind of like an, you know, RLM type thing where we, um, we say, Hey, make us make a square or whatever. And it basically can like query the docs for the schema for a square. And so it's only ever getting, you know, and then it queries the docs for asking, how do I create a shape? And so it's only we're allowing it to only get the information that it needs and add some latency of course. But as far as token usage, it's a massive help. That's good.
I think this, this next question is related, um, in terms of, of data you should. So are the LLMs using JSON schemas or XML div like output? The latter might be efficient. Do the large amount of HTML, LLMs, the large amount of HTML that LLMs have been trained on. Yeah, we're HTML is actually really interesting. We haven't tried that. The, um, the, we've actually, we've gone through a bunch of things. So teach the first thing I showed, which was the single shot that uses an HTML like thing for the actions that it outputs, um, for the agent starter and for fairies that's using JSON.
And then for the desktop app stuff, um, what that's actually doing is it's writing, uh, uh, like JavaScript against the editor and just running it locally in the editor instance. So if anyone's used code mode, uh, or, or similar tools, it's basically, instead of giving the agent a set of actions that we, you know, allow it to choose from, we're basically like, Hey, here's the entire TL draw editor SDK. Um, and here's the docs and you can just like write, write JavaScript that we'll evaluate in there. And you know, that's, it's, it's all running locally. So like security wise, it's, it's fine for the desktop app at least. But, but yeah, so that's another thing that is, you know, if you're, if you want it to make a thousand shapes before it would be a thousand tool calls or whatever, but this one is just, you know, a four loop. So you can, as far as token usage and stuff, you can get a lot of gains from that as well. I like that. That's a good strat.
Comments