News for hackers. Stuff that matters.
Re:Getting AI to write good SQL by stirfish on Saturday May 17, 2025 @09:40PM (#44018328)
One trick I found is to tell the llm that an llm wrote the code, whether it did or not. The machine doesn't want to hurt your feelings, but loves to tear apart code it thinks it might've wrote.
Re:Getting AI to write good SQL by jghn on Saturday May 17, 2025 @09:57PM (#44018387)
I like just responding with "are you sure?" continuously. at some point you'll find it gets stuck in a local minima/maxima, and start oscillating. Then I backtrack and look at where it wound up before that. Then I take that solution and go to a fresh session.
Re:Getting AI to write good SQL by calmoo on Sunday May 18, 2025 @07:31PM (#44025093)
Isn’t this sort of what the reasoning models are doing?
Re:Getting AI to write good SQL by jghn on Monday May 19, 2025 @10:46AM (#44030479)
Except they have no concept of what "right" is, whereas I do. Once it seems to gotten itself stuck in left field I go back a few iterations and see where it was.