diff --git a/public/uploads/rules/shot-prompts/rule.mdx b/public/uploads/rules/shot-prompts/rule.mdx index de926b4a735..142f4d12817 100644 --- a/public/uploads/rules/shot-prompts/rule.mdx +++ b/public/uploads/rules/shot-prompts/rule.mdx @@ -1,16 +1,22 @@ --- -seoDescription: Unlock optimal interactions with ChatGPT by mastering 0-shot, 1-shot, and multi-shot prompts. type: rule -title: Do you know when to use 0-shot, 1-shot, or multi-shot prompts (e.g. give - it 1 or more examples)? -categories: - - category: categories/artificial-intelligence/rules-to-better-chatgpt-prompt-engineering.mdx +title: >- + Do you know when to use 0-shot, 1-shot, or multi-shot prompts (e.g. give it 1 + or more examples)? uri: shot-prompts +categories: + - category: >- + categories/artificial-intelligence/rules-to-better-chatgpt-prompt-engineering.mdx authors: - title: Ulysses Maclaren - url: https://www.ssw.com.au/people/ulysses-maclaren -created: 2023-04-12T13:55:36.349Z + url: 'https://www.ssw.com.au/people/ulysses-maclaren' guid: 5d53a8ed-35c1-43cd-8a1e-efc8fad352f6 +seoDescription: >- + Unlock optimal interactions with ChatGPT by mastering 0-shot, 1-shot, and + multi-shot prompts. +created: 2023-04-12T13:55:36.349Z +createdBy: 'Willow Lyu [SSW]' +createdByEmail: willowlyu@ssw.com.au --- You can give ChatGPT examples of the type of output you want, including the format. Each example you feed it is known as a “shot”. @@ -32,24 +38,22 @@ Use 0-shot prompts when you trust the model's general knowledge to provide a suf Provide a single example of the desired output, helping to guide the model's response. This approach can be useful when you need a specific format or style or when the task requires some level of guidance. -Use 1-shot prompts when you want to nudge the model in the right direction without overwhelming it with multiple examples. +Use 1-shot prompts when a single example will help the model understand the output style. Example 1-shot prompt: - "Translate the following English sentences into French. Here's an example: -'I love playing soccer.' -> 'J'aime jouer au football.' - -Now translate: 'She enjoys reading books.'" + 'I love playing soccer.' -> 'J'aime jouer au football.' + + Now translate: 'She enjoys reading books.'" } figurePrefix="none" figure="1-shot example - providing a single example of translation" /> - ### Multi-shot prompts Offer multiple examples, allowing the model to learn from various instances. These prompts can be beneficial when dealing with complex tasks, where providing a range of examples helps the model better understand the desired outcome. @@ -58,20 +62,18 @@ Use multi-shot prompts when a single example might not be sufficient for guiding Example multi-shot prompt: - "Translate the following English sentences into French. Here are some examples: - -- 'I love playing soccer.' -> 'J'aime jouer au football.' -- 'The weather is nice today.' -> 'Le temps est agréable aujourd'hui.' - -Now translate: 'They are going to the park.'" + + * 'I love playing soccer.' -> 'J'aime jouer au football.' + * 'The weather is nice today.' -> 'Le temps est agréable aujourd'hui.' + + Now translate: 'They are going to the park.'" } figurePrefix="none" figure="Multi-shot example - providing multiple examples of translations" /> - -By knowing when to use 0-shot, 1-shot, or multi-shot prompts, you can optimize your interactions with ChatGPT and receive more accurate and tailored responses. \ No newline at end of file +By knowing when to use 0-shot, 1-shot, or multi-shot prompts, you can optimize your interactions with ChatGPT and receive more accurate and tailored responses.