It isn't possible to do what I wanted with the proposed command, but the hallucination helped me to Google a method that worked.
In my experience the only more or less reliable way to avoid hallucinations is to provide the right amount of quality information in the prompt and make sure the LLM uses that.
Now Google's Bard/Gemini on the other hand quite frequently makes up stuff. So for now I'm sticking to GPT 4 via Chatgpt plus subscription to augment my daily dev work.
So, to repeat the question:
Do you just run the command and hope? Or do you double-check using the manpage that it isn't going to do something drastic and unexpected?
- Make edits to a Latex file which would have taken me at least an hour longer to do.
- Reverse-compile a PDF into Latex from a mere copy-paste.
- Translate a travel diary from French into English.
- Ask conceptual questions in difficult areas of mathematics. It's unreliable but it often has a "germ" of an idea. This is backed up by the Fields medalist Terence Tao.
- Helped me tutor someone by giving model solutions to homework and exam problems when I wasn't sure.
- Write a browser extension to do certain content blocking/censoring that none of the programs on my computer could do. I've never written a browser extension before, and this would have taken me a day longer.
- Give me feedback on emails I wrote.
- Helped me deal with a medical emergency.
I've also used an LLM for some of the elements on that list, though it seems like I should use them more.