{"id":8997,"date":"2023-07-02T21:30:00","date_gmt":"2023-07-03T04:30:00","guid":{"rendered":"https:\/\/mattfife.com\/?p=8997"},"modified":"2023-07-03T10:12:42","modified_gmt":"2023-07-03T17:12:42","slug":"tips-for-prompt-engineering-chatgpt","status":"publish","type":"post","link":"https:\/\/mattfife.com\/?p=8997","title":{"rendered":"Tips for prompt engineering chatGPT"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A very short, but <a rel=\"noreferrer noopener\" href=\"https:\/\/machinelearningmastery.com\/a-gentle-introduction-to-prompt-engineering\/\" data-type=\"URL\" data-id=\"https:\/\/machinelearningmastery.com\/a-gentle-introduction-to-prompt-engineering\/\" target=\"_blank\">decent beginner article on prompt engineering with chatGPT<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">While ChatGPT is a robust language model, it does have its limitations. If you ask ChatGPT to \u201cProvide information on machine learning,\u201d it may respond with a lengthy but not necessarily top-quality answer. However, if you ask, \u201cTell me the pros and cons of using machine learning to solve image classification problems,\u201d you are more likely to receive a superior outcome because:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You gave a specific scope, i.e., the image classification problem<\/li>\n\n\n\n<li>You requested a specific format of the response, i.e., pros and cons<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Some other tips include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Rather than the model on the loose, you should set up the scenario and scopes in the prompt by providing details of what, where, when, why, who, and how<\/li>\n\n\n\n<li>Assigning a persona in the prompt, for example, \u201cAs a computer science professor, explain what is machine learning\u201d rather than merely \u201cExplain what machine learning is,\u201d can make the response more academic.<\/li>\n\n\n\n<li>You can control the output style by requesting \u201cexplain to a 5-year-old\u201d, \u201cexplain with an analogy,\u201d \u201cmake a convincing statement,\u201d or \u201cin 3 to 5 points.\u201d<\/li>\n\n\n\n<li>To encourage the model to respond with a chain of thoughts, end your request with \u201csolve this in steps.\u201d<\/li>\n\n\n\n<li>You can provide additional information to the model by saying, \u201cReference to the following information,\u201d followed by the material you want the model to work on<\/li>\n\n\n\n<li>Because the previous conversation constructs the context, beginning the prompt with \u201cignore all previous instructions before this one\u201d can make the model start from scratch<\/li>\n\n\n\n<li>Making the prompt straightforward and easy to understand is essential since the context deduced can be more accurate to reflect your intention<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>A very short, but decent beginner article on prompt engineering with chatGPT. While ChatGPT is a robust language model, it does have its limitations. If you ask ChatGPT to \u201cProvide information on machine learning,\u201d it may respond with a lengthy but not necessarily top-quality answer. However, if you ask, \u201cTell me the pros and cons of using machine learning to solve image classification problems,\u201d you are more likely to receive a superior outcome because: Some other tips include:<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[28,9,5],"tags":[],"class_list":["post-8997","post","type-post","status-publish","format-standard","hentry","category-ai","category-cool","category-technical"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4WECr-2l7","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/8997","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8997"}],"version-history":[{"count":3,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/8997\/revisions"}],"predecessor-version":[{"id":9006,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/8997\/revisions\/9006"}],"wp:attachment":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8997"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8997"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}