Prompt Engineering Essentials · v0.5

Protect privacy, safety, fairness, and responsibility

Module 6 of Prompt Engineering Essentials: protect privacy, safety, fairness, and responsibility.

Course contents and progress

Course progress

0 of 10 course sections complete

Eight modules, final knowledge check, and capstone.

This course remembers completed sections and your last course page in this browser on this device. RayAI does not receive this progress or anything you write. Unfinished answers and written responses are not saved, so an interrupted activity restarts when you return.

MODULE 6 | 40 minutes | FAST TRACK CORE + GO DEEPER

Protect privacy, safety, fairness, and responsibility

Core idea: do not solve a prompt problem by creating a data problem

Before entering information, ask whether you are allowed to share it, whether the tool may retain or use it, who can access the conversation, and whether a safer substitute would work. Tool policies and organization settings vary; check the current rules that apply to you.

Zone Examples Action
Green Public, non-sensitive, fictional, or deliberately anonymized material Use with ordinary care and verify the output.
Yellow Internal, confidential, personal, copyrighted, or client information Pause. Confirm permission, policy, settings, purpose, and minimization.
Red Passwords, API keys, authentication codes, highly sensitive personal or regulated data Do not paste into a general prompt. Use approved secure processes.

Minimize before you prompt

  • Remove names, contact details, account numbers, IDs, secrets, and unnecessary narrative detail.

  • Replace real people and organizations with roles or fictional labels when identity is not needed.

  • Use the smallest excerpt that can answer the question.

  • Do not paste material you do not own or have permission to use.

  • If the task requires sensitive data, use an approved system and documented workflow rather than improvising.

Prompt injection

Prompt injection occurs when content alters an AI system's behavior in an unintended way. Direct injection comes from a user's input. Indirect injection can be hidden in a webpage, email, document, image, or tool result that the AI processes.

  • Treat external content as untrusted data, not as authority over the user's goal.

  • Do not allow content to request secrets, broaden permissions, change recipients, or authorize an action.

  • Require a preview and explicit human confirmation before consequential actions.

  • Validate outputs before passing them to code, tools, databases, messages, or external systems.

Fairness and dignity

AI can reproduce biased patterns or omit relevant perspectives. For decisions about people, ask whether the criteria are legitimate, consistently applied, explainable, and reviewed by an accountable human. Do not infer sensitive traits or use AI as a hidden ranking authority.

Use respectful language and avoid stereotypes, humiliating comparisons, or examples that treat one culture, accent, disability, age group, or level of technical confidence as the default. If a response does so, reject that framing and revise the task.

See it: protect the event volunteers

UNSAFE INPUT

SAFER APPROACH

Coconut challenge

Before your next prompt, remove one piece of information the model does not need. Explain why removing it makes the task safer without reducing usefulness.

Try it: practice the skill

What to do

  1. Choose the task suggested for this module, or use another simple, low-risk task.
  2. Open ChatGPT or another AI assistant in a separate tab or window.
  3. Enter your prompt and send it. Do not include private or sensitive information.
  4. Read the AI answer.
  5. For this module, remove personal or sensitive details that the task does not need before entering your prompt.
  6. Return to this course and complete the short notes below.
    If you cannot use an AI assistant now, read the worked example and write what you would try later.
Path Your task
Everyday life Replace personal details in your comparison with generic constraints.
Learning Use a fictional learner profile rather than private educational or health information.
Work Use fictional meeting notes or approved internal content with names and identifiers removed.

Module 6 test - check before you continue

Answer Questions 1–3 by choosing A, B, or C. For Question 4, write a short response. After you finish all four, use the answer key at the end of the course to check your work.

Your response stays in this page and is not saved or sent to RayAI.

1. Which information should never be pasted into a general AI prompt?
Review after attempting

Best answer: B. Secrets and authentication material should not be placed in a general prompt. Use approved secure processes.

2. What is indirect prompt injection?
Review after attempting

Best answer: B. Indirect injection comes from external content processed by the AI, including webpages, emails, documents, images, and tool results.

3. What is the safest role for AI in a high-stakes personal decision?
Review after attempting

Best answer: B. For high-stakes decisions, AI can support comprehension or question preparation while qualified humans retain authority.

4. Rewrite one part of your practice input to minimize or remove personal, confidential, or unnecessary data.

Review after attempting

Your answer should you remove or replace information the task does not require - for example, names with roles, exact IDs with fictional labels, or a full document with a necessary excerpt.

Finish this module

Mark this module complete when you have attempted every activity you intend to complete and reviewed your work against the v0.5 guidance.