Comment by andai

22 days ago

A few years ago, after ChatGPT but before agentic, I was asking AI for help with some projects. It kept recommending really good, well designed APIs, and gave me code snippets for them.

One small issue: they didn't exist! It had just hallucinated them!

Which was a real shame, since they were much nicer than the actual stuff I ended up finding.

I just realized, thinking about this now, that these days (and perhaps even back then), I could just say "ok now take this code and build the missing library so it actually works!"

Heh I remember that well. It got me super excited quite a few times until I tried to find the actual library :-D

  • Exactly. In almost all of those cases, the hallucinated functions absolutely should have been present in the API, and any reasonable developer would have expected them to be.

    That was, in retrospect, an important bellwether.