Basic Use
Prompt Engineering I
This section will provide guidance on developing effective GenAI prompts to generate optimal results.
Prompt Template Patters
Prompts play a pivotal role in the functionality of generative AI, acting as the fundamental channel of communication between the user and the AI. They are designed to direct the AI’s generation of specific outputs or execution of tasks. The complexity of prompts can vary greatly, often comprising multiple elements that must be coherently integrated, which is where prompt template patterns come into play. These templates ensure clarity and consistency in prompts, reflecting their importance in the AI’s performance. This is the first of three Prompting Template adapted from the insights of Yi Zhou (2023).
TOCD Prompt Template Patterns
This template is simple and efficient yielding clear results. This Pattern consists of 4 main elements. Each of these elements possess a variety of attributes. These are discussed below.
Template Framework
The Components as described are:
◉ Role
◉ Behavioral Signals
◉ Task
◉ Structure
◉ Specifications/Constraints
◉ Data
These can be combined into a prompt as indicated below.
“Act as a [Role] with [behaviour] performs [task] ensures [structure]. Remember [Specifications/Constraints] and [Data].”
Template in Action
Example
Act as a Psychology Instructor [Role] who is an expert in the works of Carl Jung [Behavioural Signals]. Create a quiz for students on Jungian Archetypes [Task]. This quiz should be 5 multiple choice questions [Structure]. Each question should have 4 answers, one correct and three distractors [Specifications/Constraints]. The questions should only explore the information contained in the 1964 book, Man and his Symbols [Data].