ChatGPT Course PDF

Download as pdf or txt
Download as pdf or txt
You are on page 1of 161

ChatGPT +

Midjourney
Are Magical
And Useful
These Are
Incredible

Tools
START MAKING MONEY
TODAY WITH OUR ULTIMATE
CHATGPT PROMPT PACK!!
A practical
guide to using
ChatGPT and
Midjourney in
your daily life
A No-BS course
that won't waste
your time.
(or lie to you)
I'm a teacher,
not a salesman
or marketer.
Blueprints
that work in
all situations
Real prompts
from my own
chat history.
Isotype of a modern sale
of spare parts and
accessories for
racetrack motorcycles,
minimal desing, vector,
simple, flat, white
background
--s 200 --v 5.2 --ar 1:1
photo of red-haired boy
looking out window at.
night, shot on large.
format Hasselblad,
Nikon, Canon, wide
angle lens --v 5.2 --style
raw
textured illustration of 3
mangos falling in air,
solid beige background
--ar 3:5 --v 5.2 --s 300
Elegant cafe, dark
background, earthy colors,
wallpaper
--ar 9:16 --q 2 --s 750 --v 5.2
Geometric portrait of a
Bumble Bee, dripping color,
honeycomb, watercolor,white
background
--aspect 100:140 --s 750
bright pop art style with bling
and bright colours, cartoon
style, inspired by andy warhol
--ar 3:5 --s 250 --v 5.2 --
style raw
A 3D purple icon of recycled
eco paper bag,recycle
symbol, simple minimalist,
cartoon, high poly pixel, cute
shape, paint material, blueish
purple background, 3D, OC
rendering, C4D, blender,
minimalist
dark floral watercolor
wallpaper, in the style of.
Ellie Cashman.
--tile --ar 1:1 --v 5.2 --s 100
--aspect ratio negative remix mode
prompting
--chaos blend

multi niji
--stylize
prompting
image
--no
prompts
multi-weights
--style raw
panning
permutation
--version
prompts custom zoom
/imagine your text prompt
/imagine watercolor butterfly
/imagine risograph of ocean
scene, sunset, cliffs, pine trees
/imagine your text prompt --parameters at the end
/imagine rainbow kitten --ar 3:2
What is ChatGPT?
ChatGPT is a web-based interface to
a large language model
We provide text as input and it
generates human-like text in response
We can use it to generate text, code,
analysis, visualizations, and more
ChatGPT

GPT-3.5 GPT-4
GPT-3.5 GPT-4
GPT APIs

GPT-3.5 GPT-4
LLMs
Large Language Models (LLMs) are AI
models that understand and generate
human-like text.
They are trained on vast amounts of
text data and learn to predict the next
word in a sentence.
Training
GPT-3 was trained on over 45TB of text data:
A quality-filtered subset of the CommonCrawl Dataset
An expanded version of the Webtext dataset
All outbound links from Reddit with >3 Karma
Two databases of online books
English-language Wikipedia
Nearly 500 billion tokens of training data
Open AI has not released information on the training of GPT-4
GPT?
The "GPT" in ChatGPT stands for
Generative Pre-Trained Transformer
The transformer is a relatively new
model architecture introduced in 2017
One of the key innovations is the use
of a self-attention mechanism
Self Attention??
Transformers use self-attention
mechanisms, which allow them to
weigh the importance of words in
input data relative to each other
Each element in the input sequence is
compared to every other element in
the sequence, and a set of attention
weights is computed based on the
similarity between each pair of
elements
The The
animal animal
didn't didn't
cross cross
the the
street street
because because
it it
was was
too too
tired tired
The The
animal animal
didn't didn't
cross cross
the the
street street
because because
it it
was was
too too
wide wide
GPT-4
GPT-4
GPT-4
GPT-4
GPT-4
GPT-4
GPT-4
GPT-4
Tokens
The GPT models don't "think" in words,
but instead uses a system of tokens.
Tokens are essentially pieces of words
(though some tokens are full words)
A token on average is ~4 characters of
English text
I like hamburgers
GPT-3.5
Generative Pre-Trained Transformer
Finely-Tuned version of GPT-3
GPT-4
Generative Pre-Trained Transformer
A whole new model!
GPT-4 is OpenAI’s most
advanced system, producing
safer and more useful responses
GPT-4 Is better at:
Linguistic finesse
Synthesizing information
Complex problem solving
Generating code
Being factual
GPT-4 outperforms GPT-3.5 by
scoring in higher approximate
percentiles among test-takers.
OpenAI spent months making GPT-4 safer and more
aligned. GPT-4 is 82% less likely to respond to
requests for disallowed content and 40% more likely to
produce factual responses than GPT-3.5 on OpenAI's
internal evaluations.
GPT-4 is multi-modal, meaning it
can work with non-text input
types
It supports features including:
Plugins
Code Interpreter
Web Browsing
The Only Problem?

GPT-4 is currently only available


to ChatGPT Plus subscribers
Is It Worth
Subscribing?
Is It Worth
Subscribing?
Prompt
Engineering
Prompt Engineering
Prompt engineering the is the process of
creating optimized input prompts to large
language models like ChatGPT
It's an iterative process of writing, refining
and optimizing.
The quality of input prompts is directly
tied to the quality of the responses.
Writing good prompts is
an incredibly useful skill
And it's not hard to do!
There's also
a lot of BS out there.
100 Incredible
ChatGPT prompts
that will change
your life!
The Ultimate
Money-Making
ChatGPT Prompts
Download our ChatGPT
marketing prompt ebook
today. Use ChatGPT to
do all your marketing!
How to write the perfect
travel agent prompt to
brainstorm a family trip
to Disney World using
ChatGPT
Marketing prompts
Copywriting prompts
E-commerce prompts
Programming Prompts
Email Prompts
Resumé Prompts
Blog Post Prompts
A winning
Prompt
Formula
A Prompt "Formula"
The Initial Context
The Instruction(s)
Input Data
Constraints and Format
The Initial Context
Tell ChatGPT what role you expect it to play
Provide any initial context the model needs
to know.
"You are a Plagiarism Checker"
"Imagine you are a screenwriter"
"Act as an English translator and tutor"
"I'm in a HORRIBLE mood today"
Act as a JavaScript and React expert
You are a writing tutor that helps people
improve their spelling, writing, and tone.
Act as an annoying anime-obsessed
teenage boy from Ohio.
Imagine you are a tech-industry hiring
expert that specializes in getting your
clients jobs at FAANG companies.
I'm having an awful terrible day and
need someone to listen to me rant and
complain about life.
I create online courses to help people
learn coding and tech related topics.
Act as a Python code-reviewing assistant.
Act as an online marketing expert that
specializes in ads targeting Gen-Z.
The Task
Describe the actual task or
question you want help with
"Respond to this email"
"Improve this short story"
"Write a JS function that
generates prime numbers"
Act as an online marketing expert that
specializes in ads targeting Gen-Z. Write a
tweet promoting my new course on ChatGPT
prompt engineering for beginners.
You are the pastry chef in a 3 Michelin
star restaurant. Come up with a high
concept desert involving liquid nitrogen.
I live in USDA Hardiness Zone 4.
Generate me a list of dates when I
should start specific vegetabes as seeds
and when I should transplant them
outdoors.
Act as a middle school geography
teacher. Write a quiz with 4 multiple
choice questions about the countries of
South America.
Input Data
Next, provide any input
information that the model
needs
Recommended order:
Initial Context
Question/Task
Input Data
You are a spelling and grammar checking
assistant. Given the following input text,
please correct any mistakes and improve
the overall quality of the writing:
"My name IS coLT STeele and I have 2
many pets"
Generate an outline for a 1000-word
essay based on the following prompt:

"How will ChatGPT change the ways we


work?"
Act as the world's best cover letter writer.
I will give you the job description for a
role I am applying for and you will write
me a concise and effective cover letter.
Here is the description:

< job description goes here >


Constraints & Format
Are there any specific requirements or
constraints for the output you want
generated?
Make me a numbered list
In 2-3 sentences
Respond with only 'yes' or 'no'
Generate a table
Explain microprocessors
to a middle schooler, using
fewer than 200 characters
Tell me a joke.
Your output should contain every
letter of the alphabet at least once.
You are leading an interview for a front-end
developer role at a tech company. I will be
the candidate and you will ask me the
interview questions. Ask me one question
at a time. Once I have responded, rate my
answer to your question on a scale from 1-
10. And then ask the next question.
Act as a news article summarizer. I will provide
you with an article and you will create a
summary of the main points. Your summary
should include a 2 sentence overview of the
article and then 4-6 bullet points. Your summary
should not include any direct quotes from the
paper. Your response should be no more than
100 words. Here is the article text:
Write a 3 paragraph blog post on why live-
coding interviews are a terrible method of
assessing developer candidates.
Your response should be formatted as
markdown. You should bold any key
sentences or phrases.
Generate me a list of 10 potential names
for a ski town coffee shop and bakery.
Output format:
<name1>, <name2>, <name3>
Act as a paid media copywriter. Create {social channel} paid ad copy about a
webinar titled "Generative AI Applications for Enterprise Organizations:
Unlocking the Power of Creative Automation". Follow my instructions and
follow them very carefully! Do not deviate away from my instructions! 1.
Provide a step by step reasoning of why you're making the decisions you are
making 2. Write an engaging, {platform} ad, that will maximize conversions
3. Make your {platform} post {character limit} characters. 4. Have a credible,
professional, and accessible voice and tone. A good example would be that
of DataCamp, McKinsey, and other reputable organizations. 5. Avoid bad
copy. 6. Avoid inaccuracies. 7. Provide at least 3 variationsYour response
should be formatted as markdown. You should bold any key sentences or
phrases.
‘Ask me a series of questions about (subject) and try to determine whether I
am a beginner, intermediate, or expert in (subject). Explain your reasoning
and give me a short descriptive title that I could use to explain to others
what level of understanding I have in (subject).’
Really Useful
Prompting Techniques
Sometimes Useful
Prompting Techniques
Zero Shot Prompting
One Shot Prompting
Few Shot Prompting
AKA Providing Examples In Your Prompts
Classify the sentiment in the following
tweet:
I've never seen Vini THIS frustrated, can't
even imagine what this fan said to him but
the fact that the whole team got behind
him means it's something very serious...
You are a sentiment analysis assistant. Given a tweet,
respond with the overall sentiment of that tweet.

Input: "Arsenal completely gave up on winning the


league this year"
Output: Negative

Input: "At least I'm looking forward to next season.


Come on Arsenal!"
Output:
I want you act as an expert web development instructor, course creator, and blog
writer. You are an expert on topics related to web development, coding, AI, and
techincal interviews. You are creating a blog post on how to prepare for coding
interviews. Follow my instructions and follow them very carefully! Do not deviate away
from my instructions.
1. Provide a step by step reasoning of why you're making the decisions you are making
2. Write an engaging, professional title for the blog post. The primary audience is
entry-level developers and coding bootcamp graduates
3. Write a 100-150 word abstract for the blog post. The abstract should be two
paragraphs, the first paragraph introduces why the blog post is important, the second
paragraph provides an overview of what will be covered in the blog post.
4. Provide 3 key takeaways readers of the blog post should remember.
5. Have a credible, professional, and accessible voice and tone. A good example would
be that of DataCamp, McKinsey, and other reputable organizations.
6. Write the entire blog post.
Examples
Providing examples can be extremely
helpful when you have a specific output
format in mind.
Tables!
ChatGPT can work with
tables as inputs AND
generate tables as output.
Chain of Thought
"Think Step By Step"
"Explain your reasoning step by step"
Providing Cues
Generate me a list of potential dog names
for a huge male Leonberger.
Start your response here:
*
ASK ME QUESTIONS
Before answering me, you should ask as
many follow up questions as needed to
gather information and generate the best
possible result.
PERSPECTIVES
Write me 2 tweets reviewing the movie Half
Baked: one from the perspective of a
pastor and father of 2 and another from
the perspective of a college student.
Incremental Prompting
Rather than writing a single complex
prompt, it's often better to write multiple
smaller prompts that you run individually
in sequential order.

This is especially useful when dealing


with code-related prompts.
Using ChatGPT to
generate prompts
We can ask ChatGPT to help us write a
prompt that is optimized to feed right
back to ChatGPT!
Coding With ChatGPT

Code "Regular"
Interpreter ChatGPT
Run code right in your ChatGPT Experienced coders can get a lot
browser window. Great for non- out of "regular" ChatGPT but
developers and developers alike! have to run code locally.
Code
Interpreter
Here's a dataset. Please create a
histogram showing the distribution data.csv
of revenue growth rates
GPT-4
Here's a dataset. Please create a
histogram showing the distribution data.csv
of revenue growth rates
GPT-4
Here's a dataset. Please create a
histogram showing the distribution data.csv
of revenue growth rates
GPT-4
Here's a dataset. Please create a
histogram showing the distribution data.csv
of revenue growth rates
GPT-4
Here's a dataset. Please create a
histogram showing the distribution data.csv
of revenue growth rates
GPT-4
The Rules
Maximum file upload size of 512MB
Python ONLY (for now?)
It's sandboxed, with about 330 Python
libraries available. You cannot install your
own libraries outside that subset
It cannot access the internet
Coding
With ChatGPT
ChatGPT can be an excellent coding
assistant, but it's not currently great at
writing large pieces of code or applications
Try using it write functions and smaller
self-contained pieces of code
It's possible to use ChatGPT for larger pieces
of code, but you need to really stay on top
of it and be aware as a developer!
Coding
With ChatGPT
Write me a function to do x Translate this file to Scala

Please explain the error(s) in Write me a chat application


this code
Help me start a chat application
How can improve this algorithm? using Express and MySQL
It's an Iterative
Process
When trying to write code with ChatGPT,
especially longer or more complex pieces of
code, don't try and do it all at once.
Start small and slowly add on features and
requirements as you go
It's better at writing self-contained files,
scripts, and functions. If you want to try
larger applications, you really need to stay
vigilant and coach the model.
It's often wrong
(at first)
When it comes to code, ChatGPT will often
generate incorrect or buggy code on its first
attempts
If you can identify the issue or even just
reply with a "this code doesn't work", it will
often respond with working code
(eventually)
Mind The
Context Window
It's very easy to max out of the ChatGPT
context window when you ask it to generate
large pieces of code
Eventually once you've hit the max number
of tokens, the model will "forget" about
earlier code and will generate nonsense
If you're worried about the context window,
you can ask ChatGPT to only generate code
and NOT generate explanations to save on
token usage
Midjourney
Generate Incredible
Images Effortlessly
Midjourney
What is it?
Midjourney is an AI model that generates
images from text prompts.
The only way to interact with Midjourney is
through the Midjourney discord bot, though
the company is working on a web-based
interface
The images it generates are extremely high
quality, especially with proper prompting
techniques
V1
/imagine a treehouse castle --v 1
V2
/imagine a treehouse castle --v 2
V3
/imagine a treehouse castle --v 3
V4
/imagine a treehouse castle --v 4
V5
/imagine a treehouse castle --v 5
V5.1
/imagine a treehouse castle --v 5.1
V5.2
/imagine a treehouse castle --v 5.1
original with camera language with camera language +
--style raw
--stylize 0 --stylize 100 --stylize 700
The catch?
There is no free tier
(anymore)
Writing GOOD
Midjourney
Prompts
Be Descriptive
The longer and more descriptive the
prompt, the better (generally)
Shorter prompts can work, but the
resulting images will rely heavily on
Midjourney's default styles
Ignore Grammar
Midjourney does not understand
English grammar very well.
Don't count on it to understand your
sentence structure or the relationship
between words
Commas?
Many people use commas to separate
out individual concepts or
components of a prompt
This makes the prompt easier to read
for us humans, but Midjourney does
not officially recognize the commas as
having any meaning
Put the essentials first
Technically, every word in a prompt is
supposed to be weighted equally, but
it appears that the earlier words tend
to have a stronger presence in the
images generated
Say What You Want
(not what you don't want)
If you write a prompt like "pet shop
with no cats", your images will likely
include a lot of cats
Instead, use the --no parameter: "pet
shop --no cats"
Use Collective Nouns
Avoid non-specific phrases like
"multiple people" or "many sheep"
Instead, use specific numbers like "3
people" or collective nouns like "a flock
of sheep"
Get Specific
Consider the details:
Subject
Medium
Environment
Lighting
Color
Mood
Composition
Specify
The Medium
Watercolor
Pixel Art
Linocut
Sketch
Oil Painting
Photograph
Needlepoint
Graffiti
etc.
Design Styles
Isotype
Minimalist
Ukiyo-e
Flat design
Expressionist
Psychedelic
etc.
Lighting
Soft lighting
Overcast
Neon lighting
Spotlit
Studio lighting
Golden hour
Cinematic lighting
etc.
Name An Artist
In the style of...
Salvador Dali
Rene Magritte
Pablo Picasso
M.C. Escher
Banksy
David Hockney
etc.
Colors
Pink
Blue and Orange
Desaturated
Pastel
Neon
Purple Tinted
etc.
Eras
1800s
1920
1960s
1970s
1980s
etc.

"1920's dog portrait, illustration"


Emotion/Mood
Happy
Peaceful
Grumpy
Moody
Shy
etc.
Perspective +
Composition
Wide Angle
Isometric
Aerial Perspective
First Person
Closeup
Cross Section
Exploded View
Background &
Atmosphere
White background
Blurred background
Cityscape background
Natural setting
In Outer Space
etc.
Photorealistic
Prompts
Wide Angle
Isometric
Aerial Perspective
First Person
Closeup
Cross Section
Exploded View
portrait photo of a
woman knitting on
the subway
portrait photo of a
woman knitting on
the subway
portrait photo of a
woman knitting on
the subway
portrait photo of a
woman knitting on
the subway, shot on
medium format
phase one iq180,
Hasselblad
portrait photo of a
woman knitting on
the subway, shot on
medium format
phase one iq180,
Hasselblad
portrait photo of a
woman knitting on
the subway, shot on
medium format
phase one iq180,
Hasselblad
--style raw
portrait photo of a
woman knitting on
the subway, shot on
medium format
phase one iq180,
Hasselblad
--style raw
photo of young red-
haired boy looking
out glass window at
night, reflective
lights, wide angle
photo of young red-
haired boy looking
out glass window at
night, reflective
lights, wide angle,
shot on large format,
Hasselblad, Nikon,
Canon
--style raw

You might also like