Click to Skip Ad
Closing in...

Leaked code reveals Apple Intelligence pre-prompt instructions to prevent hallucinations

Published Aug 6th, 2024 7:58AM EDT
Apple Intelligence running on M4 iPad Pro
Image: José Adorno for BGR

If you buy through a BGR link, we may earn an affiliate commission, helping support our expert product labs.

It’s been a week since developers started trying Apple Intelligence with iOS 18.1, iPadOS 18.1, and macOS Sequoia 15.1. While not every feature is already available, there’s a lot of anticipation for Apple’s AI capabilities, as analysts expect this to be the company’s biggest sales driver for the next few years.

Apple Intelligence consists of LLMs that can be processed on-device and using Private Cloud Computing. While tests are limited, it’s interesting to compare with other AIs. In the past, BGR covered stories of OpenAI’s ChatGPT, Google’s Gemini, and Microsoft’s AI, hallucinating and giving completely wrong answers.

To avoid that, Apple has added pre-prompt instructions leaked on macOS 15.1 code. A Reddit thread reveals some of Apple Intelligence’s instructions to give the best answer possible. Of course, these prompt instructions are too funny, but they work.

One of the prompts tells Apple Intelligence that it’s a “helpful mail assistant which can help identify relevant questions from a given mail and a short reply snippet.” The relevant questions need to be “explicitly asked in the mail” to avoid “hallucination in drafting the response.”

With that, questions need to be “no more than 8 words,” and the answers should be short, “around 2 words.”

For Writing Tools, Apple offers a different prompt for the rewrite feature. “You’re an assistant which helps the user respond to their mail. Please draft a concise and natural reply based on the provided reply snippet (…) Do not hallucinate. Do not make up factual information. Preserve the input mail tone.”

The Reddit thread also reveals some limitations Apple adds to its Intelligence when creating photo memories: “Do not write a story that is religious, political, harmful, violent, sexual, filthy or in any way negative, sad, or provocative.”

José Adorno Tech News Reporter

José is a Tech News Reporter at BGR. He has previously covered Apple and iPhone news for 9to5Mac, and was a producer and web editor for Latin America broadcaster TV Globo. He is based out of Brazil.