Skip to Main Content

Artificial Intelligence: Prompt Engineering

Prompt Engineering

A prompt is basically a command or question you give to an AI tool, which then creates a response or output based on that prompt. Writing good prompts, often referred to 'prompt engineering' can really improve the results you get from the AI. By understanding how to craft effective prompts, you can leverage the full potential of AI to support your studies and research. 

Tips for Writing an Effective Prompt

1. Clear Instructions

Clearly articulate your request to the AI. Providing context will enhance the AI's understanding of the task at hand.

2. Adopt a Persona

Indicate the persona or character that the AI should embody. This will help tailor the response to suit the intended audience effectively.

3. Response Style

Indicate the preferred tone of the response, whether it be professional, casual, or light-hearted, to align with your expectations.

4. Output Format

Indicate the format in which you would like the response delivered. Options may include a report, presentation, flowchart, or list.

5. Step-by-Step Instructions

Outline the necessary steps to complete the task in a clear and organised manner (e.g., Step 1, Step 2). This structured approach enhances clarity and comprehension.

6. Provide Examples

Incorporate examples to illustrate your expectations and further clarify the task requirements.

7. Specify Length

Indicate the desired length of the output, such as a specific number of paragraphs or bullet points, to assist the AI in tailoring its response appropriately.

Master the Perfect Prompt

Jeff Su (2024). Master the Perfect ChatGPT Prompt Formula. Youtube. https://youtu.be/jC4v5AS4RIM?si=NCVtFuhlTnMPgf3I

Example of a Well Constructed Prompt

"I’m studying for my psychology exam and need help understanding cognitive dissonance. Here’s what I’d like:

  1. Clear Instructions: Explain the concept of cognitive dissonance, including its definition and significance in psychology.
  2. Choose a Character: Act as a psychology professor explaining this to undergraduate students.
  3. Pick a Tone: Use a clear and engaging tone that encourages questions.
  4. Specify the Format: Provide a short summary including definition, implications and examples.
  5. Give Step-by-Step Directions: Break down the explanation into sections: what it is, how it works, and real-life applications.
  6. Use Examples: Include a couple of relatable examples that illustrate cognitive dissonance in everyday life.
  7. Mention the Length: Aim for about 400 words in total."

Include prompts in the appendix of your assignment for full transparency.