Writing Prompts
Prompt engineering plays a crucial role in maximising the potential of generative AI, particularly in language models. It is not limited to the mere creation and formulation of prompts, it encompasses a diverse array of skills and techniques.
They are input elements such as words, phrases, questions, or keywords that users enter into AI tools to generate results. Now that you know what prompts mean, prompt generation is the skilful art of crafting highly effective prompts to achieve the desired outcomes.
In the context of ChatGPT, prompts refer to the instruction or discussion topic that users provide for the AI model to respond to. It can take the form of a question, statement, or any stimulus aimed at fostering creativity, reflection, or engagement. These prompts are designed to be open ended allowing customisation to align with the user's preferences and interests.
Firstly, when using AI models like ChatGPT and Midjourney, the better your prompts, the better the results you'll get. Simply put, an effective prompt not only sets the topic but also provides clear instructions on the task, effectively guiding the AI.
Is it challenging to write a good prompt? Creating effective prompts can be a challenging task, as the quality of the output relies on the specificity and clarity of the prompts or input instructions. This is why we've created this whole resource site, so that you can see some effective prompts for learning.
Specificity is key! The model will make an assumption on any point you don’t clearly explain.
There is no hard science to good prompting. Instead, approach it as a process of trial and error:
Remember that as you chat with generative AI, the model will learn more about what you need. Use the conversational turns to help the AI improve its outputs.
Also remember that simple prompts lead to simple (and similar) completions.
A good prompt has 4 key elements: Role, Task, Requirements and Instructions.
Let's take a look at each one in depth.
Prompts starting with "act as..." or "pretend to be..." will provide responses similar to that of the role which you provide. Setting a specific role for a given prompt increases the likelihood of more accurate information, when done appropriately.
The task is a summary of what you want the prompt to do. There is a lot of creativity that comes into writing a great task. It can range from generating birthday gift ideas to doing game show questions with the content from your last lecture.
Writing clear requirements is all about giving as much information as possible to ensure your response doesn't use any incorrect assumptions. AI models make assumptions for any information they don't have in the prompt.
Instructions will inform the AI how to complete the task. Instructions can include examples of how it is supposed to work, steps it can follow or any information.
Copyright © The University of Sydney. Unless otherwise indicated, 3rd party material has been reproduced and communicated to you by or on behalf of the University of Sydney in accordance with section 113P of the Copyright Act 1968 (Act). The material in this communication may be subject to copyright under the Act. Any further reproduction or communication of this material by you may be the subject of copyright protection under the Act.