0% found this document useful (0 votes)
30 views6 pages

Prompt Engineering for Generative AI

Uploaded by

sirisha jampala
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)
30 views6 pages

Prompt Engineering for Generative AI

Uploaded by

sirisha jampala
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

Master the Art of Prompt Engineering for Generative AI

By Idan Gabrieli

Prompt Examples
• The following list of prompts is used during the training.
• You can copy & paste (and change) each prompt from the table below while reviewing each
lecture during the training.
• Please note! LLM services like ChatGPT use an internal mechanism to create some degree of
randomness in the responses, meaning you may get slightly different answers while running the
same prompts.
• If you need more background information about AI, ML, and Generative AI, consider reviewing
my course - The Next Frontier: Generative AI for Absolute Beginners
• Our framework:

Prompt =
[Instruction] + [Context] + [Examples] + [Persona] + [Format] + [Tone]
Master the Art of Prompt Engineering for Generative AI
By Idan Gabrieli

Section: A Framework for Building Prompts

Lecture Topic Prompt


#1 - (Clearly Define the Tweet classifier You will be provided with a tweet about a movie, and your task is
Required) Instruction to classify the sentiment as positive, neutral, or negative.
Tweet: I loved the new Batman movie! Even due it is quite scary.
Blog title #1 - Generate a blog title for an article about the effectiveness of
diet plans.
#2 - Generate ten blog titles for an article about the
effectiveness of diet plans.
#3 - Generate ten blog titles for an article about the
effectiveness of diet plans. A title must have a maximum of ten
words without using a question structure.
Blog post #1 - Write a blog post about the effectiveness of diet plans.
#2 - Write a blog post about the effectiveness of diet plans. The
article should be broken into four main sections. Each section
should explore a different aspect of the topic and will be limited
to one page while providing scientific evidence, and practical
tips for increasing the effectiveness of diet plans. Include a brief
introduction to set the context and a conclusion summarizing
the key points.
Lesson plan Write a short lesson plan for an introduction to statistics. The
lesson plan should cover topics such as types of data,
descriptive statistics, and probability basics. Come up with
some examples that show common student errors.
Extract keywords You will be provided with a text, and your task is to extract a list
of the top ten keywords:
Probability is a branch of mathematics that measures the
likelihood or chance of an event occurring. It quantifies
uncertainty, allowing us to make informed predictions about
future outcomes based on available data. Probability is
expressed as a number between 0 and 1, where 0 indicates an
impossible event, and 1 represents a certain event. For example,
flipping a fair coin has a probability of 0.5 (or 50%) of landing on
heads, meaning there is an equal chance of getting heads or
tails.
User’s Feedback Analyze the following list of users’ feedback about an online
game. Classify each feedback as positive, negative, or neutral.
Summarize two takeaways from each feedback. Categories
which department should get the feedback: product, support,
marketing, sales. Present it on a table.
Here is the list of user’s feedback.
I love the graphics and gameplay mechanics! It's very engaging.
The matchmaking system is terrible; I often get paired with players far above my
skill level.
The game is okay, but I feel like it needs more content.
Customer support was quick to respond, but they didn’t solve my issue.
I enjoy the community events and competitions.
The in-game purchases are overpriced and not worth it.
The tutorial was helpful for new players.
I find the controls a bit clunky and hard to manage.
It’s nice to see regular updates and patches.
The game crashes often on my device.
I like the lore and story behind the game.

#2 - (Provide just Target audience Generate a tutorial for beginners to build a simple chair from
Enough) Context wood.
Materials and tools Generate a tutorial for building a chair from wood, including a
list of materials like wood, screws, and tools such as a table
saw, power sander, and drill.
Skill level and Generate a tutorial for building a simple wooden chair that takes
required time about three hours and is suitable for novice woodworkers.
Master the Art of Prompt Engineering for Generative AI
By Idan Gabrieli

#3 - Examples (as Poetic style and Write a funny poem about a cat. For example: There once was a
Templates) theme cat with a mighty roar,
Who thought he was king but slept on the floor. He'd chase his
own tail, round and round, Then trip on his paws and flop to the
ground.
Structure of a Write a formal letter to complain about a low-quality new kid’s
Letter bike while complaining about a loose pedal, unbalanced front
wheel, and weak brakes.
Use the following example: Dear [Company Name], I am writing
to express my deepest dissatisfaction with the recent purchase
of [Product]. The quality of the [Product] is not aligned with the
described product description and expected quality from the
company. I would like to get a full refund.
Strategies Generate a list of strategies for online marketing of a new online
course using the following structure. Avoid details for each one.
Strategy #1 – [Content Marketing] – Priority: [High] – Cost: [Low]
Strategy #2 – [Social Media Marketing] – Priority: [Medium] -
Cost: [High]

#4 - (Role Playing with) Hiring manager You are a hiring manager at Google. Create a job description for
Persona a data analyst.
Funny teacher You are a funny teacher. Explain the future of Generative AI in
one paragraph.
Creative artist As a creative artist, how would you use technology to enhance
your work and showcase your portfolio to a wider audience?
Student You're a student struggling to balance your studies, activities,
and social life. How could technology help you stay organized,
manage your time effectively, and reduce stress?

#5 - (Defining the Bullet points List five benefits of learning math in bullet points. The required
Desired) Format format is a list of items in bullet points.
Step-by-step Provide a step-by-step guide for setting up a WordPress blog.
Here I am asking to get a step-by-step format.
Table Create a table of the top popular science fiction movies over the
last 20 years. The table columns will be Year, Movie Title,
Director, and IMDB Rating.
Dialogue Write a short dialogue between a customer and a support agent
resolving a billing issue. The output is a like ping-pong dialog
session.
Q&A Provide five Q&As about the benefits of electric cars. The
required format is a question and an answer. I can take it even
one step further and ask to generate five different possible
answers for each question.
Code Provide a JavaScript code snippet that reverses a string. By
providing the programming language I am asking for a specific
format that aligned with JavaScript.
Checklist Create a checklist for packing items for a weekend trip.
Outline Provide an outline for a report on renewable energy sources.
Emojis You will be provided with text, and your task is to translate it into
emojis. Do not use any regular text. Do your best with emojis
only.
And the text is: Artificial intelligence is a technology with great
promise.

#6 - (Setting the Right) Formal tone Please provide a detailed explanation of the key benefits of
Tone Generative AI.
Less format Hey, could you tell me a bit about the key benefits of Generative
AI?
Engaging and fun Create an engaging and fun post about the key benefits of
prompt engineering for AI content creation.
Grammar mistakes Review the provided text, fix the grammar mistakes and make it
and more formal more formal. Bold all changes that are being made.
Master the Art of Prompt Engineering for Generative AI
By Idan Gabrieli

AI is a general-purpose technology. It means that AI is usefulll for


many things. It can be used to optimizeee the process of
discovering a new medicine, teach a robot to play a game, make
virtual conversations, brainstorm ideas, write content like a
blog, generate new pictures, identify objects in pictures, predict
stock prices, enhance military equipment, and the list is long. It
is a general-purpose technology, like electricity that powers
endless types of machines.
Master the Art of Prompt Engineering for Generative AI
By Idan Gabrieli

Section: Prompt Engineering Methods

Lecture Topic Prompt


#1 - Splitting Complex Chatbot using #1 - How do I set up a development environment for building a
Tasks ChatGPT API ChatGPT-based chatbot, including installing the necessary
libraries and frameworks?
#2 - How can I integrate the OpenAI ChatGPT API into my
application to handle conversations?
#3 - How do I build a user-friendly chat interface using HTML,
CSS, and JavaScript?
#4 - How do I set up a backend (e.g., using [Link]) to manage
API calls to ChatGPT and handle user messages?
Marketing #1 - How do I identify the target audience for my e-commerce
campaign website and create detailed buyer personas to guide my
marketing strategy?
#2 - What steps should I take to craft a compelling unique value
proposition (UVP) that differentiates my website from
competitors?
#3 - How do I set clear, measurable marketing goals and
objectives for the website launch, such as increasing traffic or
generating sales?
#4 - What are the key SEO strategies I should implement to
ensure my new website ranks well in search engines from the
start?
#5 - How do I create a content marketing plan that includes blog
posts, articles, and guides to attract and engage my target
audience?

#2 - Sharing the Glass cracked Alice left a glass of water outside overnight when the
Reasoning Steps temperature was below freezing. The next morning, she found
the glass cracked. Explain step by step why the glass cracked
Blue Chairs A classroom has two blue chairs for every three red chairs. If
there are a total of 30 chairs in the classroom, how many blue
chairs are there? Describe your reasoning step by step.
Climate changes How climate changes influence the sea level rise? Use the
following steps to explain it.
1. Greenhouse gas emissions
2. Melting of ice in polar regions
3. Thermal expansion of seawater

#3 - Using Interactive Birthday party #1 - Generate a list of ideas for a birthday party theme for a 6-
Prompts year-old boy.
#2 - I will go with the Superheroes theme. What should I include
in the party invitation?
#3 - Asking the guests to come dressed up as your favorite
superhero is a great idea. What are the top five fun games or
activities for this theme?
#4 - I will go with Superhero Station. Recommend a list of
materials and quantities for around 20 kids.
Short story #1 - Write a short story about a robot called Miki-Robot who
dreams of becoming more human.
#2 - Describe the regular day of Miki-Robo while working in a
factory to create gadgets. He is confined to the walls of the
factory, but his thoughts are focused on human activities.
#3 - One day, a little curious child stumbled upon Miki-Robo,
and they became good friends. What happened next?

#4 - Generating Blog post on #1 - You are an expert in painting pictures on walls. Generate a
Knowledge as a Pre- painting walls list of best practices being used to paint large pictures on
Step outdoor street walls.
Master the Art of Prompt Engineering for Generative AI
By Idan Gabrieli

#2 - Use the generated information to write a comprehensive


blog post on how to paint a picture on outdoor street walls.
Climate change #1 - Summarize the key trends in global warming over the past
ten years.
#2 - Based on the identified trends, list the major scientific
studies that discuss the causes of these changes.
#3 - Summarize the findings of the listed studies, focusing on the
impact of humans.
#4 - Propose five main strategies to mitigate the impact of
humans on climate change based on the summarized findings.

You might also like