HomeTutorials
Giving Instructions
6

Giving Instructions

Nanjo
Nanjo
March 21st, 2023

One of the most straightforward and effective prompting techniques involves providing clear and concise instructions. In a previous section, we encountered a basic instructional prompt (What is 1,000,000 * 9,000? Make sure to put the right amount of zeros, even if there are many:). Nevertheless, contemporary AI systems are capable of comprehending and executing significantly more intricate directives.Presented below is a dynamic, interactive embed exemplifying this concept. If it is not visible, kindly ensure that Javascript is enabled in your browser. As an engaging demonstration, feel free to modify the text and click Generate to experience the AI's responsiveness in real-time.

Example 1

Prompt
A user has entered their given name and surname into a form. However, the precise order of their first and last name is indiscernible. Our objective is to reformat the text into the conventional 'Surname, Given Name' structure. Please consider the subsequent conversion:
Doe, John
Output
Doe, John

The AI demonstrates remarkable proficiency in addressing this issue. By utilizing instruction-based prompting, the AI is poised to tackle a plethora of challenges, ranging from elementary to more intricate problems.

Example 2

Here is a more complicated example1:

Read the following sales email. Remove any personally identifiable information (PII),and replace it with the appropriate placeholder. For example, replace the name "John Doe" with "[NAME]".
Hi John,
I'm writing to you because I noticed you recently purchased a new car. I'm a salesperson at a local dealership ([DEALERSHIP NAME]), and I wanted to let you know that we have a great deal on a new car. If you're interested, please let me know.
Thanks,Jimmy Smith
Phone: 410-805-2345
Email: jimmysmith@cheapdealz.com

Here is the AI's response:

Hello [NAME],
I hope this message finds you well. I noticed that you have recently acquired a new vehicle. As a sales representative at a nearby dealership ([DEALERSHIP]), I wanted to inform you of an exceptional offer on a new car we currently have. If this sparks your interest, please feel free to reach out to me.
Best regards,
[SALESPERSON]
Phone: [PHONE NUMBER]
Email: [EMAIL ADDRESS]

It is truly fascinating to observe the model's ability to infer and adapt to the given instructions. For instance, it astutely replaces "Cheap Dealz" with [DEALERSHIP] and "Jimmy Smith" with [SALESPERSON], despite the absence of explicit directives to do so. This exemplifies the prowess of modern AI systems in comprehending and executing tasks.

Comments

no dataCoffee time! Feel free to comment