βIβm using it wrong?β
Potentially. Rubbish in = rubbish out ποΈ
Letβs start with a simple thought experiment, if you wanted a colleague or an employee to do something well, youβd provide them with a clear set of instructions, wouldnβt you? The concept is exactly the same in this situation.
Utilising Generative AI Chatbots optimally is one of the easiest ways to enhance your workflow using the latest AI technology, whether youβre using free tools like ChatGPT 3.5/Google Gemini or paid plans like ChatGPT Plus and Microsoft Copilot Pro.
Todayβs newsletter focuses on the art of Prompt Engineering. By the end, youβll understand:
The different types of prompting.
How to craft any prompt for any Large Language Model (LLM) - ChatGPT is one of these.
What an ideal prompt looks like.
βWhat are the different types of prompts?β
Iβm glad you asked!
The framework Iβll explain involves N-Shot Prompts, where N is the number of examples of the βideal responseβ that you provide to the LLM.
Zero-Shot Prompting:
No example provided. N=0.
Best for brainstorming, asking a question, or when you donβt have any specific examples for your desired response to a task.
βDetermine the sentiment of this sentence: I love sunny days and ice cream.β
One-Shot Prompting:
One example provided. N=1.
Most efficient when you have a single example that closely represents the task or output you desire.
βTranslate these sentences into Spanish. Example: English: βThe apple is red.β Spanish: βLa manzana es roja.β Now translate: βThe sky is blue.ββ
Few-Shot Prompting:
More than one example. N>=2.
Ideal for longer or more complex tasks.
βClassify these animals into βmammalβ or βbirdβ: Example 1: Animal: βElephantβ Type: βMammalβ Example 2: Animal: βEagleβ Type: βBirdβ Now classify: βDolphinββ
Understanding the different benefits and uses of these prompt types will get you halfway there, but the βsecret ingredientβ is implementing a repeatable prompt structure to clarify your expectations and improve the LLMs understanding.
βSo, what does this structure look like?β

