Deep Learning

What Are AI Hallucinations and How Do You Prevent Them?

AI chatbots such as ChatGPT generate text by predicting the word sequences that best fit a query, without real reasoning, so they sometimes produce confident but false statements. ChatGPT has guardrails that make it decline questions about a made-up person such as "King Renoit", whereas the less restricted GPT playground, which many GPT-based tools resemble, may invent a detailed biography for him.

The article collects six prompt-engineering tactics for reducing hallucinations: limit the possible outcomes (for example, ask for yes/no answers or a choice from a fixed list); ground the prompt in your own relevant data and sources; provide a data template, such as a table, for the model to follow when calculating; give the AI a specific role and tell it to admit when it does not know; state what you want and what you do not want in the answer; and experiment with the temperature setting, since higher values make outputs more random. It concludes that even with better prompts, every AI output still needs to be checked.

The Arabic article is a translation of an English article. Read the original: What are AI hallucinations—and how do you prevent them? (Zapier).

Leave a comment

Your email address will not be published. Required fields are marked *