Lemmy did not warn that this was already posted days ago. Apologies. Here's another take https://pluralistic.net/2024/04/01/human-in-the-loop/#monkey-in-the-middle

other discussions
 

Several big businesses have published source code that incorporates a software package previously hallucinated by generative AI.

Not only that but someone, having spotted this reoccurring hallucination, had turned that made-up dependency into a real one, which was subsequently downloaded and installed thousands of times by developers as a result of the AI's bad advice, we've learned. If the package was laced with actual malware, rather than being a benign test, the results could have been disastrous.

 

Archive Link: https://web.archive.org/web/20240330224149/https://www.theregister.com/2024/03/28/ai_bots_hallucinate_software_packages/

This is fascinating. I've certainly seen AI hallucinating things like imaginary functions in gdscript. Admittedly, it does it a lot more with gpt3 than with gpt4 on a subscription, which is consistent with what 3 vs 4 has access to, but I'm sure the problems apply in a lot of other use cases that might have not had the benefit of more recent documentation.

I suppose it's not surprising that a number of larger entities have been falling prey to this, as they keep trying to inappropriately jam AI into their production lines where it's incapable of doing the job. Pretty clever vulnerability to find, though.

Ultimately, this is probably a good thing for human coders, imo. The more LLMs demonstrate that they're not effective without robust human intervention, the better.