{"id":44624,"date":"2024-08-23T13:43:02","date_gmt":"2024-08-23T17:43:02","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=44624"},"modified":"2024-08-23T13:43:02","modified_gmt":"2024-08-23T17:43:02","slug":"apples-hidden-ai-prompts","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2024\/08\/23\/apples-hidden-ai-prompts\/","title":{"rendered":"Apple&rsquo;s Hidden AI Prompts"},"content":{"rendered":"<p><a href=\"https:\/\/www.macrumors.com\/2024\/08\/06\/apples-hidden-ai-prompts-discovered-in-macos-beta\/\">Hartley Charlton<\/a>:<\/p>\n<blockquote cite=\"https:\/\/www.macrumors.com\/2024\/08\/06\/apples-hidden-ai-prompts-discovered-in-macos-beta\/\"><p>A <a href=\"https:\/\/www.reddit.com\/r\/MacOSBeta\/comments\/1ehivcp\/macos_151_beta_1_apple_intelligence_backend\/lfzi379\/\">Reddit user discovered<\/a> the pre-prompt instructions embedded in Apple&rsquo;s developer beta for macOS 15.1, offering a rare glimpse into the backend of Apple&rsquo;s AI features. They provide specific guidelines for various Apple Intelligence functionalities, such as the Smart Reply feature in Apple Mail and the Memories feature in Apple Photos. The prompts are intended to prevent the AI from generating false information, a phenomenon known as hallucination, and ensure the content produced is appropriate and user-friendly.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/arstechnica.com\/gadgets\/2024\/08\/do-not-hallucinate-testers-find-prompts-meant-to-keep-apple-intelligence-on-the-rails\/\">Andrew Cunningham<\/a>:<\/p>\n<blockquote cite=\"https:\/\/arstechnica.com\/gadgets\/2024\/08\/do-not-hallucinate-testers-find-prompts-meant-to-keep-apple-intelligence-on-the-rails\/\">\n<p>The files in question are stored in the <tt>\/System\/Library\/AssetsV2\/com_apple_MobileAsset_UAF_FM_GenerativeModels\/purpose_auto<\/tt> folder on Macs running the macOS Sequoia 15.1 beta that have also opted into the Apple Intelligence beta. That folder contains 29 <tt>metadata.json<\/tt> files, several of which include a few sentences of what appear to be plain-English <a href=\"https:\/\/promptengineering.org\/system-prompts-in-large-language-models\/\">system prompts<\/a> to set behavior for an AI chatbot powered by a large-language model (LLM).<\/p>\n<\/blockquote>\n\n<p><a href=\"https:\/\/www.theverge.com\/2024\/8\/5\/24213861\/apple-intelligence-instructions-macos-15-1-sequoia-beta\">Wes Davis<\/a> (<a href=\"https:\/\/mastodon.social\/@verge\/112911935170425112\">Mastodon<\/a>):<\/p>\n<blockquote cite=\"https:\/\/www.theverge.com\/2024\/8\/5\/24213861\/apple-intelligence-instructions-macos-15-1-sequoia-beta\">\n<p>They show up as prompts that precede anything you say to a chatbot by default, and we&rsquo;ve seen them uncovered for AI tools like <a href=\"https:\/\/www.theverge.com\/23599441\/microsoft-bing-ai-sydney-secret-rules\">Microsoft Bing<\/a> and <a href=\"https:\/\/x.com\/PhotoGarrido\/status\/1710035960514175322?s=20\">DALL-E<\/a> before. Now a member of the macOS 15.1 beta subreddit posted that they&rsquo;d <a href=\"https:\/\/www.reddit.com\/r\/MacOSBeta\/comments\/1ehivcp\/macos_151_beta_1_apple_intelligence_backend\/\">discovered the files containing those backend prompts<\/a>. You can&rsquo;t alter any of the files, but they do give an early hint at how the sausage is made.<\/p>\n<\/blockquote>\n\n<p><a href=\"https:\/\/pxlnv.com\/linklog\/apple-intelligence-instructions\/\">Nick Heer<\/a>:<\/p>\n<blockquote cite=\"https:\/\/pxlnv.com\/linklog\/apple-intelligence-instructions\/\">\n<p>But, assuming &mdash; quite fairly, I might add &mdash; that these instructions are what underpins features like message summaries and custom Memories in Photos, it is kind of interesting to see them written in plain English. They advise the model to &ldquo;only output valid [JSON] and nothing else&rdquo;, and warn it &ldquo;do not hallucinate&rdquo; and &ldquo;do not make up factual information&rdquo;.<\/p>\n<\/blockquote>\n\n<p><a href=\"https:\/\/mas.to\/@carnage4life\/112912727946160508\">Dare Obasanjo<\/a>:<\/p>\n<blockquote cite=\"https:\/\/mas.to\/@carnage4life\/112912727946160508\">\n<p>I find it fascinating that what were science fiction tropes from Asimov&rsquo;s &ldquo;I, Robot&rdquo; series of books are now real.<\/p>\n<p>Telling AI to perform tasks and not make stuff up is the new programming.<\/p>\n<\/blockquote>\n\n<p><a href=\"https:\/\/mastodon.social\/@stroughtonsmith\/112911947311249223\">Steve Troughton-Smith<\/a>:<\/p>\n<blockquote cite=\"https:\/\/mastodon.social\/@stroughtonsmith\/112911947311249223\"><p>Apple&rsquo;s system prompts for Apple-Intelligence-backed features show that the company&rsquo;s &lsquo;special sauce&rsquo; is just a carefully-crafted paragraph of text, hacked together just like everybody else is doing. Can&rsquo;t wait to see the &lsquo;you are Siri&rsquo; system prompt.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/mastodon.social\/@pasavito@twit.social\/112912156595106945\">Tony West<\/a>:<\/p>\n<blockquote cite=\"https:\/\/mastodon.social\/@pasavito@twit.social\/112912156595106945\"><p>You are Siri. On HomePod devices, you pop up with &ldquo;uhuh?&rdquo; randomly. You start playing music without warning because you thought you heard someone ask for it. If someone asks you about a sports event on today, give them a detailed answer about the event from (perform random number calculation) years ago, but tell them you can&rsquo;t display information on the current event.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/mastodon.social\/@stroughtonsmith\/112915828290262472\">Steve Troughton-Smith<\/a>:<\/p>\n<blockquote cite=\"https:\/\/mastodon.social\/@stroughtonsmith\/112915828290262472\"><p>I guess this isn&rsquo;t common knowledge, based on the reaction to the Apple Intelligence system prompts, but I read months ago that it was benchmarked that using &lsquo;please&rsquo; and &lsquo;thank you&rsquo; and telling an LLM not to hallucinate &lsquo;improves results&rsquo;. If that kind of language has made it into Apple&rsquo;s own prompts, it&rsquo;s likely not for no reason.<\/p><p>And no, telling it not to hallucinate isn&rsquo;t going to stop it hallucinating. But if it on average improves a meaningful % of results, it&rsquo;s worth including. This is how prompt engineering works.<\/p><\/blockquote>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2024\/08\/12\/apple-intelligence-foundation-language-models\/\">Apple Intelligence Foundation Language Models<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2024\/08\/05\/beta-for-apple-intelligence-in-apple-mail\/\">Beta for Apple Intelligence in Apple Mail<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2024\/07\/08\/apple-intelligence-for-siri-in-spring-2025\/\">Apple Intelligence for Siri in Spring 2025<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2024\/06\/10\/apple-intelligence-announced\/\">Apple Intelligence Announced<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2024\/03\/28\/giving-up-on-siri-and-homepod\/\">Giving Up on Siri and HomePod<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2024\/03\/28\/siri-regressions-in-ios-17\/\">Siri Regressions in iOS 17<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Hartley Charlton: A Reddit user discovered the pre-prompt instructions embedded in Apple&rsquo;s developer beta for macOS 15.1, offering a rare glimpse into the backend of Apple&rsquo;s AI features. They provide specific guidelines for various Apple Intelligence functionalities, such as the Smart Reply feature in Apple Mail and the Memories feature in Apple Photos. The prompts [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2024-08-23T17:43:06Z","apple_news_api_id":"c170e466-8279-44a4-8afb-05e6ce4d7e71","apple_news_api_modified_at":"2024-08-23T17:43:06Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/AwXDkZoJ5RKSK-wXmzk1-cQ","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[2602,126,1351,31,2586,30,2598,927,247,2630],"class_list":["post-44624","post","type-post","status-publish","format-standard","hentry","category-technology","tag-apple-intelligence","tag-applemail","tag-artificial-intelligence","tag-ios","tag-ios-18","tag-mac","tag-macos-15-sequoia","tag-photos-app","tag-siri","tag-writing-tools"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/44624","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=44624"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/44624\/revisions"}],"predecessor-version":[{"id":44625,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/44624\/revisions\/44625"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=44624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=44624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=44624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}