ChatGPT Prompting 1703119127
ChatGPT Prompting 1703119127
ChatGPT Prompting 1703119127
Better ✅:
Summarize the text below as a bullet point list of the most important points.
Text: """
{text input here}
"""
Better ✅:
Write a short inspiring poem about OpenAI, focusing on the recent DALL-E
Steve Nouri
Better ✅:
Extract the important entities mentioned in the text below. First extract all
company names, then extract all people names, then extract specific topics
which fit the content and finally extract general overarching themes
Desired format:
Company names: <comma_separated_list_of_company_names>
People names: -||-
Specific topics: -||-
General themes: -||-
Text: {text}
Better ✅:
Use a 3 to 5 sentence paragraph to describe this product.
ve Nouri
5-Start with zero-shot, then few-shot
✅ Zero-shot:
Extract keywords from the below text.
Text: {text}
Better ✅:
Extract keywords from the corresponding texts below.
Text 1: Stripe provides APIs that web developers can use to integrate
payment processing into their websites and mobile applications.
Keywords 1: Stripe, payment processing, APIs, web developers, websites,
mobile applications
##
Text 2: OpenAI has trained cutting-edge language models that are very
good at understanding and generating text. Our API provides access to
these models and can be used to solve virtually any task that involves
processing language.
Keywords 2: OpenAI, language models, text processing, API.
##
Text 3: {text}
Steve Nouri
6- Instead of just saying what not to do, say what to do instead
Less effective ❌:
The following is a conversation between an Agent and a Customer. DO NOT
ASK USERNAME OR PASSWORD. DO NOT REPEAT.
Better ✅:
The following is a conversation between an Agent and a Customer. The agent
will attempt to diagnose the problem and suggest a solution, whilst refraining
from asking any questions related to PII. Instead of asking for PII, such as
username or password, refer the user to the help article www.a.com/help/faq
Better : ✅
Steve Nouri
In this code example below, adding “import” hints to the model that it
should start writing in Python. (Similarly “SELECT” is a good hint for the
start of a SQL statement.)
8- Custom instructions for ChatGPT
This feature allows customization of ChatGPT's responses based on your
preferences and can be modified or removed anytime for future conversations.
Examples:
What would you like ChatGPT to know about you to provide better responses?
I work on science education programs for third-grade students.
What would you like ChatGPT to know about you to provide better responses?
I’m a software developer and solely use golang.
When I ask you for code, please just give me the code without any explanation
on how it works. Bias towards the most efficient solution.
What would you like ChatGPT to know about you to provide better responses?
I live in North Carolina with my four children and wife.
Example:
When I ask for help to write something, you will reply with a document that
contains at least one joke or playful comment in every paragraph.
Write a thank you note to my steel bolt vendor for getting the delivery in on
time and in short notice. This made it possible for us to deliver an
important order.
Example:
You will be provided with a pair of articles (delimited with XML tags) about
the same topic. First summarize the arguments of each article. Then
indicate which of them makes a better argument and explain why.
You will be provided with a thesis abstract and a suggested title for it. The
thesis title should give the reader a good idea of the topic of the thesis but
should also be eye-catching. If the title does not meet these criteria,
suggest 5 alternatives.
Example:
Step 1 - The user will provide you with text in triple quotes. Summarize this
text in one sentence with a prefix that says "Summary: ".
Step 2 - Translate the summary from Step 1 into Spanish, with a prefix that
says "Translation: ".
Example:
Example:
Tactic: Instruct the model to work out its own solution before
rushing to a conclusion
First work out your own solution to the problem. Then compare your
solution to the student's solution and evaluate if the student's solution is
correct or not. Don't decide if the student's solution is correct until you
have done the problem yourself.
Example:
Problem Statement: I'm building a solar power installation and I need help
working out the financials.
- Land costs $100 / square foot
- I can buy solar panels for $250 / square foot
- I negotiated a contract for maintenance that will cost me a flat $100k per
year, and an additional $10 / square foot
What is the total cost for the first year of operations as a function of the
number of square feet.
The idea of inner monologue is to instruct the model to put parts of the
output that are meant to be hidden from the user into a structured format
that makes parsing them easy.
Step 1 - First work out your own solution to the problem. Don't rely on the
student's solution since it may be incorrect. Enclose all your work for this
step within triple quotes (""").
Step 2 - Compare your solution to the student's solution and evaluate if the
Example:
student's solution is correct or not. Enclose all your work for this step
within triple quotes (""").
Step 3 - If the student made a mistake, determine what hint you could give
the student without giving away the answer. Enclose all your work for this
step within triple quotes (""").
Step 4 - If the student made a mistake, provide the hint from the previous
step to the student (outside of triple quotes). Instead of writing "Step 4 -
..." write "Hint:".
You will be provided with a document delimited by triple quotes. Your task
is to select excerpts which pertain to the following question: "What
significant paradigm shifts have occurred in the history of artificial
intelligence."
Ensure that excerpts contain all relevant context needed to interpret them -
in other words don't extract small snippets that are missing important
context. Provide output in JSON format as follows:
[{"excerpt": "..."},
...
Example:
{"excerpt": "..."}]
ChatGPT:
USER
Are there more relevant excerpts? Take care not to repeat excerpts. Also
ensure that excerpts contain all relevant context needed to interpret them -
in other words don't extract small snippets that are missing important
context.
Sample Prompt 1:
You will be provided with text delimited by triple quotes that is supposed to
be the answer to a question. Check if the following pieces of information
are directly contained in the answer:
Example:
For each of these points perform the following steps:
Finally, provide a count of how many "yes" answers there are. Provide this
count as {"count": <insert count here>}.
Sample Prompt 2:
tracks the kind of overlap between the candidate answer and the gold-
standard answer.
Use the following steps to respond to user inputs. Fully restate each step
before proceeding. i.e. "Step 1: Reason...".
tracks the kind of overlap between the candidate answer and the gold-
standard answer.
Use the following steps to respond to user inputs. Fully restate each step
before proceeding. i.e. "Step 1: Reason...".
Write a lesson plan for an introductory algebra class. The lesson plan
should cover the distributive law, in particular how it works in simple cases
involving mixes of positive and negative numbers. Come up with some
examples that show common student errors.
Sample Prompt 6:
You will be provided with meeting notes, and your task is to summarize the
meeting as follows:
Sample Prompt 7:
You will be provided with a message, and your task is to respond using
emojis only.
Sample Prompt 8:
The memo should cover the following specific points without deviating from
the topics mentioned and not writing any fact which is not present here:
Project Updates: Provide a brief update on the status of the three ongoing
company projects:
a. Project Alpha: 75% complete, expected completion by May 30th.
b. Project Beta: 50% complete, expected completion by June 15th.
c. Project Gamma: 30% complete, expected completion by July 31st.
Team Recognition: Announce that the Sales Team was the top-performing
team of the past quarter and congratulate them for achieving 120% of
their target.
You will be presented with user reviews and your job is to provide a set
of tags from the following list. Provide your answer in bullet point form.
Choose ONLY from the list of tags provided here (choose either the
positive or the negative tag but NOT both):