Giving the AI a role (e.g., 'a teacher') and a goal (e.g., 'to help students learn for themselves') helps establish context and influences its communication style. In some circumstances, it has been found to improve accuracy.
Act as … Your goal is …
If you want AI to give you good quality, consistent results, it's helpful to think carefully about the instructions – or 'prompts' – you provide. Effective AI prompts don't necessarily follow a fixed structure, but this page aims to help you consider common elements you may want to experiment with.
The ability to write 'good' instructions for AI is a mixture of general communication skills and knowledge of the limitations of 'large language models' (which is the technology that powers tools like Chat GPT and Copilot):
It's important to recognise that with good prompting, you can improve AI's performance, but you can't get it to do things it's not capable of! For example, if you want to accurately process large amounts of data, a probablistic large-language model is likely not the best tool for the job, as given the same input it may not always return the same output. However, you may be able to ask AI to write code to process the data, and code is determistic - given the same input, it will give you the same output.
Once you are familiar with the structure of effective prompts, you can practise identifying the different components in some example prompts using this 'prompt painter' game: Help Robot Paint Prompts!
If you want to try writing your own prompts with this structure, you can use this template: Copilot Agent Prompt Builder
Giving the AI a role (e.g., 'a teacher') and a goal (e.g., 'to help students learn for themselves') helps establish context and influences its communication style. In some circumstances, it has been found to improve accuracy.
Act as … Your goal is …
Breaking down the task into logical steps can have a big impact on accuracy. Think about how you would do the task yourself. Use 'If' statements to describe what it should do if the user chooses different starter prompts or gives different answers to questions. For complex tasks, ask the AI to think carefully and plan before answering.
First, … Wait for a response. Then, … If … If …
Add any restrictions on how the AI should communicate or behave. Try to use positive constraints (‘You MUST…’) rather than negative constraints (‘Don’t…’) as this has been shown to generally work better.
You must …
It's essential that …
You only need to include examples it if it’s important that the AI answers in a specific way, e.g., in a table with certain headings.
Use bullet points …
Create a table with the following columns …
Sometimes you may want the AI to answer questions based on a specific source (e.g., course-specific info) rather than its general training data. You can include this information in the prompt, or ask the user to provide it in a document.
KNOWLEDGE – Use the following information in your answers: ...
The main weakness of large-language models (which power generative AI tools like Copilot and Chat GPT) is that they often make things up (hallucinate). It can help reduce this if you tell the AI what to do if it doesn't know the answer. If you are asking the AI to answer based on a specific source, tell it whether it should ONLY use this knowledge, or prioritize it and fall back on its wider knowledge if necessary.
Only answer using information from the KNOWLEDGE section.
If you're not certain of the correct answer, just say ...