Prompts are the instructions used to ask a large language model to perform a task and create an output. The more specific instructions you can give the generative AI, the better output you're going to get. Prompting generative AI each step of the way guides it to ensure consistency and keeps the AI on topic.
Whether you're asking a question or providing additional context, you are prompting the language model to perform a task for you. A prompt consists of a few words, a single sentence or paragraphs. Successful prompt crafting influences the quality and relevance of the generated output and the user's satisfaction in the answer. Providing as much instruction and context as you can to a large language model, like ChatGPT, will bring back a more helpful output to the task you've asked.
Some common tasks we ask large language models to perform for us are:
The CLEAR framework, created by Librarian Leo S. Lo at the University of New Mexico, is a framework to optimize prompts given to generative AI tools. To follow the CLEAR framework, prompts must be:
Concise: "brevity and clarity in prompts"
Logical: "structured and coherent prompts"
Explicit: "clear output specifications"
Adaptive: "flexibility and customization in prompts"
Reflective: "continuous evaluation and improvement of prompts"
This information comes from the following article. It is highly encouraged to read through this article if you would like to improve your prompt writing.
Lo, Leo S. "The CLEAR Path: A Framework for Enhancing Information Literacy through Prompt Engineering." The Journal of Academic Librarianship 49, no. 4 (2023): 102720. https://doi.org/10.1016/j.acalib.2023.102720
Instruction: Including explicit instructions for the desired behavior, such as: ask the model to think step by step, to rephrase an idea, to summarize an idea, to synthesize two or more ideas. If you are able to, include context as well.
Context: Providing context to the generative AI will help it understand it's task. Explaining your role, the AI's role, the expected outcomes, or why you are asking for this completed task will help with a better outcome. For example:
Instruction and context work well when used together. Prompting generative AI to give you the best output takes trial and error, so reword your prompt a few ways to see what generates the best response.
Explain & Check: Explain your topic or query and check the generative AI understands.
Clarifying Questions: Have the generative AI ask questions to clarify what output you want.
Tone and Direction: Guide the generative AI for their output to be in a particular direction, style, tone or format.
Provide Examples: Provide an example that you have already created or have found, such as: demonstrations of the output needed, a set of keywords, or a reference text.
Act as Expert: Have the generative AI teach you about the topic you are interested in.
Other tips:
Words to Include for Performing Specific Tasks:
To Ask Specific Questions:
To Include Specific Contexts:
An article from the Insider looking at five prompts (hacks) to use within ChatGPT.
125 prompts for ChatGPT tasks and outputs.
In this repository, you will find a variety of prompts that can be used with ChatGPT
An article from the Conversation about improving prompts given to generative AI, including image generation.
AI art generators tend to require more attention to detail—and more attempts—before you get what you're looking for. This articles includes structures to follow.
A post from the University of Sydney about using prompts in generative AI, like GPT, for higher education.
Prompts for ChatGPT, Midjourney, Bard, Bing, Notion & DALL-E
A university library's page on AI prompts with a focus on ChatGPT.
Article from the Perrin Collective on prompt engineering, including a prompt cheat sheet.
101 prompts from Creative Boosters with exact wording for creating construct stimulating, engaging conversations with generative AI.
Adapted from "Fine Tuning Prompts for AI Tools" from the "Artificial Intelligence Guide" by Bronte Chang, University of Calgary Library which is licensed under CC BY 4.0