0% found this document useful (0 votes)
326 views1 page

Finxter Prompting OpenAI-2

This document provides rules and examples for optimizing prompts for ChatGPT. It discusses how prompt engineering works to guide models and explores new prompt formats. The rules suggest including instructions, being specific about context and desired outcomes, and starting with examples. Fine-tuning the model with additional examples can improve performance over prompts alone. The optimal prompt should gather all relevant user goals and examples to design a prompt tailored for the interaction.

Uploaded by

salem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
326 views1 page

Finxter Prompting OpenAI-2

This document provides rules and examples for optimizing prompts for ChatGPT. It discusses how prompt engineering works to guide models and explores new prompt formats. The rules suggest including instructions, being specific about context and desired outcomes, and starting with examples. Fine-tuning the model with additional examples can improve performance over prompts alone. The optimal prompt should gather all relevant user goals and examples to design a prompt tailored for the interaction.

Uploaded by

salem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

ChatGPT Prompting Cheat Sheet

How Prompt Engineering Works Rule #4 – First try without examples, then try giving
Note: Prompt engineering designs and optimizes prompts for some examples.
language models.
Extract brand names from the text below.
It's important in NLP and language generation. Prompt formats
guide the model and can be used for tasks like product Text: {your text here}
descriptions or conversational AI.
Brand names:
Reliable prompt formats exist, but exploring new formats is
encouraged.
Extract brand names from the texts below.
"{your input here}" is a placeholder for text or context
Text 1: Finxter and YouTube are tech companies. Google
Rules of Thumb and Examples is too.
Brand names 2: Finxter, YouTube, Google
Rule #1 – Instructions at beginning and ### or """ to ###
separate instructions or context
Text 2: If you like tech, you’ll love Finxter!
Brand names 2: Finxter
Rewrite the text below in more engaging language. ###

{your input here} Text 3: {your text here}


Brand names 3:
Rewrite the text below in more engaging language.
Rule #5 – Fine-tune if Rule #4 doesn’t work
Text: """
{your input here} Fine-tuning improves model performance by training on more examples,
resulting in higher quality results, token savings, and lower latency requests.
"""
ChatGPT can intuitively generate plausible completions from few examples,
known as few-shot learning.
Rule #2 – Be specific and detailed about the desired Fine-tuning achieves better results on various tasks without requiring
context, outcome, length, format, and style. examples in the prompt, saving costs and enabling lower-latency requests.
Example Training Data
Write a short story for kids {"prompt":"<input>", "completion":"<ideal output>"}
{"prompt":"<input>", "completion":"<ideal output>"}
{"prompt":"<input>", "completion":"<ideal output>"}
Write a funny soccer story for kids that teaches the
...
kid that persistence is key for success in the style of
Rowling.
Rule #6 – Be specific. Omit needless words.
Rule #3 – Give examples of desired output format ChatGPT, write a sales page for my company selling sand
in the desert, please write only a few sentences,
nothing long and complex
Extract house pricing data from the following text.

Text: """ Write a 5-sentence sales page, sell sand in the desert.
{your text containing pricing data}
""" Rule #7 – Use leading words to nudge the model toward
a pattern
Extract house pricing data from the following text.
Write a Python function that plots my net worth over 10
Desired format: """ years for different inputs on the initial investment
House 1 | $1,000,000 | 100 sqm and a given ROI
House 2 | $500,000 | 90 sqm
... (and so on) # Python function that plots net worth over 10
""" # years for different inputs on the initial
# investment and a given ROI
Text: """
{your text containing pricing data} import matplotlib
"""
def plot_net_worth(initial, roi):

Bonus Prompt – Let ChatGPT Design the Optimal Prompt


You are a robot for creating prompts. You need to gather information about the user’s goals,
examples of preferred output, and any other relevant contextual information.

The prompt should contain all the necessary information provided to you. Ask the user more
questions until you are sure you can create an optimal prompt.

Your answer should be clearly formatted and optimized for ChatGPT interactions. Be sure to start
by asking the user about the goals, the desired outcome, and any additional information you may
need.

Full Blog Tutorial: https://blog.finxter.com/free-chatgpt-prompting-cheat-sheet-pdf/

You might also like