{"id":436,"date":"2024-08-22T13:55:53","date_gmt":"2024-08-22T11:55:53","guid":{"rendered":"https:\/\/iag-recursos.azurewebsites.net\/?page_id=436"},"modified":"2024-09-22T13:31:09","modified_gmt":"2024-09-22T11:31:09","slug":"3-2-how-do-you-formulate-prompts-to-improve-the-results-obtained-with-gai","status":"publish","type":"page","link":"https:\/\/iag.recursos.uoc.edu\/en\/3-2-how-do-you-formulate-prompts-to-improve-the-results-obtained-with-gai\/","title":{"rendered":"3.2. How do you formulate prompts to improve the results obtained with GAI?"},"content":{"rendered":"<p><strong><b>Specifying the context<\/b>:<\/strong><\/p>\n<ul>\n<li>Provide enough context for the GAI model to understand the task.<\/li>\n<li>Include relevant details that help guide the response.<\/li>\n<\/ul>\n<p><strong><b>Clear instructions<\/b>:<\/strong><\/p>\n<ul>\n<li>Provide clear and direct instructions.<\/li>\n<li>Avoid ambiguity in the prompt.<\/li>\n<\/ul>\n<p><strong><b>Search target<\/b>:<\/strong><\/p>\n<ul>\n<li>Clearly identify the target of the search: what information are you looking for?<\/li>\n<li>Identify what type of response you expect to receive (descriptive information, instructional information, creative information, etc.).<\/li>\n<\/ul>\n<p><strong><b>Keywords<\/b>:<\/strong><\/p>\n<ul>\n<li>Include keywords that are fundamental to the task. These help guide the result.<\/li>\n<li>Use specific terms that you want the answer to contain.<\/li>\n<\/ul>\n<p><strong><b>Constraints and conditions<\/b>:<\/strong><\/p>\n<ul>\n<li>Set clear constraints (if necessary).<\/li>\n<li>Include specific conditions that the GAI must meet.<\/li>\n<\/ul>\n<p><strong><b>Prompt length<\/b>:<\/strong><\/p>\n<ul>\n<li>Check that the length of the prompt is appropriate for the complexity of the task.<\/li>\n<li>Avoid prompts that are too long or too short.<\/li>\n<\/ul>\n<p><strong><b>Specific examples<\/b>:<\/strong><\/p>\n<ul>\n<li>Provide specific examples to illustrate what you are looking for.<\/li>\n<li>Keep in mind that the examples will help the GAI model to understand the task better.<\/li>\n<\/ul>\n<p><strong><b>Direct questions<\/b>:<\/strong><\/p>\n<ul>\n<li>Ask direct questions if you are looking for specific answers.<\/li>\n<li>Formulate questions clearly.<\/li>\n<\/ul>\n<p><strong>Iterative feedback:<\/strong><\/p>\n<ul>\n<li>Decide whether you need to include instructions on how to adjust the response if it doesn&#8217;t meet your expectations.<\/li>\n<li>Provide examples of how to improve or change the output provided by the GAI model.<\/li>\n<\/ul>\n<p><strong><b>Vocabulary and style<\/b>:<\/strong><\/p>\n<ul>\n<li>Indicate the type of vocabulary you want to see in the response or the desired style.<\/li>\n<li>Specify the particular tone that the tool should adopt.<\/li>\n<li>Indicate if you want a formal, informal, creative or other response.<\/li>\n<\/ul>\n<p><strong><b>Review and adjustment<\/b>:<\/strong><\/p>\n<ul>\n<li>Check the prompt before sending it to ensure there are no errors or misunderstandings.<\/li>\n<li>Make adjustments and experiment with different reformulations of the prompt.<\/li>\n<\/ul>\n<p>Jordi Linares, in his article\u00a0<i><a href=\"https:\/\/www.linkedin.com\/pulse\/art-prompting-empowering-students-harness-power-llms-linares-phd\" target=\"_blank\" rel=\"noopener\">The Art of prompting: Empowering students to harness the power of LLMs (ChatGPT and others) in education<\/a><\/i>, explains another way to generate good results by using more than one prompt. This involves taking a\u00a0<b>top-down approach<\/b>: starting by asking for a global view of the topic then progressively diving deeper to get more detail.<\/p>\n<p>Some image-generating GAI models require prompts to use specific syntax. For example, Image Creator (<a href=\"https:\/\/www.bing.com\/create\" target=\"_blank\" rel=\"noopener\">https:\/\/www.bing.com\/create<\/a>) requires the following pattern:<\/p>\n<p style=\"text-align: center;\"><b>adjective + noun + verb + style<\/b><\/p>\n<p>For example: futuristic landscape, urban, which captures the sunset, conceptual art.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Specifying the context: Provide enough context for the GAI model to understand the task. Include relevant details that help guide the response. Clear instructions: Provide clear and direct instructions. Avoid ambiguity in the prompt. Search target: Clearly identify the target of the search: what information are you looking for? Identify what type of response you [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"acf":[],"_links":{"self":[{"href":"https:\/\/iag.recursos.uoc.edu\/en\/wp-json\/wp\/v2\/pages\/436"}],"collection":[{"href":"https:\/\/iag.recursos.uoc.edu\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/iag.recursos.uoc.edu\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/iag.recursos.uoc.edu\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/iag.recursos.uoc.edu\/en\/wp-json\/wp\/v2\/comments?post=436"}],"version-history":[{"count":2,"href":"https:\/\/iag.recursos.uoc.edu\/en\/wp-json\/wp\/v2\/pages\/436\/revisions"}],"predecessor-version":[{"id":487,"href":"https:\/\/iag.recursos.uoc.edu\/en\/wp-json\/wp\/v2\/pages\/436\/revisions\/487"}],"wp:attachment":[{"href":"https:\/\/iag.recursos.uoc.edu\/en\/wp-json\/wp\/v2\/media?parent=436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}