3 ms·
Part of the skill in using LLMs is knowing when and how to use them, how to set the 'temperature' (how 'creative' it will be in its response), and how to write
by nomilk 2y ago
Part of the skill in using LLMs is knowing when and how to use them, how to set the 'temperature' (how 'creative' it will be in its response), and how to write a prompt that is less prone to illusory responses.
My eyes were opened one relaxing morning when sipping my coffee and pondering how to tidy up a database column by migrating from string to enum.
I asked ChatGPT for its thoughts and its response seemed perfunctory and on point, until at one particular line, tucked in the otherwise sensible migration file [1], it casually recommended deleting all users whose value for that attribute wasn't among those specified by the enum. I spat my coffee out and learned a very valuable lesson that morning!
[1] https://imgur.com/a/ejIdCH6 https://imgur.com/a/ejIdCH6
- qup 2y agoThat's one way to avoid bugs
- ncallaway 2y agoI’ve found it’s particularly useful at questions like “how do I do X idiomatically in Rust?” Idioms are, very conveniently, questions about what the most common shape of X among the broader community, so it tends to do quite well with that. I appreciate when it spits out example code, but I never copy/paste from it, I always rewrite anything myself to ensure I don’t slip up and accidentally… well, what it tried to sneak in to you… That’s quite the scary anecdote