4 ms·
How do you deal with LLM hallucinating api parameter or endpoints or using imaginary library?
by an_guy 2y ago
How do you deal with LLM hallucinating api parameter or endpoints or using imaginary library?
- theshrike79 2y agoThen I write it myself or tell it to correct itself. They tend to be confidently incorrect in many cases, but especially with the online ones you can tell them that "this bit is bullshit" and they'll try again with a different lib. Works for common stuff, not so much for highly specialised things. An LLM can't know something it hasn't been "taught".
- ErikBjare 2y agoYou notice it and tell it what to use instead