Discussion Ask HN: What ChatGPT prompt do you use to avoid code-writing hallucinations? I use ChatGPT to write tutorials for a Python.I often find myself debugging great-looking code that makes up methods or functions.This especially true when instructed to use somewhat niche libraries.Is there a specific prompt technique you use to avoid hallucinations when writing code? 5 points strimp099 2 years ago 8 comments
I often find myself debugging great-looking code that makes up methods or functions.
This especially true when instructed to use somewhat niche libraries.
Is there a specific prompt technique you use to avoid hallucinations when writing code?