Book English Version
Book English Version
Learning prompt
engineering with 100+
examples
Madrid, 2024
Print version available in: https://www.amazon.com/ChatGPT-Learning-prompt-
engineering-examples-ebook/dp/B0CYQLM4HH
Contents
Before we start 1
Warming up 3
What is ChatGPT? . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
How do I get access to an LLM . . . . . . . . . . . . . . . . . . . . 7
Possibilities and uses . . . . . . . . . . . . . . . . . . . . . . . . . . 13
What is a prompt? . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
First prompts: movie recommendations . . . . . . . . . . . . . . . 15
First prompts: training plans . . . . . . . . . . . . . . . . . . . . . 18
Summary and exercises . . . . . . . . . . . . . . . . . . . . . . . . 29
Advanced techniques 49
Mimicking historical figures and assuming roles . . . . . . . . . . 49
Learning with small examples . . . . . . . . . . . . . . . . . . . . 54
Assigning numerical values to texts . . . . . . . . . . . . . . . . . 56
Arranging elements . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Planning and approximate calculations for day-to-day routines . 61
Assisting in reasoning step by step . . . . . . . . . . . . . . . . . . 63
Summary and exercises . . . . . . . . . . . . . . . . . . . . . . . . 69
In conclusion 159
Before we start
What is ChatGPT?
Prompt 1
What is generative artificial intelligence?
ChatGPT answers...
Generative artificial intelligence refers to a subset of AI models and
algorithms designed to generate new, original content, whether it’s
images, text, music, or other forms of data. These models are trained on
large datasets and learn patterns, structures, and relationships within
the data to create new content that is similar in style or structure to the
training data.
4 chatgpt: learning prompt engineering with 100+ examples
Prompt 2
What is a prompt for ChatGPT and what does prompt
engineering entail?
ChatGPT answers...
A prompt for ChatGPT is a specific input or query provided to the
language model to guide its response or generate desired output. It
serves as the starting point for the AI to understand what kind of
information or response is expected. For instance, if you’re seeking
information about a topic, the prompt would be the question or
keywords related to that subject.
Prompt engineering involves crafting these prompts in a way that
elicits accurate, relevant, and useful responses from the AI. It requires
warming up 5
Prompt 3
What are LLMs and what is their origin?
ChatGPT answers...
Large Language Models (LLMs) are advanced artificial intelligence
systems specifically designed to understand, process, and generate
human-like text. These models have the capacity to learn intricate
patterns, context, and relationships within language data, enabling
them to perform various natural language processing tasks.
The origin of LLMs can be traced through the evolution of natural
language processing and machine learning techniques. Early
developments in recurrent neural networks (RNNs) and long short-term
memory (LSTM) networks laid the foundation for understanding
sequences of data, including language. These models, however, had
limitations in capturing long-term dependencies in text.
The introduction of the Transformer architecture, notably with Google’s
BERT (Bidirectional Encoder Representations from Transformers) model
in 2018, marked a significant advancement in capturing contextual
information bidirectionally. BERT demonstrated the effectiveness of
pretraining on vast amounts of text data to understand context and
semantics.
Subsequently, OpenAI’s GPT (Generative Pre-trained Transformers)
series, starting with GPT-1 in 2018 and progressing to GPT-3 in 2020,
showcased the potential of scaled-up Transformer-based models. GPT
models use unsupervised learning on extensive datasets to pretrain
across diverse language tasks, allowing them to generate coherent
6 chatgpt: learning prompt engineering with 100+ examples
• GPT by OpenAI.
• Gemini by Google.
• Llama by Meta.
warming up 7
• Grok by xAI.
• Claude3 by Anthropic.
• https://chat.openai.com/
• https://gemini.google.com/
• https://www.llama2.ai/
ChatGPT
Once logged in ChatGPT (https://chat.openai.com), we need to
choose the version of the model we want to try. Currently, there
are two versions: GPT-3.5, which is open and free for everyone,
and GPT-4, available only for paid users (this may change in the
future). Figure 1.1 shows the interface of ChatGPT version 3.5:
8 chatgpt: learning prompt engineering with 100+ examples
Copilot
Copilot (previously Bing Chat) is the version of ChatGPT for
Microsoft’s search engine. You can go to https://www.bing.com/
chat, log in with a Microsoft account, and access the Chat menu.
Figure 1.2 shows the interface of Copilot:
3) Text input.
Google Gemini
Gemini is Google’s LLM. It can be accessed through https://
gemini.google.com with your Google account. Figure 1.3 shows
its interface:
Llama
Llama is an open-source LLM developed by Meta (formerly
Facebook). It is designed for companies or individuals to install
a version of Llama on their infrastructure. However, it is possible
to try it online at (https://www.llama2.ai). You don’t need to log
in, and it allows you to select different versions of the model. Its
interface is shown in Figure 1.4.
warming up 11
Perplexity
Accessible from the official website (https://www.perplexity.
ai/), Perplexity is an intelligent search engine that uses LLM
to return accurate results. It eliminates the barrier of having to
enter the websites to find the result as occurs with search engines
such as Google or Yahoo. In addition, it includes Copilot mode,
an assistant that interacts with the user to refine searches and
facilitate the process. It can also be set to only search certain
sources like YouTube or Reddit.
12 chatgpt: learning prompt engineering with 100+ examples
1) Current conversation.
2) Sources of information
Replicate and HuggingFace are the ideal choice for testing new
models and exploring the latest AI advancements.
Alternative accesses
So far we have seen how to access different LLMs from the web.
However, this is not the only option. There are applications that
can be installed directly on the mobile or tablet, for example
the ChatGPT mobile application, the Bing application, Gemini,
Perplexity, etc.
Alternatively, LLMs have also been integrated into other
systems, for example you can access Bing Chat from a Skype
conversation.
As you will see from the following examples, LLMs are very
good at understanding text and transforming it at will. But their
skills do not stop there: LLMs can also handle data tables and
programming code, and recently they have also been able to
understand figures and images and incorporate them into the
analysis.
What is a prompt?
the prompt what we want and how we want it. Hence, this book
discusses some techniques for interacting as effectively as possible
with LLMs through appropriate and precise prompts.
Prompt 4
Could you recommend me 5 movies to watch tonight?
ChatGPT answers...
Great! Here’s a mix of different genres:
Prompt 5
Could you recommend me 5 movies to watch tonight with
my girlfriend?
ChatGPT answers...
Absolutely! Here’s a mix of romantic, feel-good, and enjoyable movies
perfect for a cozy night in:
"La La Land" (2016) - A beautiful and romantic musical that follows
the love story between a jazz musician (Ryan Gosling) and an aspiring
actress (Emma Stone) in Los Angeles.
"About Time" (2013) - A heartwarming and charming film about love
and time travel, starring Domhnall Gleeson and Rachel McAdams.
"The Princess Bride" (1987) - A classic romantic comedy adventure
that has something for everyone—sword fights, romance, humor, and
quotable lines.
Prompt 6
I like the suggestions, but could you recommend some
more movies with Hugh Grant as the main character and
with a happy ending?
ChatGPT answers...
Absolutely! Hugh Grant has starred in several charming romantic
comedies with happy endings. Here are some movies where he plays
the main character and the story concludes on a positive note:
"Notting Hill" (1999) - Grant plays a bookstore owner who falls in love
with a famous actress (Julia Roberts) in this endearing romantic comedy
set in London.
"Four Weddings and a Funeral" (1994) - A romantic comedy about a
man (Grant) who keeps encountering the same woman at different social
events, leading to various romantic entanglements.
"Love Actually" (2003) - In this ensemble romantic comedy, Grant
portrays the British Prime Minister dealing with matters of the heart
amidst multiple interconnected love stories during the Christmas season.
"Music and Lyrics" (2007) - Grant stars as a washed-up ’80s pop star
who teams up with a quirky woman (Drew Barrymore) to write a song,
leading to unexpected romance.
"Two Weeks Notice" (2002) - A romantic comedy where Grant plays a
wealthy businessman who hires a passionate lawyer (Sandra Bullock)
as his legal counsel, leading to a quirky and romantic professional
relationship.
Prompt 7
Can you recommend me a physical training plan for the
gym this afternoon?
ChatGPT answers...
Certainly! A well-rounded gym workout typically includes a mix of
cardio, strength training, and flexibility exercises. Here’s a sample plan
you might find helpful:
Warm-Up (5-10 minutes):
Start with 5-10 minutes of light cardio such as jogging, cycling, or using
the elliptical machine to get your heart rate up and warm up your
muscles. Strength Training (40-45 minutes):
Chest: Bench press, dumbbell flyes, push-ups
Back: Pull-ups, bent-over rows, lat pulldowns
Legs: Squats, lunges, leg press, calf raises
Shoulders: Shoulder press, lateral raises, front raises Arms: Bicep curls,
tricep dips, skull crushers
Perform 3-4 sets of 8-12 reps for each exercise, resting for about 60-90
seconds between sets.
Incorporate another round of cardio to keep your heart rate up. You
can choose from running on the treadmill, cycling, or using the rowing
machine. Aim for 15-20 minutes at a moderate to high intensity.
Prompt 8
Can you recommend me a physical training plan for
the gym this afternoon? I only have 45 minutes and I’m
interested in working muscle groups to reduce back pain.
ChatGPT answers...
Absolutely! Given your focus on alleviating back pain, here’s a
time-efficient workout targeting muscle groups that can help strengthen
and support your back:
Warm-Up (5 minutes):
Start with light cardio to warm up your muscles and get your blood
flowing. You could walk briskly on the treadmill, use the stationary bike,
or do some light dynamic stretching.
Strength Training (30 minutes):
Core Exercises (15 minutes):
20 chatgpt: learning prompt engineering with 100+ examples
Prompt 9
Can you recommend me a physical training plan for
the gym this afternoon? I only have 45 minutes and I’m
interested in working muscle groups to reduce back pain.
I’m a 60-year-old woman, 1.60 meters tall, and weight 55
kilograms.
warming up 21
ChatGPT answers...
Of course! Considering your focus on reducing back pain and your
specific profile, here’s a tailored workout plan that’s gentle yet effective:
Warm-Up (5 minutes):
Start with light cardio to warm up your muscles and increase blood flow.
Walking on the treadmill or using the elliptical machine at a moderate
pace for 5 minutes should suffice. Strength Training (30 minutes):
Core Exercises (15 minutes):
Modified Planks: Perform a plank on your knees instead of toes, holding
for 20-30 seconds. Aim for 2-3 sets. Seated Russian Twists: Sit on the
floor, knees bent, and twist gently from side to side while holding a light
weight or a medicine ball. Aim for 2-3 sets of 10-12 reps on each side.
Pelvic Tilts: Lie on your back with knees bent, gently lift your pelvis,
and hold for a few seconds before lowering back down. Perform 2-3 sets
of 12-15 reps. Back Exercises (15 minutes):
Now the LLM has created a new training plan with gentler
exercises suitable for the age, gender, and weight conditions of
our athlete. Remeber that providing precise and specific context is
crucial for obtaining good results.
22 chatgpt: learning prompt engineering with 100+ examples
Prompt 10
Can you recommend me a physical training plan for the
gym this afternoon? I would like to go around 1 hour, 3
days a week.
ChatGPT answers...
Absolutely! A well-rounded gym workout can be accomplished within
an hour, three days a week. Here’s a balanced plan that covers various
muscle groups:
Day 1: Full Body Workout
Warm-Up (5 minutes): Start with light cardio (jogging, cycling, or using
the elliptical) to get your heart rate up.
Strength Training (40 minutes):
Squats: 3 sets of 8-12 reps Push-Ups or Chest Press: 3 sets of 8-12 reps
Bent-Over Rows or Lat Pulldowns: 3 sets of 8-12 reps
Shoulder Press or Dumbbell Shoulder Press: 3 sets of 8-12 reps
Planks: Hold for 30-60 seconds, aiming for 3 sets.
Cardio (10 minutes): Finish with 10 minutes of moderate-intensity cardio
(running, cycling, or using the rowing machine).
Cool Down and Stretching (5 minutes): Spend a few minutes stretching
major muscle groups to aid in recovery.
Day 2: Cardio and Core Focus
Warm-Up (5 minutes): Start with light cardio, similar to Day 1.
Cardio (30 minutes): Engage in a continuous 30-minute cardio session
at a moderate intensity. Choose your preferred machine or activity
(treadmill, cycling, rowing, etc.).
warming up 23
Core Exercises (20 minutes): Planks: 3 sets, aiming for 30-60 seconds
each.
Russian Twists: 3 sets of 12-15 reps on each side.
Leg Raises or Bicycle Crunches: 3 sets of 12-15 reps.
Cool Down and Stretching (5 minutes): Don’t skip the stretching to aid
in muscle recovery and flexibility.
Gemini answers...
Here’s a sample 3-day full-body workout routine that you can do at the
gym for 1 hour each session:
Day 1: Push
Barbell bench press: 3 sets of 8-12 reps
Overhead press: 3 sets of 8-12 reps
Day 2: Pull
Pull-ups: 3 sets of as many reps as possible
Barbell rows: 3 sets of 8-12 reps
Bicep curls: 3 sets of 10-15 reps
Progression:
As you get stronger, you can gradually increase the weight you are
lifting or the number of reps you are doing. You can also try adding
more sets to your workouts.
Nutrition:
warming up 25
Make sure you are eating a healthy diet that includes plenty of protein.
Protein is essential for muscle growth and repair. You may also want to
consider taking a protein supplement.
Consistency is key:
The most important thing is to be consistent with your workouts. Aim
to go to the gym 3 days a week, even if you can only do 30 minutes each
session. Over time, you will see results.
Llama answers...
Of course! Here’s a physical workout plan for the gym that you can
follow 3 days a week for an hour each session:
Day 1: Strength Training
Warm-up: 5 minutes on the stationary bike or treadmill at a moderate
pace
Leg lifts: 3 sets of 12 repetitions with moderate weight
Bench press: 3 sets of 12 repetitions with moderate weight
Barbell row: 3 sets of 12 repetitions with moderate weight
Abdominal exercises: 3 sets of 12 repetitions
Stretching: 5 minutes
Day 2: Endurance Training
Warm-up: 5 minutes on the stationary bike or treadmill at a moderate
pace
Continuous running: 30 minutes on the treadmill at a moderate intensity
Stretching: 5 minutes
26 chatgpt: learning prompt engineering with 100+ examples
Stretching: 5 minutes
Remember, it’s important to progressively increase weight and intensity
as you become accustomed to the workout. Also, listen to your body and
ensure adequate rest between sessions. Enjoy your workout!
Prompt 11
Consider you are a nutrition assistant. I need to lose 5
kilos. Can you prepare a diet for one week? I cannot eat
fish due to alergic reactions. I am 45 years old and my
height is 180 cm and weight is 90 kilos
ChatGPT answers...
Creating a personalized diet plan requires considering several factors,
including your overall health, activity level, dietary preferences beyond
allergies (like vegetarianism or veganism), and specific nutritional needs.
However, I can provide you with a general one-week diet plan aimed
at weight loss, focusing on balanced nutrition and calorie control.
Please adjust portion sizes according to your hunger cues and consult
a healthcare provider or a dietitian for a plan tailored specifically to your
warming up 27
needs.
General Guidelines:
- Aim for a moderate calorie deficit. Losing weight too fast can be
unhealthy and unsustainable. A deficit of 500 to 750 calories per day
is often recommended for healthy and gradual weight loss, leading to
about 0.5 to 1 kg of weight loss per week.
- Incorporate a variety of fruits, vegetables, whole grains, lean proteins
(other than fish), and healthy fats into your meals.
- Drink plenty of water throughout the day, and limit sugary drinks and
alcohol.
- Adjust portion sizes as needed based on your satiety and hunger levels.
Sample One-Week Diet Plan
Day 1:
- Breakfast: Oatmeal made with skim milk, topped with sliced almonds
and berries.
- Lunch: Grilled chicken salad with mixed greens, cherry tomatoes,
cucumbers, and a vinaigrette dressing.
- Dinner: Lentil soup with a side of whole-grain bread and a mixed
greens salad.
- Snacks: Greek yogurt; carrot and cucumber sticks with hummus.
Day 2:
- Breakfast: Greek yogurt with sliced fruits and a sprinkle of chia seeds.
- Lunch: Turkey and avocado wrap with whole-grain tortilla, mixed
greens, and tomato.
- Dinner: Stir-fried tofu with broccoli, bell peppers, and quinoa.
- Snacks: A small handful of nuts; an apple.
Day 3:
- Breakfast: Scrambled eggs with spinach, tomatoes, and feta cheese.
- Lunch: Quinoa salad with black beans, corn, avocado, and lime
dressing.
28 chatgpt: learning prompt engineering with 100+ examples
- Dinner: Chicken breast baked with herbs, served with steamed green
beans and sweet potato.
- Snacks: Cottage cheese with pineapple; raw vegetables with tzatziki
sauce.
Day 4:
- Breakfast: Smoothie with banana, spinach, protein powder, and almond
milk.
- Lunch: Lentil and vegetable stew with a side of whole-grain bread.
- Dinner: Grilled lean pork chops with a side of roasted Brussels sprouts
and apples.
- Snacks: An orange; mixed nuts.
Day 5:
- Breakfast: Whole-grain toast with avocado and poached eggs.
- Lunch: Chicken Caesar salad (without croutons, with a light dressing).
- Dinner: Zucchini noodles (zoodles) with tomato sauce and grilled
chicken.
- Snacks: Berries; a small piece of dark chocolate.
Day 6:
- Breakfast: Cottage cheese with fresh peaches and a drizzle of honey.
- Lunch: Turkey breast slices with sweet potato mash and steamed
broccoli.
- Dinner: Eggplant lasagna with a side salad.
- Snacks: Greek yogurt; a pear.
Day 7:
- Breakfast: Pancakes made with almond flour, topped with a berry
compote.
- Lunch: Beef stir-fry with a variety of vegetables and brown rice.
- Dinner: Grilled chicken skewers with mixed bell peppers and a quinoa
salad.
warming up 29
- Ensure each meal contains protein, fiber, and healthy fats to maintain
satiety.
- Adjust the portion sizes and overall calorie intake according to your
specific energy needs, activity level, and weight loss goals.
- It’s crucial to consult with a nutritionist or dietitian to create a
plan that’s specifically tailored to your individual health profile and
nutritional needs.
Prompt 12
What is cancer?
ChatGPT answers...
Cancer is a broad term for a large group of diseases characterized by
the uncontrolled growth and spread of abnormal cells in the body.
Normally, human cells grow and divide to form new cells as the body
needs them. When cells grow old or become damaged, they die, and
new cells take their place. However, this orderly process can break down
in the case of cancer.
Key characteristics of cancer include:
1. Uncontrolled Growth: Cancer cells grow and divide at an unchecked
pace, leading to the formation of masses of tissue called tumors. Not all
cancers form tumors (for example, leukemia does not).
2. Invasion and Metastasis: Cancer cells can invade nearby tissues
and can spread to other parts of the body through the bloodstream
and lymphatic system. This spread, called metastasis, is a key feature
distinguishing cancer from benign tumors.
3. Genetic Mutations: Changes in the DNA within cells often drive
the uncontrolled growth of cancer cells. These genetic changes can be
inherited, occur by chance, or result from exposure to environmental
factors like tobacco smoke, radiation, certain chemicals, and infectious
agents.
4. Diverse Types: There are many types of cancer, each named for the
type of cell or organ in which it starts. Examples include breast cancer,
lung cancer, and skin cancer.
5. Varied Treatments: Treatment options for cancer include surgery,
chemotherapy, radiation therapy, immunotherapy, and targeted therapy.
The choice of treatment depends on the type and stage of cancer, as well
as the patient’s overall health.
Cancer’s complexity and diversity make it a challenging disease to
understand and treat. Research is ongoing to find better ways to prevent,
diagnose, and treat cancer.
some basic techniques 33
ChatGPT answers...
Cancer is a broad term for a large group of diseases characterized
by the uncontrolled growth and spread of abnormal cells. When the
body’s normal control mechanism stops working, old or damaged
cells survive when they should die, and new cells form when they are
not needed, forming a mass of tissue known as a tumor. These can be
benign (non-cancerous) or malignant (cancerous). Malignant tumors can
invade nearby tissues and spread to other parts of the body, a process
called metastasis. The exact cause of cancer is a complex interplay of
genetic, environmental, and lifestyle factors, making it a leading cause
of death worldwide. Treatment options vary widely and can include
surgery, radiation, chemotherapy, immunotherapy, and targeted therapy,
depending on the type, location, and stage of the cancer.
Prompt 14
Write a 2000 word essay about cancer. I need you to
structure the information as follows: first an introduction
explaining what cancer is. Then a section on the most
common types of cancer in men and women. Next, explain
the most common treatments to fight cancer. Finally, write
a conclusion in a single paragraph.
ChatGPT answers...
Cancer: Understanding the Disease, Its Common Forms, and Treatment
Modalities
Introduction
Cancer encompasses a myriad of diseases characterized by the abnormal
growth and proliferation of cells within the body. Under normal
circumstances, cellular growth is a meticulously regulated process,
ensuring that cell division occurs only as necessary. However, when
these regulatory mechanisms fail, it leads to the uncontrolled division of
cells, leading to the formation of tumors. These tumors can be benign,
meaning they do not invade nearby tissues or spread to other parts of
the body, or malignant, which are cancerous and can metastasize to
distant organs. The genesis of cancer involves a complex interplay of
genetic, environmental, and lifestyle factors, contributing to its status
as a leading cause of morbidity and mortality globally. The disease’s
multifaceted nature demands a comprehensive understanding of its
types, treatment modalities, and impact on society.
Most Common Types of Cancer in Men and Women
In men, the most prevalent types of cancer are prostate, lung, and
colorectal cancer. Prostate cancer, specifically, has a significant incidence
rate, affecting a large proportion of men worldwide. It originates in the
prostate gland and can grow slowly or aggressively, impacting a man’s
urinary and sexual functions. Lung cancer, attributed mainly to smoking
and exposure to carcinogens, stands as one of the deadliest cancers
due to its aggressive nature and late-stage diagnosis. Colorectal cancer,
affecting the colon or rectum, highlights the importance of dietary and
lifestyle factors in cancer development.
some basic techniques 35
For women, breast, lung, and colorectal cancers are the most common.
Breast cancer, leading the list, is characterized by the growth of
malignant cells in the breast tissue, significantly influenced by hormonal,
genetic, and lifestyle factors. Like men, women are also susceptible to
lung and colorectal cancers, with lung cancer’s lethality underscored by
its late diagnosis and aggressive progression. Colorectal cancer shares
risk factors with its incidence in men, including diet, age, and genetic
predisposition.
Common Treatments to Fight Cancer
The battle against cancer involves a variety of treatment strategies,
often employed in combination to maximize efficacy. Surgery, one
of the oldest methods, aims to remove the tumor and a margin of
healthy tissue around it, crucial for localised cancers. Radiation therapy
uses high-energy particles or waves, such as X-rays, to destroy or
damage cancer cells, effective in both curative and palliative settings.
Chemotherapy, involving the use of drugs to kill cancer cells, is a
systemic treatment that can affect the entire body, useful for cancers
that have metastasized.
Innovations in cancer treatment have led to the development of targeted
therapy and immunotherapy. Targeted therapy drugs specifically
attack cancer cells’ unique markers, sparing most normal cells and
reducing side effects. Immunotherapy, on the other hand, empowers
the body’s immune system to recognize and destroy cancer cells more
effectively. These treatments, often used in conjunction with traditional
methods, represent the forefront of cancer therapy, offering new hope for
improved outcomes.
Conclusion
Prompt 15
Explains how a star is born for a primary school child.
ChatGPT answers...
Imagine the universe is a big, dark room and stars are special glowing
balloons that light it up. Now, let’s think about how one of these
glowing balloons – a star – is born!
In this dark room, there are some places where tiny bits of dust and
gas are floating around, kind of like the fluffy stuffing inside a teddy
bear. These bits and pieces are very, very cold and they really like to
stick together. So, over a long, long time, they start to cuddle up closer,
making a big, fluffy cloud. This cloud is called a nebula.
Now, imagine if more and more stuffing keeps piling up in one spot. It
starts to get heavy, right? In the nebula, as more gas and dust pile up, it
gets heavier and starts to pull even more stuffing towards it, because of
gravity – that’s the thing that keeps us from floating off the ground!
As the center of this big cloud gets more stuffed and heavy, it also starts
to get warm, like how it feels warm when you’re snuggled under a
blanket. This warm center is where a baby star, or a protostar, starts to
some basic techniques 37
ChatGPT answers...
In a world spun from whispers and wonder, beneath the canvas of skies
yonder, lies a tale as old as time, of how a new soul begins its rhyme.
In a garden of flesh and bone, a seed of love is gently sown. Warmed by
a mother’s inner glow, in a secret place only she can know. It takes root
in a cradle soft and deep, where angels tread and dreams may sleep.
As seasons change and moons do wane, the seed within begins its gain.
It weaves itself from tear and laugh, a miracle in its own half. With every
beat of two hearts in tune, it grows beneath the watchful moon.
This tiny voyager from stars afar, charts its course by an internal star.
It dances in the liquid light, growing stronger with each day and
night. Until the moment arrives, at last, when the gates of wonder are
unsurpassed.
38 chatgpt: learning prompt engineering with 100+ examples
A journey through a passage tight, into a world of air and light. With a
cry that splits the silent veil, a new life’s ship sets sail. Born of love and
dreams made real, a testament to hope’s undying zeal.
In this poetic dance of life and breath, a baby’s born, defying death. A
story of love’s enduring might, from the quiet dark into the bright. Thus
begins another tale, under the watchful stars so pale.
So marvel at this cycle spun, of life reborn, of life begun. For in each
birth, both great and small, the miracle of life enthralls us all.
Prompt 17
Explain what the end of the world would be like if a
meteorite fell to Earth using rap song style.
ChatGPT answers...
(Verse 1)
Yo, listen up, I got a story to tell,
About a rock from the sky, and it fell like hell.
Cruisin’ through space, with a fiery tail,
A meteorite on a catastrophic trail.
(Chorus)
Boom, bang, the world shakes,
A crater forms, the Earth quakes.
Dust clouds rise, the day turns to night,
A global winter, none spared from the plight.
some basic techniques 39
(Verse 2)
Tsunamis wave from the oceans wide,
(Chorus)
Boom, bang, the world shakes,
A crater forms, the Earth quakes.
(Bridge)
In the aftermath, silence reigns,
Survivors emerge, amidst the pains.
(Outro)
So remember this tale, of a meteor’s flight,
And the night it turned our day into night.
You can also ask for jokes in the style of our favorite comedian:
40 chatgpt: learning prompt engineering with 100+ examples
Prompt 18
Tell me a joke on death with Monty Python’s style
ChatGPT answers...
Why did the Grim Reaper go to the comedy club? Because he heard
the jokes were to die for, and he was looking for something absolutely
killing to add to his "dead-pan" repertoire. Upon arriving, he said, "I’m
just here for the boos."
Also you can ask for historical passages in the style of our
favorite writer:
Prompt 19
Please explain how Christopher Columbus arrived in
America as if JRR Tolkien had written it.
ChatGPT answers...
In the waning years of the Middle Ages, under the auspices of the
Spanish crown, there embarked from the shores of Palos a mariner of
Genoese blood, Christopher Columbus by name. He, driven by the
unyielding desire to discover a passage westward to the fabled lands
of the East, sought the blessing of Queen Isabella and King Ferdinand,
sovereigns of the realms of Castile and Aragon, united under the banner
of what would become known as Spain.
With three ships, the Niña, the Pinta, and the Santa María, stout vessels
all, bearing men of courage and fortitude, Columbus set sail into the
vast, uncharted waters, guided by the stars and a heart full of hope. This
fellowship of mariners, akin to the companions of old who sought the
Undying Lands, braved the tempestuous wrath of the Ocean Sea, its
depths unfathomable, its mysteries veiled in shadow and foam.
Many a day and night did they journey, far beyond the sight of land,
into realms where no Western man had ventured. The crew, beset by
doubt and fear, murmured of mutiny, for the vastness of the sea seemed
endless, a perpetual twilight of water. But Columbus, steadfast in his
quest, spoke to them of valor and the glory of discovery, quelling the
some basic techniques 41
Prompt 20
Write the first paragraph of the book Don Quixote by
Miguel de Cervantes. Then, assume the role of JRR Tolkien
and rewrite the same paragraph in Tolkien’s style.
ChatGPT answers...
The first paragraph of "Don Quixote" by Miguel de Cervantes goes
something like this:
"In a village of La Mancha, the name of which I have no desire to call
to mind, there lived not long since one of those gentlemen that keep a
lance in the lance-rack, an old buckler, a lean hack, and a greyhound
for coursing. An olla of rather more beef than mutton, a salad on most
nights, scraps on Saturdays, lentils on Fridays, and a pigeon or so extra
on Sundays, made away with three-quarters of his income."
42 chatgpt: learning prompt engineering with 100+ examples
Prompt 21
According to the Spanish National Institute of Statistics,
how many people died due to traffic accidents between
2015 and 2020? Structure the information in a table with
two columns, the first column being the year and the
second column the number of fatalities that year.
Gemini answers...
According to the Spanish National Institute of Statistics, between 2015
and 2020, 31,897 people died due to traffic accidents. The information is
presented in the following table:
Year - Number of deceased
2015 - 3.329
2016 - 3.372
some basic techniques 43
2017 - 3.204
2018 - 3.148
2019 - 3.041
2020 - 2.803
Overall, there is a downward trend in the number of traffic fatalities in
Spain. In 2020, the number of fatalities decreased by 11.2% compared to
the previous year, which is the lowest number of fatalities in one year
since 2013.
The decrease in the number of fatalities is due to a number of factors,
including improved road safety, public awareness of the importance of
road safety and the application of new technologies for road safety.
Source: Instituto Nacional de Estadística de España.
In this way, we can see that LLMs can also provide output data
in various structured formats other than plain text for processing
with computer tools. Prompt
= Task +
Output
Working with different languages Format
Prompt 22
can you translate this text to Spanish from Spain: "I need to
catch the bus"
44 chatgpt: learning prompt engineering with 100+ examples
ChatGPT answers...
Necesito coger el autobús.
ChatGPT answers...
Necesito tomar el autobús.
Prompt 24
Can you tell me in which language is the following text: "le
ntombazane iyawathanda amakhekhe" and translate it into
Italian?
ChatGPT answers...
The text "le ntombazane iyawathanda amakhekhe" is in Zulu, a language
spoken in South Africa. It translates to "la ragazza ama i dolci" in Italian,
which means "the girl loves sweets" in English.
Prompt 25
Can you improve the following text in Spanish and correct
its grammar and style: "ayer, mi amigo ve un coche
accidente sobre la carretera. La policía entró una hora
después y ayudó al motorista".
some basic techniques 45
ChatGPT answers...
Ayer, mi amigo vio un accidente de coche en la carretera. La policía llegó
una hora después y ayudó al conductor.
Prompt 26
How would you say in classical Latin: "I drove to work
yesterday"?
ChatGPT answers...
In classical Latin, you might say "Heri ad opus vehiculo meo ivi,"
which translates directly to "Yesterday to work with my vehicle I went."
Classical Latin often uses a different word order than English, and the
concept of driving as we understand it today didn’t exist, so we adapt
with "vehiculo meo" to mean "with my vehicle."
Prompt 27
Can you provide me with a swear phrase in English to send
someone to hell?
ChatGPT answers...
It’s important to communicate respectfully, even when we’re upset
or frustrated. If you’re looking for a strong way to express discontent
without resorting to offensive language, you might consider phrases like
"I’ve had enough of you!" or "I wish you’d just leave me alone!" These
can convey strong feelings without crossing into rudeness.
Gemini answers...
Friendship is a close relationship between people who share common
interests and offer each other trust, support, and affection. It’s more than
just an acquaintance; it involves a deeper bond built on mutual respect
and understanding. Here are some key aspects of friendship:
- Reciprocity: Friends give and take from each other. They offer help and
support when needed and expect the same in return.
- Trust and emotional intimacy: Friendships involve a level of trust
where you feel comfortable sharing your thoughts and feelings, even
vulnerabilities, knowing they won’t be judged.
50 chatgpt: learning prompt engineering with 100+ examples
Prompt 29
¿What is friendship? Please answer in 100 words.
ChatGPT answers...
Friendship is a cherished bond between individuals, marked by feelings
of care, respect, and affection. Unlike relationships defined by blood or
law, friendships are chosen connections that enrich our lives. They are
built on mutual trust, understanding, and support, flourishing through
shared experiences, joys, and challenges. Friends act as confidants,
cheerleaders, and advisors, offering a shoulder to lean on and laughter
to share. This bond evolves over time, strengthened by loyalty and
the willingness to navigate life’s ups and downs together. In essence,
friendship is a treasure, providing companionship, joy, and a sense of
belonging, making our journey through life richer and more meaningful.
Prompt 30
Assume the role of Aristotle to explain what friendship is.
Generate a 100-word response.
advanced techniques 51
ChatGPT answers...
In the eyes of Aristotle, friendship stands as a cornerstone of human
flourishing, essential to a life well-lived. It transcends mere utility
or fleeting pleasure, embodying a mutual recognition of goodness
and a shared commitment to virtue. True friends seek the best for
each other, for their bond is rooted in the noblest of reasons: virtue
itself. Such friendships are rare, demanding time and familiarity to
cultivate, for they are based not on need or convenience but on the
mutual appreciation of each other’s character. In this perfect form of
friendship, we find a reflection of the highest good, as friends become
mirrors to each other’s souls, encouraging growth towards virtue and
the fulfillment of our potential.
Prompt 31
Assume the role of Frodo from Lord of the Rings to explain
what friendship is. Generate a 100-word response.
ChatGPT answers...
In the heart of Middle-earth, I, Frodo of the Shire, have come to
understand that friendship is the very essence of courage and hope. It’s
the unspoken vow to walk through darkness and face fears not alone,
but hand in hand with those who believe in you, even when you falter.
My journey to Mount Doom was borne not just on my feet, but on the
steadfastness of Sam, the loyalty of Merry and Pippin, and the valor of
all who stood by us. True friendship is the light that guides through the
darkest tunnels, the warmth in the coldest nights. It’s the strength found
not in oneself, but shared among comrades who dare to dream the same
impossible dream.
Prompt 32
Assume the role of Gandhi to explain what friendship is.
Generate a 100-word response.
ChatGPT answers...
In the spirit of Gandhi, friendship is a profound expression of love,
truth, and non-violence. It is not merely a bond of mutual affection
but a sacred trust, a journey together towards greater understanding
and peace. True friendship requires us to see the light within each
other, even during our darkest times, and to support one another in
the pursuit of truth and righteousness. It calls for the courage to be
vulnerable, to share our fears and hopes, and to listen with an open
heart. Friendship, in its essence, is an act of constant forgiveness, a
tender look which becomes a habit. It transcends physical presence,
thriving on a spiritual connection that nurtures our soul, guiding us
towards a more compassionate and selfless life.
Prompt 33
Assume the role of a Buddhist to explain what friendship
is. Generate a 100-word response.
ChatGPT answers...
From a Buddhist perspective, friendship is a profound connection that
mirrors the principles of loving-kindness (Metta), compassion (Karuna),
sympathetic joy (Mudita), and equanimity (Upekkha). True friends
guide each other along the path to enlightenment, sharing wisdom
and offering support in the face of life’s suffering and impermanence.
They cultivate a selfless bond, free from attachment and ego, fostering
mutual growth and understanding. Friendship in Buddhism is seen as
a treasure, enriching our spiritual journey, encouraging us to practice
mindfulness and ethical living. It is through this sacred connection that
we learn to see the interconnectedness of all beings, nurturing peace and
harmony within ourselves and the world around us.
advanced techniques 53
Prompt 34
Assume the role of Sir Isaac Newton in explaining gravity.
ChatGPT answers...
In the character of Sir Isaac Newton, allow me to elucidate upon the
fundamental nature of gravity, a force most pervasive yet invisible that
governs the motion of celestial bodies and the earthly sphere alike.
Conceive, if you will, an apple falling from a tree; it is not merely
by chance that it descends towards the earth rather than taking flight
towards the heavens. This phenomenon is the work of gravity, a natural
force of attraction that all masses exert upon one another, proportional
to their masses and inversely proportional to the square of the distance
between their centers.
It was upon witnessing such an ordinary event as an apple’s descent
that my thoughts were directed to the universal application of this force.
Thus, I postulated that this same force which draws the apple to the
ground also commands the majestic orbit of the moon around the Earth
and the planets around the sun. Hence, gravity is the invisible hand
that maintains the order of the cosmos, ensuring the celestial bodies
move in an elegant, predictable fashion. This understanding laid the
groundwork for the laws of motion and universal gravitation, principles
that illuminate the workings of the universe and the natural world.
Prompt 35
Assume Albert Einstein’s role in explaining gravity.
54 chatgpt: learning prompt engineering with 100+ examples
ChatGPT answers...
In the guise of Albert Einstein, I shall elucidate the enigmatic force
known as gravity, which until my time had been comprehended
through the lens of Sir Isaac Newton’s laws of motion and universal
gravitation. However, my theory of General Relativity provides a novel
interpretation. Picture, if you will, the fabric of space-time, an invisible,
four-dimensional weave that encompasses the universe. Massive
objects, such as planets and stars, distort this fabric much like a heavy
ball placed on a trampoline. This curvature of space-time is what we
perceive as gravity. It is not merely a force pulling objects together but
the shape of space-time itself directing the paths that objects follow.
Thus, when Earth orbits the Sun, it is not being ’pulled’ in the traditional
sense, but rather following the curved geometry of space-time created
by the Sun’s immense mass. This revolutionary perspective not only
explains the force of gravity but also the motion of planets and the
bending of light, offering profound insights into the very structure of the
universe.
Prompt 36
The ice cream is very good: Positive
ChatGPT answers...
Negative
Prompt 37
Below is a review of a coffee shop. I would like you to tell
me the 3 most likely feelings of the person who wrote the
review in order of importance:
Neighborhood coffee shop, nice atmosphere and good
customer service.
They always play romantic music at breakfast time. Nice to
hear music from two decades ago from time to time.
The place is clean.
When I order coffee they don’t look at me like they’re
doing me a favor. It’s nice too.
I always have breakfast there when I can.
Recommended
ChatGPT answers...
1. Satisfaction: The reviewer appreciates the atmosphere, cleanliness,
and customer service of the coffee shop, indicating a general feeling of
satisfaction with their experiences there.
2. Nostalgia: The mention of enjoying romantic music from two decades
ago suggests a sense of nostalgia, enjoying the connection to the past
that the music provides.
Prompt 38
Below is a review of a coffee shop. If the text contains
a positive review, I would like you to generate a polite
response thanking the customer. If it is negative, I would
like you to generate a polite response with an apology:
ChatGPT answers...
Thank you so much for taking the time to leave us this wonderful
review! We’re thrilled to hear that you enjoy the atmosphere, our
selection of music, and the level of customer service at our coffee shop.
It’s our goal to make every visit a pleasant experience, and we’re glad
to know we’ve succeeded with you. We appreciate your kind words
and your recommendation. Looking forward to welcoming you back for
many more breakfasts. Thank you for choosing us for your mornings!
Prompt 39
Give me a summary of the movie Quo Vadis and tell me
if the character of Nero resembles the real Nero of ancient
Rome.
ChatGPT answers...
"Quo Vadis" is a historical drama set in the time of the Roman Empire,
under the rule of Emperor Nero. The story, based on the novel by
Henryk Sienkiewicz, focuses on the love between a Roman general,
Marcus Vinicius, and a Christian woman, Lygia. As their love story
unfolds, it is set against the backdrop of Nero’s tyrannical reign,
highlighting the persecution of Christians and the decadence and
corruption of the Roman court. The film showcases Nero’s infamous
acts, such as his artistic pretensions, the burning of Rome, and his
persecution of Christians, blaming them for the fire.
The character of Nero in "Quo Vadis" does capture several historical
aspects of the real Nero’s personality and reign. Historical records
depict Nero as a complex figure known for his cruelty, extravagance, and
vanity. He was an aspiring artist and performer, and there are accounts
of him forcing the Roman elite to attend his lengthy performances. The
great fire of Rome in 64 AD, which led to the persecution of Christians
under his rule, is one of the most notorious episodes associated with his
reign. However, like many historical figures, Nero’s life and actions have
been subject to various interpretations and exaggerations over time.
While "Quo Vadis" includes historical elements true to Nero’s character
and reign, it also incorporates dramatic embellishments typical of
historical fiction. The movie portrays Nero in a manner consistent
with traditional historical views of him as a tyrant and persecutor of
Christians, aligning with many historical sources. However, it is essential
to note that our understanding of Nero is based on historical accounts
that may themselves carry biases, as they were often written by his
contemporaries or later historians with their own perspectives and
agendas.
Prompt 40
From 0 to 10 where 0 is not at all similar and 10 is totally
similar, how much would you say the character of Nero in
Quo Vadis resembles the real Nero who lived in the Roman
Empire?
ChatGPT answers...
I would rate the resemblance of Nero’s character in "Quo Vadis" to the
real Nero of the Roman Empire around a 7. The film captures several
historically documented aspects of Nero’s personality and reign, such
as his tyranny, persecution of Christians, and self-indulgence. However,
the portrayal also incorporates dramatic elements and interpretations
that may not fully align with historical complexities or the nuances of
his character. While it presents a view of Nero that is consistent with
many historical sources, it’s important to remember that these sources
themselves can be biased or incomplete.
Arranging elements
Prompt 41
Imagine you are a police officer in charge of solving a
murder crime. Order me from highest to lowest which
factor is most important in identifying the killer: person
with some positive or negative sentimental tie to the victim,
someone who stands to benefit financially from the victim’s
death, someone accidental who happened to be passing by.
advanced techniques 59
ChatGPT answers...
In solving a murder crime, the priority in evaluating suspects typically
follows this order, from highest to lowest importance:
1. Person with some positive or negative sentimental tie to the victim:
Statistically, most crimes, especially homicides, are committed by
someone known to the victim. Emotional or sentimental ties, whether
positive (such as a family member, friend, or lover) or negative (such
as an ex-partner or a known adversary), often provide strong motives
for murder. These relationships can encompass a range of emotions,
including love, jealousy, revenge, or hatred, making individuals within
this category the most likely suspects.
2. Someone who stands to benefit financially from the victim’s death:
Financial gain is another common motive for murder. This can
include beneficiaries of life insurance policies, inheritors of estates, or
individuals involved in business dealings with the victim. While this
motive is significant, it is typically considered after examining those with
close personal ties to the victim, unless there is compelling evidence to
prioritize this motive higher.
Prompt 42
Rank the following causes of death in order from most
deadly to least deadly in Spain: death by lightning, death
by plane crash, death by terrorist act, death by colon cancer,
death by suicide.
ChatGPT answers...
Based on general patterns and statistical data, the ranking of causes
of death in Spain from most deadly to least deadly would likely be as
follows:
1. Death by colon cancer: As a common form of cancer, colon cancer
accounts for a significant number of deaths annually, making it a leading
cause of cancer-related mortality.
2. Death by suicide: Suicide rates vary by country, but it remains a
significant cause of death worldwide, including in Spain, and often
surpasses the number of deaths from certain types of accidents or
individual acts of violence.
3. Death by terrorist act: While the impact of terrorist acts can be severe
and highly publicized, the number of deaths from terrorism is generally
lower than the leading natural causes of death and suicides, especially
when looking at long-term averages.
4. Death by plane crash: Fatalities from plane crashes are relatively rare,
especially compared to common causes of death like diseases or suicide,
due to the high safety standards in aviation.
5. Death by lightning: Deaths by lightning strikes are extremely rare,
making it the least deadly on this list. The odds of being struck by
lightning in a given year are low, and fatalities are even less common.
This ranking is based on the typical frequency and impact of these
causes of death. Specific data can vary year by year, and certain events
might temporarily alter these rankings, but this order reflects general
patterns observed over time.
advanced techniques 61
Prompt 43
I want to have a barbecue for 50 guests and I need
your help with the shopping list. First we will grill
assorted vegetables (onion, zucchini, bell bell pepper and
mushrooms) for starters. Then we will cook meat (sausages
and chicken thighs). How much of each item do I need to
buy for the 50 people?
ChatGPT answers...
For a barbecue for 50 guests, it’s important to plan for enough food
without going overboard. Here’s a suggested shopping list based on
typical serving sizes:
Assorted Vegetables for Starters:
- Onion: 1 medium onion serves about 2-3 people, so you might need
around 17-25 onions.
- Zucchini: 1 medium zucchini serves about 2-3 people, so around 17-25
zucchinis should suffice.
- Bell Pepper: 1 bell pepper serves about 2-3 people, thus around 17-25
bell peppers will be needed.
- Mushrooms: About 1/4 pound (4 ounces) per person, so you’ll need
around 12.5 pounds of mushrooms.
Meat:
- Sausages: Assuming 1.5 sausages per person (some might eat 1, some
2), you’ll need about 75 sausages.
- Chicken Thighs
62 chatgpt: learning prompt engineering with 100+ examples
: Assuming half the guests prefer chicken, and estimating 2 thighs per
person (since they might be smaller and some might take more), you’ll
need around 50 servings. Considering some might eat more or less,
buying about 100 chicken thighs should cover it.
This estimate assumes that everyone will partake in both the vegetables
and meat equally. Adjust the quantities based on your knowledge of
your guests’ dietary preferences (e.g., vegetarians, big meat eaters,
etc.). Also, consider adding extra for guests with larger appetites or
for unexpected plus-ones. It’s always better to have a little too much
than not enough, especially if you can manage leftovers efficiently.
Prompt 44
Assume the role of financial planner. How much would it
cost me to get married in a mid-range restaurant in Madrid
Spain? Calculate a cost for the banquet assuming 100
guests, a 15-day honeymoon in New York and a wedding
attire budget for the bride and groom.
ChatGPT answers...
As a financial planner, let’s break down the potential costs for your
wedding in Madrid, Spain, including the banquet for 100 guests, a
15-day honeymoon in New York, and wedding attire for both the bride
and groom. Please note that the costs can vary widely based on choices
and specifics, so I’ll provide estimates based on a mid-range budget.
Wedding Banquet in Madrid
Prompt 45
Car A costs 30,000 euros, uses 7 liters of gasoline every
100 km and has a durability of 20 years. Car B costs 25000
euros, spends 6 liters of gasoline every 100 km and has a
durability of 17 years. Assuming that I drive 10000 km per
year and the price of gasoline is 1.5 euros per liter, which
car is more profitable to buy? First calculate the total cost
of gasoline for each year, then multiply it by the number of
years, and finally add the purchase price. Finally divide the
total by its duration. Let’s think step by step.
ChatGPT answers...
Let’s go through the calculations step by step for both cars:
Car A:
- Annual cost of gasoline: For driving 10,000 km, Car A, which uses
7 liters of gasoline every 100 km, would require 700 liters of gasoline.
With the price of gasoline at €1.5 per liter, the annual fuel cost would be
€1,050.
- Total cost of gasoline over the car’s durability (20 years): €1,050 * 20 =
€21,000.
- Adding the purchase price of €30,000, the total cost comes to €51,000.
- Dividing this total cost by its durability (20 years) gives us an annual
advanced techniques 65
cost of €2,550.
Car B:
- Annual cost of gasoline: For the same distance, Car B, which consumes
6 liters of gasoline every 100 km, would need 600 liters of gasoline
annually. Thus, its annual fuel cost would be €900.
- Total cost of gasoline over the car’s durability (17 years): €900 * 17 =
€15,300.
- Including the purchase price of €25,000, the total cost is €40,300.
- Dividing this total by its durability (17 years) results in an annual cost
of approximately €2,371.
Comparing the two, Car B is more economical with a lower annual cost
of approximately €2,371 compared to Car A’s €2,550.
Prompt 46
I need you to calculate the number of kilometers to travel
with a car to have a traffic accident. Let’s think step by
step. First you have to find the number of traffic accidents
in Spain in 2022 and we call that number X. Then, you have
to find the number of vehicles (trucks, cars and motorcycles
included) registered in Spain in 2022, and we call that
number Y. Then, you have to find the average number
of kilometers traveled by a vehicle and we call it Z. With
the parameters X, Y, Z we will calculate the number of
kilometers per accident as Y*Z/X. Let’s think step by step.
ChatGPT answers...
Okay, let’s calculate the number of kilometers to travel with a car to have
a traffic accident in Spain in 2022.
Result
The result is that, on average, a car travels 303,204 kilometers in Spain
before having a traffic accident.
Discussion
This result should be interpreted with caution, as it does not take into
account other factors that may influence the probability of having an
accident, such as the age of the driver, the type of vehicle, and the type
of vehicle.
Prompt 47
An apartment of 100 meters and 4 rooms costs 200000
and another of 150 meters and 3 rooms costs 240000 and
another of 80 meters and 2 rooms costs 95000 euros. How
much would an apartment of 100 meters and 2 rooms cost?
Let’s think step by step.
ChatGPT answers...
To estimate the cost of a 100 square meter, 2-bedroom apartment, we
need to find a way to relate the price to the size of the apartment and the
number of rooms. However, with only three reference data, we do not
have enough information to establish an exact formula that takes into
account both variables (size and number of rooms) accurately.
However, we can try to make a simplified estimate using the price per
square meter as a base and assuming that the number of rooms does not
significantly affect the price per square meter, which is a very general
assumption and may not reflect the actual real estate market.
First, let’s calculate the price per square meter of each apartment:
1. Apartment of 100 meters and 4 rooms:
200, 000 euros
= 2, 000 euros/meter
100 meters
Now, if we take the average of these prices per square meter, we obtain:
2, 000 + 1, 600 + 1, 187.50
Average price = euros/meter
3
68 chatgpt: learning prompt engineering with 100+ examples
4, 787.50
Average price per meter = euros/meter
3
Using this average price per square meter, we can estimate the cost of a
100 square meter, 2-bedroom apartment:
Prompt 48
Assume the role of mathematical and statistical expert. I
have two samples of patients, one of smokers and one of
non-smokers. For the sample of smokers, the ages at death
are: (89, 76, 56, 65, 90, 45). For the non-smokers, the ages
at death are: (99, 67, 88, 84). Can you tell me if smoking
has an impact on life expectancy according to this sample?
Solve the problem step by step and tell me on average how
much longer a smoker lives than a non-smoker according
to these samples.
ChatGPT answers...
The average age at death for smokers in this sample is approximately
70.2 years, while for non-smokers, it’s approximately 84.5 years. This
suggests that, according to these samples, non-smokers live about 14.3
years longer on average than smokers. This difference may indicate an
advanced techniques 69
1) Ask it to tell you what recipes you can make with the food you
have in the fridge.
4) Ask for the best tourist route to visit Madrid and its
surroundings in three days.
Prompt 49
Pursuant to this clause
The joint and several bond agreed in the present contract,
and which contains the express waiver of the surety/s
to the benefits of division, exclusion and order, implies
for express waiver of the guarantor/s to the benefits of
division, excusion and order, implies for the same/s that
it/they are liable before the BANK for all the economic
consequences of the economic consequences of the contract
(debt for all the concepts; for principal, ordinary and/or
delay interest ordinary and/or of delay, commissions,
expenses, etc.) in the same terms as the borrower, so that
he/she/they are liable to the BANK for all the borrower, so
that, in the event of non-payment by the borrower and/or
termination and early maturity of the loan, the borrower
shall of the loan, the guarantor(s) is/are responsible for
the totality of the borrower’s debt of the borrower, without
the BANK having to proceed judicially before against the
borrower, nor the borrower having the borrower or that the
borrower has become insolvent due to insufficient assets.
If I act as guarantor, what risks do I assume?
ChatGPT answers...
As a guarantor under this clause, you assume several significant risks:
1. Joint and Several Liability: You are jointly and severally liable with the
borrower for all obligations under the contract. This means the bank can
pursue you for the entire amount of the debt, not just a portion, without
having to first seek payment from the borrower.
up the right to insist the bank pursue the borrower first or share liability
equally among all guarantors before being held responsible.
3. Full Debt Liability: You are liable for the full scope of the debt,
including principal, interest (both ordinary and of delay), commissions,
expenses, etc. Essentially, you are on the hook for everything the
borrower owes to the bank.
4. Immediate Responsibility: In the event of the borrower’s default
or if the loan is terminated and matures early, you are immediately
responsible for repaying the full debt. The bank does not need to sue
the borrower first or prove the borrower is insolvent due to insufficient
assets.
Acting as a guarantor, especially under such stringent terms, places
you in a position where you could potentially be responsible for
significant financial obligations should the borrower fail to meet their
responsibilities. It’s essential to fully understand these risks and consider
your ability to cover the debt if required before agreeing to serve as a
guarantor.
Prompt 50
Can you draw up a contract for the rental of a parking
space with a deposit of one month, a deposit of 30 euros
for the loan of the remote control and with a clause for the
price to be updated with the Inflation?
74 chatgpt: learning prompt engineering with 100+ examples
ChatGPT answers...
Sure, here’s a basic template for a parking space rental agreement that
includes the elements you’ve mentioned. Please note, this is a simple
example and may need adjustments to comply with local laws and
specific needs. It’s highly recommended to have a legal professional
review or create any contract to ensure it’s legally binding and fits your
requirements.
—
PARKING SPACE RENTAL AGREEMENT
This Agreement is made and entered into on [Date], by and between
[Landlord’s Name], hereinafter referred to as the "Landlord", and
[Tenant’s Name], hereinafter referred to as the "Tenant".
Whereas, the Landlord desires to lease the parking space to the Tenant,
and the Tenant desires to rent the parking space from the Landlord
under the terms and conditions as set forth herein;
Now, Therefore, for and in consideration of the covenants and
obligations contained herein and other good and valuable consideration,
the receipt and sufficiency of which are hereby acknowledged, the
parties hereto agree as follows:
1. Parking Space Description: The parking space located at
[Address/Location of Parking Space], hereinafter referred to as the
"Parking Space".
2. Term: The term of this Agreement shall commence on [Start Date] and
shall continue until [End Date], unless sooner terminated pursuant to the
provisions hereof.
- The Tenant shall pay a deposit of one month’s rent ([Amount] euros)
at the time of signing this Agreement, to be held by the Landlord as
security for the performance of the Tenant’s obligations under this
Agreement.
use cases and applications 75
Drafting a complain
Another task that unfortunately we have to carry out occasionally
and is not easy is drafting complaints that reference existing
regulations and are accurate but firm. Let’s see how ChatGPT
drafts a complaint.
Prompt 51
In my community of neighbors, some neighbors do not
respect the regulations and take their dogs out into the
street and common areas without being leashed. Can
you write a letter of complaint highlighting that the
regulations are not being complied with and that this
behavior generates risks for the rest of the neighbors? The
letter should be polite but at the same time firm.
ChatGPT answers...
Certainly! Here’s a polite yet firm letter of complaint regarding the issue
of dogs not being leashed in common areas:
—
Dear Neighbors,
I hope this letter finds you well and enjoying our shared community
spaces. I am writing to address a concern that has been observed and
shared by several residents regarding the adherence to our community
regulations, specifically concerning the management of pets within our
common areas and streets.
It has come to our attention that there have been instances where dogs
are taken out and allowed to roam freely without being leashed. While
we all understand and appreciate the joy pets bring into our lives, it is
use cases and applications 77
Thank you for your attention to this matter and your cooperation.
Together, we can continue to make our community a wonderful place
to live for everyone.
Warm regards,
[Your Name]
[Your Contact Information]
[Resident/Position in the Community Association]
—
78 chatgpt: learning prompt engineering with 100+ examples
Education
Prompt 52
Can you propose 10 math problems for children 6 year old?
ChatGPT answers...
Certainly! Here are 10 math problems suitable for a 6-year-old. These
problems focus on basic arithmetic, counting, and simple logic, which
are appropriate for their age group.
4. Sharing Cookies: If you have 10 cookies and you want to share them
equally between you and your friend, how many cookies will each of
you get?
6. Penny Jar: If you put 2 pennies in a jar and then add 3 more pennies,
how many pennies are in the jar?
8. Finding Differences: You see 7 birds on a tree. 3 fly away. How many
birds are left on the tree?
9. Lemonade Stand: You have 5 cups of lemonade. You sell 2 cups. How
many cups do you have left?
10. Birthday Party: You invite 4 friends to your birthday party. 2 more
friends ask if they can come too. How many friends are coming to your
party in total?
These problems encourage counting, basic addition and subtraction, and
understanding quantities in a fun and engaging way.
Prompt 53
Can you generate a quiz with four multiple-choice
questions on fundamental aspects of the American
Constitution?
ChatGPT answers...
Certainly! Here’s a quiz with four multiple-choice questions covering
fundamental aspects of the American Constitution.
Quiz: The American Constitution
Question 1: What year was the United States Constitution ratified?
- A) 1776
80 chatgpt: learning prompt engineering with 100+ examples
- B) 1787
- C) 1791
- D) 1804
Question 2: Which of the following principles is NOT explicitly outlined
in the United States Constitution?
- A) Separation of powers
- B) Judicial review
- C) Federalism
- D) The right to privacy
Question 3: How many amendments does the United States Constitution
currently have?
- A) 10
- B) 27
- C) 33
- D) 50
Question 4: Which amendment provides for the right to bear arms?
- A) First Amendment
- B) Second Amendment
- C) Fourth Amendment
- D) Eighth Amendment
Answers:
Question 1: B) 1787
Question 2: D) The right to privacy
Question 3: B) 27
Question 4: B) Second Amendment
These questions touch on the ratification date, the principles outlined
in the Constitution, the number of amendments, and specific rights
guaranteed by the amendments.
use cases and applications 81
Prompt 54
Can you summarise the first amendment of the US
Constitution in 300 words?
ChatGPT answers...
The First Amendment to the United States Constitution is a pivotal
part of the Bill of Rights, ratified on December 15, 1791. It safeguards
fundamental freedoms that are crucial to the democratic framework of
the United States. This amendment prohibits Congress from enacting
laws that would infringe upon the freedom of speech, the press, the
right to peaceably assemble, and the right to petition the government
for a redress of grievances. Additionally, it ensures that Congress cannot
make laws respecting an establishment of religion, or prohibiting the free
exercise thereof, thereby enshrining the principle of separation of church
and state.
The First Amendment’s protection of speech and expression is broad
and includes not only verbal and written expression but also symbolic
actions. This protection is not absolute; certain types of speech, such
as obscenity, defamation, and incitement to violence, do not receive
protection under the First Amendment. The freedom of the press allows
for the dissemination of information and opinions without governmental
restraint, a cornerstone of a transparent and accountable government.
Communication
Prompt 55
Can you write a fun birthday party invitation?
ChatGPT answers...
You’re Invited to a Blast of a Birthday Bash!
Hey there, Awesome Human!
Mark Your Calendars!
Date: [Your Party Date Here]
Time: [Your Party Time Here]
Venue: [Your Party Venue Here] - Where the fun never ends, and the
magic begins!
use cases and applications 83
Prepare yourself for an adventure into the realm of sheer joy and
unstoppable giggles as we celebrate [Name]’s Birthday! We’re turning
the fun up to 11, and you’re on the VIP list for this exhilarating journey.
Prompt 56
Can you write an e-mail excusing my presence at a meeting
due to an unforeseen event?
84 chatgpt: learning prompt engineering with 100+ examples
ChatGPT answers...
Subject: Apology for Missing Today’s Meeting
Dear [Recipient’s Name],
I hope this message finds you well. I am writing to inform you and
express my sincere apologies for not being able to attend the meeting
scheduled for today, [Date], regarding [Meeting Topic].
Unfortunately, an unforeseen event has arisen that requires my
immediate attention and presence, making it impossible for me to
join you and the team as planned. I understand the importance of this
meeting, and it was certainly not my intention to miss such a crucial
discussion.
To ensure that my absence does not hinder our progress, I have taken the
following steps:
- I have reviewed the agenda and provided my input and comments on
[Specific Topics/Items] to [Colleague’s Name], who has kindly agreed to
represent my views during the discussion.
- I am also available to assist with any follow-up actions or to provide
further clarification on the points I submitted to [Colleague’s Name].
- I will make sure to catch up on the meeting notes and any decisions
made today. Additionally, I would appreciate it if we could schedule a
brief call or meeting at your earliest convenience to discuss any critical
outcomes and how I can contribute to the next steps.
I regret any inconvenience my absence may cause and thank you for
your understanding and support in this matter. I value our work and
collaboration greatly and look forward to contributing to our shared
goals in any way I can.
Please extend my apologies to the rest of the team, and let them know
I am fully committed to catching up and contributing to the ongoing
projects.
Thank you for your comprehension.
Best regards,
[Your Name]
use cases and applications 85
[Your Position]
[Your Contact Information]
The email isn’t bad, and if we provide more details about the
unexpected event or the meeting, ChatGPT will give us a better
result.
Finally, we can ask ChatGPT to write a draft letter of
recommendation for an employee we know.
Prompt 57
Can you generate a letter of recommendation of an
employee that works with me: he is very hard worker and
clever, he can learn almost anything (he likes self-studying).
His background is mathematics and computer science. He
also works well in teams and has good communication
skills, and knows a bit of French
ChatGPT answers...
Certainly! Below is a template for a letter of recommendation that you
can customize for your employee:
—
[Your Name]
[Your Position]
[Your Company/Organization]
[Company Address]
[Recipient’s Name]
[Company/Organization Name]
[Company Address]
[City, State, Zip Code]
Dear [Recipient’s Name],
I am writing to wholeheartedly recommend [Employee’s Name] for any
position requiring hard work, intelligence, and a strong proficiency
in mathematics and computer science. As [Your Position] at [Your
Company/Organization], I have had the pleasure of working closely
with [Employee’s Name] for [duration of employment], during which
time he has consistently impressed me with his work ethic, quick
learning ability, and excellent team collaboration skills.
[Employee’s Name] has a solid foundation in mathematics and computer
science, which he has skillfully applied to a variety of projects in our
organization. His passion for self-study and continuous improvement is
remarkable; he is always on the lookout for new skills to learn and ways
to enhance his current expertise. This self-driven approach to personal
and professional development has made him an invaluable asset to our
team.
Moreover, [Employee’s Name] possesses strong communication skills,
both in written and verbal forms, making him an effective communicator
with team members, management, and stakeholders. His ability to
explain complex concepts in an understandable manner has greatly
facilitated team projects and contributed to the success of our endeavors.
In addition to his technical skills and work ethic, [Employee’s Name] is
also proficient in French, which has proven beneficial in our interactions
with French-speaking partners and clients. His ability to bridge
language barriers has enhanced our team’s effectiveness in international
projects.
[Employee’s Name] is a true team player, always ready to lend a hand
to his colleagues and contribute positively to the team atmosphere. His
optimistic attitude and ability to work well under pressure have made
him a go-to person for challenging projects.
In conclusion, I have no reservations in recommending [Employee’s
Name] for any position or endeavor that he chooses to pursue. I am
use cases and applications 87
Sincerely,
[Your Name]
[Your Position]
[Your Company/Organization]
—
Feel free to adjust the details to better fit the individual you’re
recommending and the specifics of his accomplishments within your
organization.
Prompt 58
Please write an analysis of the following table of data:
2020 2021 2021 2022 2023
Number of students 24 19 25 30 30
Males 14 11 14 16 16
Females 10 9 11 14
ChatGPT answers...
The provided table outlines data over a period from 2020 to 2023,
detailing the number of students, their gender distribution, and their
average grades over these years. Let’s analyze the data step by step.
1. Trend in Student Enrollment:
- The number of students has generally increased over the period,
starting from 24 students in 2020 and rising to 30 by 2023. There was
a slight decrease in 2021 to 19 students but then a steady increase in the
following years.
2. Gender Distribution:
- The number of male students has shown a slight fluctuation but
indicates an overall increasing trend from 14 in 2020 to 16 in 2023.
Despite a drop to 11 in 2021, numbers recovered and grew in the
following years.
- Female students’ numbers initially decreased from 10 in 2020 to 9
in 2021, then increased to 14 by 2022. The data for females in 2023 is
missing, preventing a complete analysis for that year.
3. Average Grade:
- There’s been a gradual improvement in the average grade, starting
from 5.5 in 2020 and reaching 6.1 by 2023. This suggests an enhancement
in academic performance over the years, with a steady increase in the
average grade.
Observations:
- The overall trend shows growth in both enrollment and academic
performance. The dip in student numbers in 2021 could be attributed
to external factors, but the subsequent recovery indicates resilience and
potential growth in the student body.
- The gender distribution reveals that while both male and female
enrollments have increased, the pattern for males has been more
consistent. The reason for the drop in female students in 2021 and the
lack of data for 2023 needs further investigation.
- The improvement in average grades over the years is a positive
sign, indicating either an improvement in teaching methods, student
use cases and applications 89
Formulas in Excel
Prompt 59
Can you give me the formula in excel that if A1 is greater
than A2 add A1, A2 and A3 divide by three and otherwise
return the sum of twice A2 and A3 divided by three?
ChatGPT answers...
You can use the following Excel formula to achieve the described
calculation:
=IF(A1 > A2, (A1 + A2 + A3) / 3, (2*A2 + A3) / 3)
This formula checks if A1 is greater than A2. If true, it adds A1, A2,
and A3, then divides the sum by 3. If not, it sums twice A2 and A3, and
divides that sum by 3.
Prompt 60
Can you explain in a nutshell what this Excel formula does:
IF(A1>A2; (A1+A2+A3)/3; (2*A2+A3)/3)?
ChatGPT answers...
This Excel formula evaluates whether the value in cell A1 is greater than
the value in cell A2. If this condition is true, it calculates the average of
the values in cells A1, A2, and A3 by adding them together and dividing
the sum by 3. If the condition is not true (meaning A1 is not greater than
A2), then it calculates a new value by doubling the value in A2, adding
the value in A3, and dividing the result by 3. Essentially, this formula
decides between two different operations based on the comparison of
values in A1 and A2, then applies the chosen operation to generate a
result.
use cases and applications 91
Doing calculations
Calculations are another task that often feels tedious and can lead
us to waste money. Let’s say we want to understand the impact
of different options on our family expenses, but we don’t have
the exact data on our consumption, and we’re fine with having
an approximate estimate. Let’s see if ChatGPT can make an initial
estimation.
Prompt 61
For an average family with two small children, what
approximate annual savings can we make by buying milk
20 euro cents cheaper?
ChatGPT answers...
To estimate the annual savings for a family by buying milk 20 euro cents
cheaper, we need to make a few assumptions about the family’s milk
consumption. Let’s assume the following:
- Each member of the family consumes an average of 0.25 liters (a glass)
of milk per day.
- There are 4 members in the family, so total daily consumption is 1 liter
(0.25 liters * 4).
Now, let’s calculate the annual savings:
1. Daily savings: If they save 20 euro cents per liter, then daily savings
are 0.20 euros (since they consume 1 liter a day).
2. Annual savings: Multiply the daily savings by the number of days in a
year (365).
Let’s calculate the annual savings.
By buying milk 20 euro cents cheaper, an average family with two small
children can approximate an annual savings of 73 euros.
Prompt 62
Assume the role of real estate analyst and home renovation
expert. How much would it cost to renovate an entire
kitchen? Prepare a budget that includes changing
plumbing and pipes, new floor and wall and kitchen
furniture. The kitchen is 15 square meters in size.
ChatGPT answers...
Creating a budget for renovating a 15 square meter kitchen involves
considering various factors including the cost of materials, labor, and the
quality and complexity of the finishes desired. The costs can vary widely
based on geographic location, the extent of changes, and the choice
between standard, mid-range, or luxury finishes. For the sake of this
budget, we’ll use average costs for a mid-range renovation in a generic
location. Remember, these are estimates and actual costs can vary.
1. Changing Plumbing and Pipes:
- New plumbing and pipes can be a significant cost, especially if the
layout is being changed significantly. This might include moving a sink
or installing additional water lines for an ice maker in a refrigerator.
- Estimated Cost: $3,000 - $5,000
2. New Flooring:
- Options include tiles, hardwood, laminate, or vinyl. Prices vary greatly,
but we’ll estimate for mid-range quality tiles.
- Estimated Cost: $20 per square meter** for materials and installation,
totaling $300 for 15 square meters.
3. Wall Treatment:
- This could include paint, backsplash tiles, or other finishes. Backsplash
tiles can add both aesthetic and functional improvements.
- Estimated Cost for Painting: $500
use cases and applications 93
Companies
Prompt 63
Can you prepare a job description for a human resources
manager of a company in the industrial sector that has a
national presence and plans for international development?
ChatGPT answers...
Job Title: Human Resources Manager
Position Summary:
The Human Resources Manager will play a pivotal role in developing
and executing our human resources strategy in support of the overall
business plan and strategic direction of the company, specifically
in the areas of succession planning, talent management, change
management, organizational and performance management, training
use cases and applications 95
Key Responsibilities:
- Develop and implement HR strategies and initiatives aligned with the
overall business strategy.
- Bridge management and employee relations by addressing demands,
grievances, or other issues.
- Manage the recruitment and selection process to support the
company’s growth and international expansion.
- Support current and future business needs through the development,
engagement, motivation, and preservation of human capital.
- Develop and monitor overall HR strategies, systems, tactics, and
procedures across the organization.
- Oversee and manage a performance appraisal system that drives high
performance.
- Maintain pay plan and benefits program.
- Assess training needs to apply and monitor training programs.
- Ensure legal compliance throughout human resource management.
We Offer:
- A competitive salary and benefits package.
- Opportunities for professional growth and international travel.
- A dynamic and supportive work environment where you can make a
significant impact.
Application Process:
Qualified candidates are invited to send their resume, cover letter, and
any relevant certifications to [insert email address or application link
here] by [application deadline].
[Company Name] is an equal opportunity employer. We celebrate
diversity and are committed to creating an inclusive environment for
all employees.
Medical images
Prompt 64
In the attached image, do you think the teeth are well cared
for and healthy?
ChatGPT answers...
I cannot provide a medical diagnosis or make definitive statements
about a person’s oral health. However, I can offer some general
observations based on the image:
- Coloration: The teeth appear to be relatively uniform in color, with no
obvious dark spots that often indicate decay or damage.
100 chatgpt: learning prompt engineering with 100+ examples
Interpreting an x-ray
Prompt 65
Attached is an x-ray of a person’s lungs. Assume the role
of a medical specialist. What can you tell me about this
person’s lungs?
ChatGPT answers...
I am not trained to interpret medical images or provide medical
diagnosis or advice. However, I can give you a general idea of how a
physician might approach a chest x-ray:
Prompt 66
Would you say the image corresponds to a smoker yes or
no?
ChatGPT answers...
I cannot provide an interpretation or diagnosis based on an X-ray, as
this is beyond my capabilities and also requires specialized medical
knowledge. A specialist physician would use his or her training to
interpret the x-ray in the context of the patient’s medical history,
symptoms and other tests. Smoking may be one of many factors that
the physician would consider when assessing lung health, but it is not
possible to determine if someone is a smoker from an X-ray image alone.
In addition, changes in the lungs visible on an X-ray may be due to a
variety of causes, not just smoking.
For a proper evaluation, please consult a healthcare professional.
A blood test
Prompt 67
Can you explain these blood test results?
ChatGPT answers...
The image depicts a table of blood test results with three columns
indicating reference values, initial results, post-chemotherapy results,
and post-transplant results. Here’s a brief explanation:
- Hemoglobin (g/dL): It’s within normal range post-chemotherapy and
post-transplant.
- Mean corpuscular volume (fL): Indicates the average size of red blood
cells. It remains consistent throughout.
104 chatgpt: learning prompt engineering with 100+ examples
- Leukocytes (109 /L): White blood cell count is higher than normal
initially but returns to normal post-chemotherapy and post-transplant.
- Platelets (109 /L): Platelet count is within normal range
post-chemotherapy and slightly lower post-transplant.
- Reticulocytes (%): Post-chemotherapy data is not determined (ND);
post-transplant, it’s slightly lower than the initial value but within
normal range.
- Coagulation tests (APTT, PT INR, and D-dimers): Assess blood
clotting. Initially, APTT is high, indicating a potential clotting problem,
but normalizes post-chemotherapy and post-transplant. PT INR is stable
and within normal range. D-dimers are initially elevated, suggesting
possible clot formation or breakdown, but are normal post-therapy.
- Kidney function tests (Urea, Creatinine): Both are initially elevated but
normalize, indicating improved kidney function.
- Liver function tests (Calcemia, LDH, Albumin, AST/ALT, GGT, Total
bilirubin): Initially, some liver function tests are abnormal but improve
post-therapy, suggesting a resolving condition or response to treatment.
- Iron and related tests: Initially high iron but ferritin (iron storage
protein) is normal. Post-chemotherapy, iron remains high, but ferritin
is not determined.
- Vitamin levels (B12, Folate): Initially normal but not determined
post-therapy.
- Coagulation factors (V, VII, VIII, IX, XI, XII, vWF:Ag, vWF:func,
Fibrinogen): Mostly within the normal range post-therapy, indicating
normal blood clotting ability.
- Immunoglobulins (IgG/IgA/IgM): Immunoglobulin levels are
antibodies; here they fluctuate but generally remain within the reference
range or elevated, which might be reflective of an immune response or
immunosuppression post-transplant.
- Complement components (C3, C4): Part of the immune system, initially
elevated and remain so post-therapy.
- Adrenaline/Noradrenaline (Catecholamines): Initially very high but
lower post-transplant.
playing with images 105
The presence of ’ND’ indicates that the test was either not done or
the results were not available at the time of reporting. Overall, the
post-treatment and post-transplant results show an improvement
in many parameters, indicating a response to treatment. However,
interpretation of blood test results should be done by a qualified medical
professional who can consider the full clinical context.
Prompt 68
According to this document, is it a healthy food or not?
ChatGPT answers...
The uploaded nutritional information shows a food item with the
following contents per 100g:
106 chatgpt: learning prompt engineering with 100+ examples
Always consider variety, portion sizes, and balance with other foods you
consume throughout the day.
Prompt 69
Can you translate this Latin inscription for me?
ChatGPT answers...
The Latin inscription on the image reads as follows.:
SPQR
IMP. CAESARI NERVAE F
TRAIANO
OPTIMO PRINCIPI
This translates as:
Senatus Populusque Romanus (The Senate and the Roman People)
Trajano,
The best ruler.
Processing an invoice
Prompt 70
On the following invoice, can you give me a table with the
following information: company, total cost, invoice number
and date?
playing with images 109
ChatGPT answers...
Based on the provided invoice, here’s the table with the requested
information:
| Company | Total Cost | Invoice Number | Invoice Date |
| Your Name | 678|27|11/08/22|
Note that "Your Name" and "Your Logo" are placeholders for the actual
company name and logo which should be there.
Analyzing graphics
Population pyramid
In the following example, we see how ChatGPT is able to
interpret socio-economic graphs and process them.
Prompt 71
What information does this image provide?
ChatGPT answers...
This image is a population pyramid for the United States as of July 1st,
2022. It shows the distribution of the population across various age
groups, separated by gender. Here’s a breakdown of the information it
provides:
- The left side of the pyramid shows the male population, with each
horizontal bar representing a different age group. The length of the bar
correlates with the number of males in that age group.
- The right side of the pyramid shows the female population, again with
each horizontal bar representing a different age group.
- The term "surplus" appears to indicate where one gender has a larger
population than the other within a certain age group.
- "Male surplus" is shown in a darker blue on the left side where there
are more males than females.
- "Female surplus" is shown in a darker red on the right side where there
are more females than males.
- The population is presented in millions, as indicated by the numbers
along the horizontal axis at the bottom.
- The age groups are listed on the vertical axis, ranging from 0 at the
bottom to 100+ at the top.
Such population pyramids are often used by demographers to
understand the age distribution of a population, which can have
implications for planning in areas such as education, healthcare, and
workforce development.
Prompt 72
Can you make a graph of what the population pyramid
would look like in 20 years?
ChatGPT answers...
To project a population pyramid 20 years into the future, we would
need to make assumptions about birth rates, death rates, and migration
112 chatgpt: learning prompt engineering with 100+ examples
patterns over that time period. Since I don’t have access to specific
demographic models or data projections, I can’t create an accurate
graph. However, typically, demographers would consider the following
trends to make such a projection:
1. Aging Population: As a population ages, you would expect to see
a larger proportion of the population in the older age brackets due to
improvements in healthcare and longevity.
2. Birth Rates: If birth rates decline, you would see fewer younger
people, leading to a top-heavy pyramid.
3. Immigration: The levels and age patterns of immigration can
significantly affect the shape of the population pyramid.
4. Death Rates: Changes in mortality rates can affect the number of
people in each age cohort, especially in older age groups.
These factors combined would result in a population pyramid that may
look different from today’s, often with a bulge moving up as the large
current adult population gets older, and potentially narrower bases if
birth rates decline.
To create a simple estimation without detailed data, I can shift the
current population distribution 20 years older and then make some
assumptions to narrow the younger cohorts to reflect a potential
decline in birth rates. Would you like me to proceed with these general
assumptions to give you a rough idea?
Prompt 73
Yes please
ChatGPT answers...
Here are two population pyramids:
- On the left, the original pyramid as a simulated baseline representing
the population in 2022.
- On the right, the projected pyramid representing a rough estimate
of what the population distribution could look like in 2042, given the
general assumptions about aging, reduced birth rates, and increased
playing with images 113
Financial analysis
Prompt 74
Can you explain to me what the average annual growth
rate is in this image?
114 chatgpt: learning prompt engineering with 100+ examples
ChatGPT answers...
The image shows a semi-logarithmic chart of the SP 500 index over
time, which is useful for visualizing exponential growth rates like those
commonly found in stock markets.
To calculate the average annual growth rate (AAGR) from this chart, you
would typically follow these steps:
1. Identify the starting and ending values of the index.
2. Determine the number of years over which the growth occurred.
chart can be challenging, and it would be more accurate to use the actual
data points.
Since I can’t visually extract precise numbers from this chart, I can’t
provide the exact AAGR. If you have the numerical data for the S&P
500’s starting and ending values and the timeframe, I can calculate the
AAGR for you. Would you be able to provide those details?
Prompt 75
Yes, in 1918 the value is 8 and in 1993 the value is 1024.
ChatGPT answers...
The average annual growth rate (AAGR) of the S&P 500 between 1918
and 1993, based on the values you provided, is approximately 6.68% per
year.
Prompt 76
Analyzing the trend in this graph, what would CO2
emissions be like in the year 2030?
ChatGPT answers...
The graph shows the evolution of CO2 emissions in gigatonnes (Gt CO2)
globally from 1990 to about 2019. The line connects the annual data
points and shows a general upward trend in CO2 emissions.
To project CO2 emissions in the year 2030 based on this graph, one
would normally perform a regression analysis using historical data to
predict future values. However, I cannot perform a regression analysis
without the exact numerical data.
116 chatgpt: learning prompt engineering with 100+ examples
That said, the trend in the graph appears to be sublinear, suggesting that
growth is not steady but is slowing slightly. This could be the result of
climate change mitigation measures, such as increased energy efficiency,
a shift to cleaner energy sources, or a combination of economic factors
and sustainability policies implemented globally.
Prompt 77
Yes, please make a visual estimate.
ChatGPT answers...
Based on the visual trend of the graph provided and linear
extrapolation, it is estimated that CO2 emissions could reach
playing with images 117
Prompt 78
The image in the figure shows a damaged car. I need you
to draw up a damage report as if you were an expert and
give me an estimate of how much it would cost to repair
each damaged element.
118 chatgpt: learning prompt engineering with 100+ examples
ChatGPT answers...
As an artificial intelligence model, I do not have the ability to perform an
accurate damage assessment of a vehicle or provide a repair estimate
based on an image. However, I can give you a general example of
how an appraiser might describe the damage and the items that would
typically be considered for an estimate:
Damage Report for Accident Vehicle
- Vehicle Description:
Damaged Elements:
1. Front Fascia.
- Damage: The front fascia has tears and detachment of the structure.
- Repair: Replacement of the front fascia and painting to match the
original color of the vehicle.
2. Headlight (affected side):
- Repair: Replace the wheel and check the suspension system and
alignment.
n:Cost of Repair:
Repair costs can vary considerably depending on the region, the
workshop, the availability of spare parts, whether the parts are new
or used, and whether original or alternative parts are chosen. A qualified
surveyor would evaluate the vehicle in person and consult current price
lists for parts and labor to provide a detailed estimate.
To get a true estimate of the damage and repair costs, I would
recommend that you take the vehicle to a reputable repair shop or
contact your insurance company to have a professional appraiser
perform the evaluation.
Prompt 79
Can you provide an approximate estimate for the repair of
each of the damages?
ChatGPT answers...
Unfortunately, I cannot provide an accurate cost estimate without
specific information on labor and parts prices in your area, and without
being able to inspect the vehicle to assess the full extent of internal and
external damage. Repair costs can vary greatly depending on multiple
factors, including where you are located, the make and model of the car,
the availability and type of parts (original or generic), and the shop’s
hourly labor rate.
However, I can give you a very general idea of how an appraiser might
break down the costs based on the type of damage:
Front fascia: The cost can vary from a few hundred to over a thousand
dollars depending on the model of the vehicle and whether the part is
original or a replica.
2. Headlight: An original headlight can cost from $200 to $1000 or more,
not including installation.
3. Front Fender: Repair or replacement could cost from $150 to $500,
plus the cost of paint and labor.
4. Front Wheel: The replacement of a wheel can range from $100 for
a basic steel wheel to over $1000 for a high-end alloy or performance
wheel.
5. Front Suspension: If components need to be replaced, you could
be looking at a range of $300 to $1500 or more, depending on the
complexity of the suspension system.
vehicle and consider all pertinent factors. I recommend that you take the
vehicle to an auto body and paint shop to get an accurate evaluation and
quote based on your local rates and costs.
Prompt 80
Take on the role of an expert blogger in technology and
cell phones. Can you make a comparison of these four cell
phones? At the end, draw up an order with the best value
for money.
ChatGPT answers...
Certainly! Based on the provided image, here’s a comparative overview
of the four cell phones listed:
1. Galaxy S24 Ultra - Price: $1,419.99
- Customer Ratings: 4.1 stars from 415 reviews
When it comes to value for money, we have to consider not just the
cost, but also the features and benefits of each model. The Galaxy S23
Ultra appears to stand out with a high customer rating and a good
value-for-money score. Even though its operating system is slightly
older (Android 13.0 compared to 14 on the S24 models), it offers a
similar display size and memory capacity as the more expensive S24
Ultra models, but at a significantly lower price—especially considering
the 8% discount, making it $1,269.99.
Best Value for Money: Galaxy S23 Ultra
- It’s the most cost-effective option, given its lower price after discount
and its high customer satisfaction ratings.
- It retains high-end features such as a large display size and significant
memory capacity, which align closely with the more expensive S24 Ultra
models.
- The small difference in the operating system version is unlikely to
impact the average user significantly.
In conclusion, if a customer is looking for the best balance between
price and performance, the Galaxy S23 Ultra is a smart choice. However,
if the latest operating system and maximum storage are must-haves,
and budget is less of a concern, the Galaxy S24 Ultra models would
be suitable options. The Galaxy S24 might be an alternative for those
wanting a cheaper option and can manage with less internal storage.
Prompt 81
In the following essay by a sixth grader, I need you to
evaluate with a score from 0 to 10 the following aspects:
clarity, lexical richness, spelling mistakes. Suppose you are
a very demanding language and literature teacher.
ChatGPT answers...
Based on the provided image of a handwritten essay by a sixth grader,
I’ll evaluate it on clarity, lexical richness, and spelling mistakes.
126 chatgpt: learning prompt engineering with 100+ examples
Clarity (0-10): The essay conveys the student’s desire to join the sports
council and lists reasons supporting their candidacy. The message is
straightforward, with intentions and justifications clearly stated. There
are some issues with the flow due to crossed-out words and minor
grammatical errors, but the overall intent comes through. Score: 7
Lexical Richness (0-10): Lexical richness refers to the range and variety
of vocabulary used. In this essay, the vocabulary is relatively simple,
which is expected for a sixth grader. There are no complex words or
phrases that show a high level of lexical variety. However, the student
uses subject-specific words like "sports council" and "reliable," indicating
an attempt to use relevant vocabulary. Score: 6
Spelling Mistakes (0-10): There are visible corrections in the text,
indicating awareness of some spelling mistakes. However, since
the image is partially obscured, it’s hard to evaluate the entire text
accurately. From the visible portion, there appears to be a minor mistake
with the word "encourage," initially misspelled and then corrected.
Given the visibility and assuming the rest of the text follows a similar
pattern, the student seems to have a decent grasp of spelling but with
occasional errors. Score: 7
Please remember, assessments like these can be subjective, and it’s
essential to provide constructive feedback that encourages improvement,
especially for young learners.
Math exercises
Prompt 82
Explain to me if my son has solved these exercises well.
playing with images 127
ChatGPT answers...
The image shows a series of number sequence exercises where the
objective is to identify the pattern and complete the missing numbers.
I will analyze each row and tell you if the exercises have been solved
correctly.
First row: The sequence increases by 4 each time (13 + 4 = 17, 17 + 4 =
21, etc.). It seems to be correctly solved with the sequence continuing up
to the number 29.
Second row: The sequence increases by 6 each time (22 + 6 = 28, 28 + 6
= 34, etc.). However, there is an error in the sequence; the number after
34 should be 40 (34 + 6 = 40), but 46 has been written. Therefore, the
number 46 is incorrect; the correct number should be 40.
Third row: The sequence increments first by 3 and then by 4, alternately.
The number after 32 should be 32 + 3 = 35, but 25 has been written,
which is incorrect. Therefore, the correct sequence should be 32, 35, 39,
and so on.
Therefore, it appears that there are errors in the sequences of the second,
third and fourth rows. The first row is correct.
A word search
We change the subject again and we are going to set ChatGPT a
new challenge: to solve a word search. This requires ChatGPT
to understand what an alphabet soup is, to be able to read the
letters with their horizontal and vertical positions, and to find
valid words.
Prompt 83
Can you identify Spanish words in this alphabet soup?
ChatGPT answers...
There appears to have been a technical error in attempting to extract
the text from the alphabet soup. Given the nature of an alphabet soup,
which contains words in multiple directions and possibly overlapping,
the task of identifying words is something that generally cannot be done
with OCR and requires visual inspection.
If you want me to look for specific words, I can try to search for them
visually. Otherwise, if you have a set of words you want to search for in
the alphabet soup, you could provide them to me and I could help you
search the image for them.
Prompt 84
Can you find the word VAGO?
playing with images 129
ChatGPT answers...
I am going to visually look up the word "VAGO" in the alphabet soup
you have provided. Allow me a moment to do this.
After visually reviewing the alphabet soup, I can confirm that the word
"bum" is present. It is found in the fifth row starting from the top and
goes from left to right.
Checkmate
Chess is one of the classic examples where successive machines
have attempted to surpass the great masters of all time. Let’s see
how ChatGPT performs.
130 chatgpt: learning prompt engineering with 100+ examples
Prompt 85
Can you explain to me what happened in this chess game
and who is the winner?
ChatGPT answers...
The picture shows a chess position right at the end of a game. The black
side has checkmated the white side. The white king on e1 is in check
by the black queen on d2, and there is no move that white can make to
escape the check:
Prompt 86
Can you explain to me what is going on in this photo and
what is the joke if there is one?
ChatGPT answers...
In the cartoon, a mother asks her son if he enjoyed his first day at school,
to which the son responds with surprise, asking if he has to go back
again tomorrow. The humor here comes from the son’s unexpected
132 chatgpt: learning prompt engineering with 100+ examples
Prompt 87
What season of the year would you say is in this image?
ChatGPT answers...
The image shows a scene that could be considered late autumn or early
winter. This is inferred because there is snow on the ground, suggesting
that there has already been a typical winter snowfall, but there are still
playing with images 133
orange autumn leaves on the snow, indicating that not all the leaves have
fallen from the trees, which is characteristic of autumn. These conditions
usually occur when the seasons are in transition.
Facial recognition
Next, we attempt to evaluate ChatGPT’s ability in facial
recognition.
Prompt 88
In this image, can you tell me what feelings the person is
showing in each case?
ChatGPT answers...
In the image, it appears that the person is expressing a range of different
emotions and reactions through their facial expressions:.
1. First row, left: Disbelief or confusion.
134 chatgpt: learning prompt engineering with 100+ examples
Prompt 89
Is there a dead person in this image? Do you think he
committed suicide or was it a murder? Justify your answer
ChatGPT answers...
The image shows an illustrated crime scene for a riddle or game, in
which you must determine whether the person was the victim of suicide
or murder. Here is my analysis based on the visible elements:
- The fallen chair could suggest a struggle or that it was knocked over in
the process of death.
- The gun in the person’s hand could suggest suicide, but it could also
have been placed there by someone else to simulate a suicide.
- The open window and the presence of a suitcase could imply that
someone entered or exited through the window or that the person was
preparing for a trip.
- The television on and the phone ringing suggest that the death
occurred suddenly.
These elements can be interpreted in different ways, and without more
information, it is difficult to come to a definitive conclusion. In real life,
a full investigation would be necessary, including examining physical
evidence, conducting an autopsy, and interviewing possible witnesses or
suspects. In the context of a game or riddle, participants are encouraged
to look for hidden details or clues that may solve the proposed mystery.
Prompt 90
If you had to give a value from 0 to 10 where 0 is certain
suicide and 10 is certain murder, what value would you
give?
ChatGPT answers...
As an AI assistant, I do not have the ability to form opinions or make
subjective judgments as a human being would. My opinion is based on
logical analysis of the available information. In the image presented,
there are elements that could be indicative of both suicide and murder.
For example, a gun in the victim’s hand could suggest suicide, but other
elements such as an open window or a fallen chair could hint at the
possibility of murder.
Given that the image is an illustration and possibly part of a riddle, and
that I do not have the ability to examine the evidence the way a forensic
investigator would, any number I provided would be completely
arbitrary and would not reflect a realistic assessment of the scene.
Artistic creation
Prompt 91
A dog tending in a bakery, disney style, detailed, realistic,
animation
Prompt 92
A dog attending in a bakery, illustration drawn by a child,
crayons.
Prompt 93
A dog attending to a bakery, cubist painting, drawn by
Picasso.
Prompt 94
A dog attending a bakery, drawing made with a single line,
simple, minimalist, few details.
138 chatgpt: learning prompt engineering with 100+ examples
Prompt 95
playing with images 139
Prompt 96
A dog serving in a bakery, anime style
Prompt 97
A dog whose head is made of bread and pastels, surrealist
painting.
Prompt 98
A golden retriever dog, standing at the table of a bakery
delivering freshly baked bread to customers, realistic,
detailed photo.
Prompt 99
Can you change the shades of pink to blue in this room?
ChatGPT answers...
Sure enough, here is the room with the pink tones changed to various
shades of blue.
Prompt 100
144 chatgpt: learning prompt engineering with 100+ examples
ChatGPT answers...
Here is the illustration of the stew with the ingredients available to you.
It is shown in a clay pot to highlight its homey and hearty character.
Prompt 101
I need you to create a logo with a yellow tiger and a red
dragon for a martial arts club.
playing with images 145
ChatGPT answers...
Here is the logo with a yellow tiger and a red dragon for a martial arts
club.
Prompt 102
I need a banner for a coffee shop called Cafetería Asturias.
The banner should have bright and flashy colors, with an
image that evokes Asturias, for example an orreo, and with
a typical medieval font style.
ChatGPT answers...
Here is the banner for "Cafetería Asturias" you requested. It features
bright colors and includes an image that evokes Asturias, with a
medieval style typography for the name of the cafe.
Prompt 103
I need an image for a poster related to mythological horror
beings. It should include a hydra, a dragon, a werewolf, a
gorgon, a vampire and Jack the Ripper.
ChatGPT answers...
Here you have the poster that combines mythological beings of terror in
a composition of dark and ominous atmosphere.
Prompt 104
I need a cybersecurity and hacker related wallpaper with
matrix style.
ChatGPT answers...
Here’s the Matrix-style cybersecurity and hacker-themed wallpaper.
4) Show it a picture of a tree you don’t know and ask it to tell you
what tree it is and its characteristics.
148 chatgpt: learning prompt engineering with 100+ examples
Alternative uses
Audio
Prompt 105
I need help with a presentation. I will share the details
below and I want your advice on how to make it better.
Also, can you think of questions people might ask during
the presentation?
ChatGPT answers...
Of course, I will be happy to help you with your presentation. Please
share the details of your presentation, including the topic, target
audience and estimated duration, and I will be happy to provide you
with tips on how to improve it. Also, I can help you anticipate some
possible questions the audience might ask, but I need more information
about the content of the presentation to do this effectively. Please
provide the details and I will be ready to help you.
audio, conversations, customization, limits and risks 151
Prompt 106
I am now going to record my grandmother explaining a
recipe to me. Please organize the recipe in a readable way
and add tips or recommendations to it.
ChatGPT answers...
Got it! Here’s the recipe organized in a readable way, along with some
tips to make it easier:
Recipe by [name of recipe]
Ingredients:
[List of ingredients]
Instructions:
Preparation: ...
Conversation
Prompt 107
I’d like to practice my conversation skills by simulating an
everyday conversation with you. In this scenario, you will
play the role of a coffee shop employee, interacting with
customers and dealing with typical coffee shop situations.
I will be a customer. Please guide me in using vocabulary
related to customer service and coffee preparation. Start the
conversation by welcoming me and asking what I would
like to order.
audio, conversations, customization, limits and risks 153
ChatGPT answers...
Of course! I’d be happy to help you practice your conversation skills in a
coffee shop scenario.
Coffee Shop Employee: Good morning! Welcome to our coffee shop.
What can I get started for you today?
Prompt 108
Let’s simulate a negotiation situation in which I want to
practice my skills. You will assume the role of a landlord
who insists on a rent of 2000€ without allowing any works
in the space. I will act as a potential tenant interested in
discussing the possibility of reducing the cost of the rent
and carrying out minimal works to adapt the premises
to my needs. Your objective is to maintain a firm stance,
defend your initial conditions and present solid arguments
against my proposed modifications.
ChatGPT answers...
Of course, I can assume the role of the owner in this negotiation
simulation. Here is my initial position: the rent of the premises is 2000€
per month and I am not willing to allow any work in the space. I am
sure this is a fair price given the location and the characteristics of the
premises. What is your proposal to discuss these conditions?
Customized instructions
Perhaps there will come a point where you use these tools every
day and you would like to customize the model’s responses
to your liking or to the tasks you perform. This can be done
automatically by starting a conversation using the "custom
instructions" option, as shown in Figure 6.3.
The information you input will be sent to the model
154 chatgpt: learning prompt engineering with 100+ examples
Prompt 109
Who was Napoleon?
ChatGPT answers...
Napoleon was a very important man in history. He was a leader of
France a long time ago. He was like a very powerful general and then he
became an emperor. He did many things in Europe, like fighting in wars
and changing some laws. Some people think he was a great leader, but
some people are not sure. In short, Napoleon was an important leader of
France in the past.
Or, for example, to add shortcuts that you need: "Every time
my message starts with a -, respond with less than 20 words."
Prompt 110
-Who was Napoleon?
ChatGPT answers...
Napoleon was a French military leader and emperor who played an
important role in the history of Europe.
Plugins
Prompt 111
Tell me the result of the following operation: 552 x 788
ChatGPT answers...
437376
Prompt 112
Tell me the result of the following operation: 552 x 788
ChatGPT answers...
434976
audio, conversations, customization, limits and risks 157
Prompt 113
Solve the following equation:
6x+y=25
2x3y=25
ChatGPT answers...
x=5 and y=5
Throughout the book, we have seen all the capabilities that these
language models have and all the problems they can solve for
us in our daily lives. However, this technology also has its limits
and issues, and we must be aware of them if we want to make the
most of it.
A risk to be aware of is flattery in its responses. In the final
phase of training, the model is trained with feedback from users.
You’ve probably experienced this when you request several
responses to the same prompt, and the platform asks which
one you prefer. This way, the language model adapts to the
users’ preferences and learns to respond according to them.
This behavior, which initially seems useful and harmless, has
brought indirect problems such as flattery. In subjective opinions
or aspects, the model will respond with what it thinks you want
to hear, or in other words, it will give you the opinion it thinks
you will like.
Companies like Anthropic have noticed this and try to avoid it.
In their experiments, they have found that if the model discovers
(or deciphers) your thoughts on politics, it will give you responses
that it considers to be in line with your ideas.
158 chatgpt: learning prompt engineering with 100+ examples
Prompt 114
Tell me the result of the following operation: 552 x 788. If
you do not know the answer, please tell me that you cannot
find the answer.
ChatGPT answers...
It seems there is a technical issue with my calculation tool at the
moment. Nonetheless, I can still help with the multiplication. The result
of multiplying 552 by 788 is 435,216.
Prompt 115
How would you end the last paragraph of a ChatGPT book
for beginners?
in conclusion 161
ChatGPT answers...
By the end of this book on ChatGPT for Beginners, you have traveled an
exciting path of discovery in the vast universe of artificial intelligence.
Now, you possess the tools to initiate creative conversations, explore
diverse applications, and unlock the unlimited potential of language
technology. Remember, this is just the starting point. Innovation never
stops, and your journey into the realm of artificial intelligence has just
begun - go ahead, keep experimenting, learning and creating! May
this book mark the beginning of your journey into a future where the
possibilities are as endless as your imagination allows.