{"id":460,"date":"2024-02-16T00:41:20","date_gmt":"2024-02-16T00:41:20","guid":{"rendered":"https:\/\/davideriknelson.com\/bw\/?p=460"},"modified":"2024-02-25T09:36:55","modified_gmt":"2024-02-25T14:36:55","slug":"how-to-use-a-i-prompt-engineering-for-teachers","status":"publish","type":"post","link":"https:\/\/davideriknelson.com\/bw\/how-to-use-a-i-prompt-engineering-for-teachers\/","title":{"rendered":"How to Use A.I.: Prompt Engineering for Teachers"},"content":{"rendered":"\n<p>There are a lot of reasonable ethical concerns about A.I. in the classroom. So let\u2019s focus on AI <em>outside<\/em> of the classroom. There are so many tasks that you, as a teacher, are asked to do that have little to do with teaching. A.I. can help you spend less time and effort on these, leaving you more time to focus on the classroom, your students, and the things that genuinely can only be done by you.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Before We Get Started with A.I.<\/strong><\/h2>\n\n\n\n<p>A brief reality check: just because we&#8217;re keeping A.I. outside the classroom doesn&#8217;t mean we&#8217;re magically making every risk and worry go away. This is new technology, and every new technology has had unforeseen consequences and downsides. <\/p>\n\n\n\n<p>Two tips to help you avoid the clearest pitfalls we&#8217;re seeing with A.I. right now: <\/p>\n\n\n\n<ol>\n<li><strong>Always check your work!<\/strong>: Regardless of what tools you used to make it, your name still goes on the bottom. Whatever an A.I. gives you, read it over <em>VERY CAREFULLY.<\/em> They have a fantastic knack for saying totally wrong things in a way that sounds totally right.<\/li>\n\n\n\n<li><strong>Draw the Line at Lazy<\/strong>: The point of using A.I. outside the classroom is to save you time, not to save you from having to think. If you&#8217;re using A.I. in a way that a student would get in trouble for, don\u2019t do it.<\/li>\n<\/ol>\n\n\n\n<p>Now that we&#8217;ve laid some ground rules, let&#8217;s dig in.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How A.I. Works<\/strong><\/h2>\n\n\n\n<p>There are lots of different &#8220;A.I.&#8221;s floating around out there, many embedded in products you already use (like Google Translate and the predictive text\/autocorrect in your phone&#8217;s messaging app). But most of the time if folks are talking about &#8220;A.I.&#8221; right now, they mean &#8220;<a href=\"https:\/\/en.wikipedia.org\/wiki\/Generative_artificial_intelligence\">generative AI<\/a>&#8221; or &#8220;gen A.I.&#8221; like <strong><em>ChatGPT<\/em><\/strong> (which generates written answers to prompts) or<strong><em> DALL-E<\/em><\/strong> (which generates images based on user prompts).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"1024\" src=\"https:\/\/davideriknelson.com\/bw\/wp-content\/uploads\/2024\/02\/Goat-writers-2.png\" alt=\"an A.I. generated image of some very studious goats writing with quill pens at their many desks\" class=\"wp-image-463\" srcset=\"https:\/\/davideriknelson.com\/bw\/wp-content\/uploads\/2024\/02\/Goat-writers-2.png 1024w, https:\/\/davideriknelson.com\/bw\/wp-content\/uploads\/2024\/02\/Goat-writers-2-300x300.png 300w, https:\/\/davideriknelson.com\/bw\/wp-content\/uploads\/2024\/02\/Goat-writers-2-150x150.png 150w, https:\/\/davideriknelson.com\/bw\/wp-content\/uploads\/2024\/02\/Goat-writers-2-768x768.png 768w, https:\/\/davideriknelson.com\/bw\/wp-content\/uploads\/2024\/02\/Goat-writers-2-100x100.png 100w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">I used generative A.I. to make this oil-painting-like image of some very studious goats after mistyping &#8220;ghostwriters&#8221; in a text to a friend<\/figcaption><\/figure>\n\n\n\n<p>Text-generating &#8220;A.I.&#8221; like ChatGPT are built on <strong><em>Large-Language Models<\/em><\/strong> (or <strong><em>LLM<\/em><\/strong>s). An LLM is a statistical model created by digesting an absurd amount of writing (mostly the Internet in general\u2014especially sites like Wikipedia, Reddit, and online news sources\u2014plus a whole lot of digitized books). The result is a model of what people think, based on what they&#8217;ve said over the last several decades online (plus what people wrote in books for several hundred years before the Internet). <\/p>\n\n\n\n<p>At its core, all an LLM does is predict some likely possibilities for the next word or phrase in a series. You give it &#8220;<em>Jingle bells\u2026<\/em>&#8221; and it&#8217;s likely to return &#8220;<em>\u2026jingle bells, jingle all the way<\/em>.&#8221; But it could also return &#8220;\u2026<em>Batman smells, Joker got away.<\/em>&#8221; (A valid, if slightly lower probability response.) Or &#8220;<em>\u2026is a popular seasonal song.<\/em>&#8221; It could even say something crazy, like &#8220;<em>\u2026are highly acidic and a good source of thiamine.<\/em>&#8221; That&#8217;s not true, and doesn&#8217;t make much sense, but it&#8217;s grammatical and within the realm of a <em>possible<\/em> answer\u2014just not a good one.<\/p>\n\n\n\n<p>As the complexity of what you offer it (the &#8220;prompt&#8221;) grows, so can the complexity of the LLM&#8217;s outputs. (And likewise the probability of it saying something crazy or factually incorrect\u2014a so-called &#8220;<a href=\"https:\/\/en.wikipedia.org\/wiki\/Hallucination_(artificial_intelligence)\">hallucination<\/a>.&#8221;)<\/p>\n\n\n\n<p class=\"has-text-align-center has-medium-font-size\"><strong><em>Search is about facts; LLMs are about vibes. <\/em><\/strong><\/p>\n\n\n\n<p>This is fundamentally different than what you are used to with computers. Until now, most applications you used were programs written as a series of commands. Those commands executed specific functions in response to specific inputs from you. The result was consistent outputs. Ask Siri the time, and it answers with the current time in your timezone.<\/p>\n\n\n\n<p>The LLM underlying an A.I. like ChatGPT isn&#8217;t programmed. It contains no commands or rules or functions.&nbsp;The exact same input can result in wildly different outputs\u2014just like asking two different people their opinion can get you wildly different answers. You can&#8217;t trust an LLM to give you facts or figures, or to follow instructions.<\/p>\n\n\n\n<p>At first glance, that seems both annoying and useless: I google something because I actually<em> want<\/em> to know what time the sun will rise on March 1st or what year George W. Bush was born. I don&#8217;t want <em>opinions<\/em>; I want <em>facts!<\/em><\/p>\n\n\n\n<p>So here&#8217;s a good way to think about it:<\/p>\n\n\n\n<p><em><strong>Search engines <\/strong>(like Google) are built on programs that allow you to <strong>search <\/strong>the Internet for facts; <strong>LLMs<\/strong> (like ChatGPT) are built on models that let you <strong>converse<\/strong> with the Internet.<\/em><\/p>\n\n\n\n<p>Search is good for fact-based activities (for example, looking up the sunrise and sunset times for the first day of each month in a given year). LLMs are awful at that task, but are great at helping you get a handle on how to nicely, politely, and professionally word a note whose gist is &#8220;your son is failing math because he mostly skips class and sleeps when he is here.&#8221;<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong><em>&#8220;Prompt engineering&#8221; <\/em><\/strong>is the art of &#8220;talking&#8221; to an LLM so that it helps you get something done.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What You&#8217;ll Need to Get Started with A.I.<\/strong><\/h2>\n\n\n\n<p>There are a lot of A.I. tools out there, with more (of wildly varying quality) hitting the market every single day. <\/p>\n\n\n\n<p>But all you need to get started is a free OpenAI account. You can set this up right now:<\/p>\n\n\n\n<ol>\n<li>Go to <a href=\"https:\/\/chat.openai.com\/\">https:\/\/chat.openai.com\/<\/a>  <\/li>\n\n\n\n<li>Click the &#8220;Sign Up&#8221; button,<\/li>\n\n\n\n<li>Either create an OpenAI account by entering your email, or just use your existing account Google, Apple, or Microsoft login.<\/li>\n<\/ol>\n\n\n\n<p>If this is feeling overwhelming (most of us need one more account like we need one more hole in the head) <strong><em>don&#8217;t jump ship just yet!<\/em><\/strong> I&#8217;ve included a screencast of me running through the example below. Scroll to the bottom of this post, and you can follow along without any sort of commitment. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Using A.I. Outside the Classroom: &#8220;Prompt Engineering<\/strong>&#8220;<strong> for Teachers<\/strong><\/h2>\n\n\n\n<p>Your day includes many repetitive or tedious chores that eat up time (often your personal time) but have little classroom or educational benefit.  Think weekly check-ins and newsletters, progress reports, emails, cookie-cutter lesson plans, and a whole slew of&nbsp; record-keeping \/ \u201cpaperwork\u201d \/ \u201cbox-checking\u201d tasks\u2014the sorts of activities where a list of scores or a one-sentence summary would likely suffice, but isn&#8217;t considered sufficient. These also tend to be situations where your &#8220;tone&#8221; or &#8220;vibe&#8221; is extremely likely to be picked apart by an unhappy recipient\u2014compounded by the fact that you are forced to get this done outside of school hours, often after a full day or week in the classroom.<\/p>\n\n\n\n<p>It is, at best, a fraught slog. Many teachers resent these chores with good reason (I was once one of you: I taught for seven years before my son was born and I started working from home).<\/p>\n\n\n\n<p>LLMs can help you get these tasks done more quickly with less stress. Here&#8217;s how:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Writing a Letter of Recommendation Using A.I.<\/strong><\/h2>\n\n\n\n<p>Let&#8217;s imagine you need to write a one-page letter of recommendation.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1. Go to ChatGPT<\/strong><\/h3>\n\n\n\n<p>Start by going over to <a href=\"https:\/\/chat.openai.com\/\">ChatGPT<\/a>: <a href=\"https:\/\/chat.openai.com\/\">https:\/\/chat.openai.com\/<\/a><\/p>\n\n\n\n<p>Once you sign in, you&#8217;ll see a text box inviting you to &#8220;Message ChatGPT.&#8221; This is where you enter your <em>prompt<\/em>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2. Start a Conversation<\/strong><\/h3>\n\n\n\n<p>The golden rule of prompt engineering is:<\/p>\n\n\n\n<p class=\"has-text-align-center has-medium-font-size\"><em>&#8220;Collaborate, don&#8217;t command.&#8221;<\/em><\/p>\n\n\n\n<p>If you tell ChatGPT <em>&#8220;Write a letter of recommendation&#8221;<\/em> it will spit out a perfectly formed, perfectly generic, perfectly useless letter of recommendation template.<\/p>\n\n\n\n<p>Instead, try this prompt:<\/p>\n\n\n\n<p class=\"has-text-align-left\"><em><strong><code>\"I need help writing a letter of recommendation for one of my students. What do you need to know to help me?\"<\/code><\/strong><\/em><\/p>\n\n\n\n<p>ChatGPT will reply with a list of questions. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3. Give Details<\/strong><\/h3>\n\n\n\n<p>Copy ChatGPT&#8217;s questions into an empty document, answer each, then paste those answers into the message bog as a reply.&nbsp; <\/p>\n\n\n\n<p>(It\u2019s ok to skip some of the questions; ChatGPT tends towards being both exhaustive and exhausting.)<\/p>\n\n\n\n<p>Hit <kbd><strong>enter<\/strong><\/kbd> and see what it comes up with.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 4. Give Feedback<\/strong><\/h3>\n\n\n\n<p>Don\u2019t like what ChatGPT offered? Tell it so. Ask it to try again, with a prompt like:<\/p>\n\n\n\n<p class=\"has-text-align-left\"><em><strong><code>\u201cTry again, but be brief.\u201d<\/code><\/strong><\/em><\/p>\n\n\n\n<p>or<\/p>\n\n\n\n<p class=\"has-text-align-left\"><em><strong><code>\u201cThis is close, but I\u2019d like it to sound more enthusiastic. Try again.\u201d<\/code><\/strong><\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 5. Stop with a &#8220;Good Start&#8221;<\/strong><\/h3>\n\n\n\n<p>You can continue this back-and-forth as long as you like, but don&#8217;t aim for <em>perfect<\/em>. Remember: our goal is to save time on tasks that aren&#8217;t at the heart if your work. Just get ChatGPT to draft a usable rough draft. Copy it, plop it into a fresh Word document, and clean it up yourself.<\/p>\n\n\n\n<p>Here&#8217;s a <a href=\"https:\/\/www.youtube.com\/watch?v=F1Q3DWhY3Ac\">three minute screencast of me using ChatGPT to write a letter of recommendation for Ms. Marvel<\/a>:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"AI for Teacher ChatGPT screencast demo\" width=\"525\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/F1Q3DWhY3Ac?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"has-medium-font-size\"><em>Interested in learning more about how regular folks can make ethical use of A.I.? <a href=\"http:\/\/eepurl.com\/iKb3Lo\">I&#8217;ll give you a heads up<\/a> with new tips, tricks, and tools as I come across them.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are a lot of reasonable ethical concerns about A.I. in the classroom. So let\u2019s focus on AI outside of the classroom. There are so many tasks that you, as a teacher, are asked to do that have little to do with teaching. A.I. can help you spend less time and effort on these, leaving &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/davideriknelson.com\/bw\/how-to-use-a-i-prompt-engineering-for-teachers\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Use A.I.: Prompt Engineering for Teachers&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/davideriknelson.com\/bw\/wp-json\/wp\/v2\/posts\/460"}],"collection":[{"href":"https:\/\/davideriknelson.com\/bw\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davideriknelson.com\/bw\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davideriknelson.com\/bw\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davideriknelson.com\/bw\/wp-json\/wp\/v2\/comments?post=460"}],"version-history":[{"count":22,"href":"https:\/\/davideriknelson.com\/bw\/wp-json\/wp\/v2\/posts\/460\/revisions"}],"predecessor-version":[{"id":487,"href":"https:\/\/davideriknelson.com\/bw\/wp-json\/wp\/v2\/posts\/460\/revisions\/487"}],"wp:attachment":[{"href":"https:\/\/davideriknelson.com\/bw\/wp-json\/wp\/v2\/media?parent=460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davideriknelson.com\/bw\/wp-json\/wp\/v2\/categories?post=460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davideriknelson.com\/bw\/wp-json\/wp\/v2\/tags?post=460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}