Promptengineeringguide 240205121612 2d395db6
Promptengineeringguide 240205121612 2d395db6
Prompt Engineering
Guide
Topics:
Prompt Engineering Overview
Prompt Priming
Simple Prompts
Effective Prompt
Focused Prompt
To be continued---
Focused Prompt Frameworks
General Prompt
Frameworks
What is Prompt Engineering
The process of designing and improving prompts used in
natural language processing (NLP) models such as ChatGPT,
chatbots, or virtual assistants is known as prompt
engineering. Creating prompts that are clear, simple, and
effective in generating the desired answer is part of this
process. (Also known as prompt engineering; just as a well-
designed hook is more likely to capture its target fish, a well-
crafted prompt is more likely to get the desired response.)
Principles of Prompt
Engineering
1-Be specific: The more criteria you give, the more
focused the output will be.
-The persona that you assign to ChatGPT, aka who it will be acting as in your prompt.
-The information and examples that you provide, aka your input. (information and examples can
be referenced by ChatGPT in the previous chat history)
-A specific task that you are requesting ChatGPT to complete, aka your desired output.
-Refinement as needed once you receive your first response, aka reiteration until receiving the
desired output.
Prompting
Steps
-Define the problem or goal: Clearly articulate what you want ChatGPT to help you with
and what kind of response you are looking for.
-Use relevant keywords and phrases: Input the most useful industry and topic-related
terms into the prompt, which will help guide ChatGPT toward generating the desired
response.
-Write the prompt: Craft a concise prompt that clearly communicates the information
and task that is required, using the keywords and phrases identified in steps 1 and 2.
-Test, evaluate, and iterate: Generate responses with ChatGPT, evaluate the results,
and adjust the prompt as necessary to elicit the desired response. Repeat the process
until a successful prompt is created that consistently generates the desired response.
Prompt Priming
“Priming” refers to the practice of providing some initial input to
the model before generating a response. The initial input is
intended to guide the model toward generating a response that
is more relevant and coherent with the user's intended output.
(You can input entire pieces of text you’ve written for ChatGPT to
Example 1:
be trained on)*
With priming: Please create 3 potential titles for my new online course
that teaches how to use AI. Here is an example of my recent course titles,
please emulate the styling and written format of these: “Video Editing
1. Brainstorm New
Ideas
Prompt Formula
• I'm looking to explore [subject] in a [format]. Do you have any suggestions on
[topics] I can cover?
Examples:
• I'm interested in creating an Instagram page that covers travel. What ideas do
topics that would be engaging for my audience, such as the latest gadgets and
software updates?
2. Copy Generation
Prompt Formula
Examples
Can you write one for me on the ease of use and affordability of the product?
services.
3. Client and Customer Support/Email
Prompt Formula
• I want you to act as a customer support assistant who is analytical. How would
you respond as a representative of our
tech startup to a customer who has experienced a bug while using our software?
Examples
• Please come up with 8 email newsletters for my investment site that includes
industry reports and data analysis.
• Please come up with 4 video scripts for a marketing YouTube channel that
includes expert opinions and insights on digital marketing trends.
Effective Prompt
Revisions
In contrast to conventional search engines, ChatGPT possesses a unique memory
dialogue.
• Now put the single most important keywords in bold
formatting…
by-step format of its reasoning process. This technique helps ensure that the
Prompt Formula
Examples
This framework is a technique to guide ChatGPT to ask for clarification before giving
an answer. This helps ensure that the model’s answers are as accurate and specific
as possible.
Prompt Formula
1. You are an expert in the field of [industry]. I’m going to ask you to complete some
specific tasks, but before you answer, I want you to do the following: If you have any
questions about my task or uncertainty about delivering the best answer possible,
always ask bullet point questions for clarification before generating your answer. Is
that understood?
2. Great, my question is [question]. Your task is to [task]. Please ask any questions
you have so that I can improve my prompt before you complete your task.
Examples
• Great, my question is how can I drive more sales for my consulting business?
Your task is to create a step by step guide for me to implement into my
business. Please ask any questions you have so that I can improve my prompt
before you complete your task.
comprehensive view of the topic at hand. This can help you make more informed
Prompt Formula
• Singular Perspective: Please write about [topic] from the perspective of [view
point].
from multiple diverse perspectives. Include the names and points of view of the
Examples
• Singular Perspective: Please write about improving as a kickboxer from the
perspective of a kickboxing coach.
• I want you to act as an expert and critic in the subject of [industry]. Criticize my
content pasted below, convince me why it’s bad, and give me constructive criticism
content goal]. Let’s think step by step and I want you to address each piece of
Option 2
1. Let’s talk about reverse prompt engineering. By reverse prompt engineering, I
mean creating a prompt from a given text.
2.Can you give me a simple example of reverse prompt engineering?
3.Great. Can you create a very technical reverse prompt engineering template?
4. Now reverse prompt engineer the following [your text]. Be sure to capture the
tone, syntax, language, and writing style of the text for the prompt you come up
with.
Examples
• Apple AirPods Copy - Wireless. Effortless. Magical. With plenty of talk and
listen time, voice-activated Siri access, and an available wireless charging case,
AirPods deliver an incredible wireless headphone experience. Simply take them
out and they’re ready to use with all your devices. Put them in your ears and
they connect immediately, immersing you in rich, high-quality sound. Just like
magic.
RGC Prompting:
This framework presents a robust structure that can be applied universally to
any input and intended output. Its objective is to establish a standardized
format that optimizes the framing for ChatGPT and thereby enhances its
performance across a broad spectrum of inputs.
Prompt Formula
• Role - ChatGPT’s persona (You are an expert marketer)
• Context - Who, what, where, why (The emails are for my online audience of
entrepreneurs)
• Constraint - Limitations and guidelines (The emails should be friendly and less
• You are an expert marketer. Create 5 emails ending with a call to action. The
goal is to drive sales to my product. The emails are for my online audience of
entrepreneurs. The emails should be friendly and less than 200 words.
• You are an expert nutritionist. Create a 7 day meal plan for my 5 foot 7, 40
year old, female client who exercises 3 times a week. The goal is for her to lose
1 pound of fat a week by being in a caloric deficit and eating the right amount of
carbs, sugar, and protein. She doesn’t eat pork and wants to spend $200 per
week on food. The meal plan should give the recipes, cooking directions,
preparation times, and a specific meal for breakfast, lunch, and dinner.
I Want You To Act As
Prompting:
This second option presents another robust structure that can be applied
universally to any input and intended output. Its objective is to establish a
standardized format that optimizes the framing for ChatGPT and thereby
enhances its performance across a broad spectrum of inputs.
Prompt Formula
1. “I want you to act as a…” (historian, biologist, etc.) This helps to set the stage
for ChatGPT’s persona.
2.“I will give you…” (my target audience, a specific direction, a product, etc.) This
is where you set up the dynamic between you and ChatGPT.
3.“You will then…” (create 5 emails, make a video script, summarize, etc.)
5.“The important details are…” (target audience, cost per project, etc.) Be sure to
explain all important details and elaborate on specifics from bullet point 2.
6.Refine your output as needed “Be more persuasive” “Put the most important
Example
s
• I want you to act as a personal coach. I will give you my personal and
professional goals. You will then create a 7 day schedule in tabular format for
me to follow in order to hit my goals. My short term daily goals are meditate,
workout, read, and work on my projects. My long term goals are to sign 30 new
clients and save $10,000 over the next 6 months.
• I want you to act as a virtual doctor. I will describe my symptoms and you will
provide a diagnosis and treatment plan. You should only reply with your
explanation, diagnosis, and treatment plan, and nothing else. My important
details are, "I have been experiencing a headache and dizziness for the last few
days, what could be the cause?”
Thank
You !