
Smart SQL and IDE autocomplete
More work on our intelligent autocomplete for both SQL and the IDE, allowing psuedo instant field compilation from even comments. Show a nice example from the SQL block of a comment that…
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
I could uh redeo the co-pilot type stuff it's um I made some improvements this week since I only had an hour last week um so it's got a little bit more context than it's moving a little faster now um so like if we're in here and it'll just you know it knows how to suggest measures a little bit better it is actually suggesting for the most part proper stuff um I don't have like a really killer demo for it or anything but um the other interesting thing I realized is that if you're editing SQL and you're just throwing a comment like uh um like age gender and Order items count limit 10 or something like you don't really know how to write SQL but you
know basically what you want that it should be able to to just um you know guess at what you need um and give you a query so um it has some you can kind of use the comments like a normal co-pilot um does you just throw a comment to what you kind of want and it'll fill it in um Richard how does it know our syntax are we feeding it like our model structure or is it literally just learning from the file that it's in so last week it was just learning from the file that it was in um this week uh I've thrown a bunch of documentation at it and I have some Snippets um that are in there and then uh like it
it's not it's not going to be perfect but then also I upgraded the model to a more recent model so hopefully like it's trained on more of our documentation since the models from only a couple months ago um and when you say docs do you mean uh developer doc or do you mean our public dock uh I mostly pulled Snippets from our public doc because unfortunately it doesn't have access to the open internet so I had to just like copy Snippets of our docs into some prompts um but it seems to work pretty well yeah yeah our docs are a little bit behind in terms of arguments but hopefully not after two weeks or uh if I wasn't um being lazy we could probably write
something more you know specific catered to what this needs to know anyway like um but uh yeah and then for so that's so we're basically when when you make in the yaml editor it gets all that plus what's behind and in front of your cursor um and then if you're in the SQL editor I'm basically passing the uh schema in in order for it to know what it has available um which I can totally see people not wanting but um you know I think that we would just need to make make this optional does it right uh on the sequel editor Richard is it work for both like the like the dialect SQL and for Omni SQL like does it prefer to write just dialect
SQL in there yeah I it knows what dialect it's writing right now but um I haven't fed in the Omni operators yet um I just figured it was going to make things a little bit more sketchy that's really cool should we just put a little like AI icon at the top of the SQL thing that basically stubs out the comment feiz it and we'll play with it a bit first yeah all right I thought we were moving away from encouraging the on The Operators we are for dialog SQL tabs I was more just curious like if you happen to start a UI query and then go into like editing that UI CLE like editing it in the SQL editor what it would do because that
has all the omn syn in it yeah I'm not sure I mean it would have access to your SQL query so it would know at least that we're doing weird stuff and I I don't know how well it would handle that play with it um one quick point of feedback is and I this is like for VSS code too so not not unique to your implementation Richard but it'd be really nice if there was some indicator that like AI was working because that I experienced this a lot coding as well where it's like unclear if anything's happening in the background um yeah that seems i' I've had the same thought especially because like I just I just changed to a faster model but before that
it was like very very slow and it is it is kind of like am I waiting for AI or did it not have a good suggestion cuz I you know instructed it not to give suggestions if it doesn't have anything smart to say um so yeah I think that would be nice I just need like a cool Sparkle icon that animates just Blobby bouncing in the oh yeah that'd be good Jared you're on you yeah let me know