0% found this document useful (0 votes)
21 views

AI Course Section 2

Uploaded by

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

AI Course Section 2

Uploaded by

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

Certificate of Completion in

Programme for the Use of Generative Artificial Intelligence Tools at the Workplace
Application Course: Using GPT to Solve Real-Life Problem
Workshop: Introduction to Prompts and Prompt Engineering
江紹祥教授 KONG, Siu-Cheung
數學與資訊科技學系電子學習與數碼能力研究講座教授 Research Chair Professor of E-Learning and Digital Competency of
人工智能及數碼能力教育中心總監 Department of Mathematics and Information Technology

香港教育大學 Director of Artificial Intelligence and Digital Competency Education Centre


The Education University of Hong Kong
Framework of GPT Prompting Problem Solving

Problem Solving Process


Prompt with GPT using
Prompting Skills
Problem
Problem Solved
Identification
Affective Metacognitive
Empowerment Cognitive Critical thinking
Self-Identity AI Concepts Self-regulated
Positivity Data analysis learning
Collaboration

2
Use of Generative AI Tools: Prompt

(1) (2) (3)


Prompt Prompt Prompt
Explorer Designer Engineer

3
1. Prompt Explorer:
Entering the World of Prompt Engineering
Prompt is…
● A prompt is a question or statement given to a chatbot to generate responses.

5
Do You Think They Are Good Prompts?

How are you?

What can you tell me about the world?

What are the best restaurants in Paris that serve


vegetarian food?

6
Poorly Defined Prompts

How are you?

No clear purpose What can you tell me about the world?


or focus
Overly broad and open-ended

7
Well-defined Prompts
● Specific and relevant

● Allow ChatGPT to provide a targeted and useful response

What are the best restaurants in Paris that serve


vegetarian food?

8
Well-defined Poorly defined
Prompts Prompts
● Help to ensure that the ● Lead to conversations that are
conversation stays on track. disjointed or lack focus.

● Covers the topics of interest to ● Result in a less engaging and


the user. informative experience.

9
What is Prompt Engineering?
● The technique of presenting your
instructions clearly.

● Design and refine the input provided


to the generative AI models.

● Goal: Improve the performance by “Good prompt leads to good response”


providing well-structured input.

10
Scenario: History Teacher
● You want your students to understand the significance
of the Industrial Revolution.

● Traditional prompt:

Write an essay about the Industrial Revolution.

11
Engineered Prompt: More Engaging and Thought-provoking

Write an essay about the Industrial Revolution.

Imagine you are a newspaper reporter in the 19th century,


witnessing the Industrial Revolution. Write a piece of news
article that captures the transformative changes in society,
economy, and technology, and discuss the potential
impacts on future generations.

12
2. Prompt Designer:
Basic Principles of Prompts
Principles of Well-defined Prompts
● Clarity:
A clear and concise prompt will help to ensure that the ChatGPT understands
the topic or task at hand and is able to generate an appropriate response.

● Focus:
A well-defined prompt should have a clear purpose and focus, helping to guide
the conversation and keep it on track.

● Relevance:
Make sure that your prompts are relevant to
the user and the conversation.
14
Good Example
● Clear and Specific: making it easy for the ChatGPT to understand.
● Specific location (Hong Kong) and type of food (vegetarian), helps to ensure that
the response is relevant and focused.

What are the best restaurants in Hong Kong that


serve vegetarian food? I'm planning a trip to Hong
Kong and I'm looking for some good places to eat.

15
Bad Example
● Jargon (e.g. “intel”, “interwebz”, “zeitgeist”): Confusing or unclear to users who
are not familiar with these terms.
● “latest happenings” is ambiguous, difficult for the ChatGPT to understand and
generate a useful response.

Hey there! Can you give me some intel on the latest


happenings in the interwebz? I'm trying to get a
handle on the zeitgeist.

16
Five-step Process for a. Define the
Constructing Prompts purpose and
focus of the
conversation

b. Be specific
e. Refine and
with your
test
request

d. Use explicit c. Provide


constraints context and
and background
guidelines information

17
(A) Define the Purpose and Focus of the Conversation
● Goal:
○ Provide information?
○ Answer a question?
○ Engage in casual conversation?

● Example:

I want to keep fit. Give me an exercise plan.

18
(B) Use Specific and Relevant Language
● Ensure AI understands your prompt and generate an appropriate response.
● Clear and concise, using language that is relevant.
● Example:
I want to keep fit and build muscle.
Give me a weekly exercise plan with cardiovascular
exercises, strength training and stretching sections.

19
(C) Provide Context and Background Information
● Example:

I want to keep fit and build muscle.


I am a 30-year-old man. My body fat is 20%. I am a beginner at the gym.
Give me a weekly exercise plan with cardiovascular exercises(e.g.
running), strength training (e.g. squat) and stretching sections.
Please also consider my neck pain and make sure it doesn't worsen my
injury.

20
(D) Use Explicit Constraints and Guidelines
● “Please explain in simple, non-technical language.”
● Example:
I want to keep fit and build muscle.
I am a 30-year-old man. My body fat is 20%. I am a beginner at the gym.
Give me a weekly exercise plan (5 days per week, 1 hour per day) with
cardiovascular exercises (e.g. running), strength training (e.g. squat) and
stretching sections. Please also consider my neck pain and make sure it
doesn‘t worsen my injury.
Please provide two different levels of each exercise.

21
(E) Refine and Test
● AI model learns from patterns in data and doesn't understand the world in the
same way humans do.
● Evaluate the response, tweak the prompt to improve the outcome.
● You don’t need to rewrite the entire prompt again!
Instead, you can say:

Make it a table format. Reduce cardio, add more stretching.

22
3. Prompt Engineer:
Advanced Prompt Designing and Optimising
Prompting Engineering
1. Asking good questions (prompts) is more important than finding answer

2. Common Prompts:

What are the positive and negative aspects when AI is used in education?

24
Good Prompts

Cherry Knowledge Good


Picking Structure Prompts

Select a topic Add key concepts about


AI and educational disparity educational disparity
e.g. Digital gap, increase in
private education expenses…

25
Good Prompts

What are the positive and negative aspects when AI is used in education?

What are the positive and negative aspects related to education disparity such
as digital gap and increase in private education expense when AI is used in
education?

26
Prompting Techniques
1. Instructions prompting

2. Role prompting

3. Contextual prompting

4. One-shot and few-shot prompting

5. Chain of Thought (CoT) prompting

6. Combination prompting
27
Technique 1: Instructions Prompting
● Be clear and direct with your instructions to the AI.

● Prompt formula: Generate [task] following these instructions: [instructions]

● For example, a teacher might use the instruction prompt:


Generate a list of five discussion questions for a
high school class reading ‘To Kill a Mockingbird’.

28
Technique 2: Role Prompting
● Assign the AI a specific role

I want you to act as a spoken English teacher and improver. I


will speak to you in English and you will reply to me in English
to practice my spoken English...I want you to strictly correct my
grammar mistakes, typos, and factual errors…

● You may try it without or with the role to see the different responses.

29
Technique 3: Contextual Prompting
● Provide more background information

Write a lesson plan on the topic of electric circuits in General Studies.


The lesson should use the approach of inquiry-based learning, and deliver
the knowledge of (1) safety of using electricity, (2) positive and negative pole
of battery and the correct installation, (3) closed and open circuit, (4)
conductors and insulators and their conductivity, (5) purpose of resistors,
and (6) series and parallel circuits. State the time used in each activity.

30
Technique 4: One-shot / Few-shot Prompting

● Prompt formula: [prompt] + One example

Generate 8 possible names for my new dog.


Use “Example 1: A dog name is Peach”.

● Prompt formula: [prompt] + More than 2 examples


Generate 8 possible names for my new dog.
Dog names that I like include:
– Peach
– Kiwi
– Pineapple
31
Technique 5: Chain of Thought (CoT) Prompting

● Encourage the LLM to explain its reasoning.

● Decompose multi-step problems into intermediate steps.

● Add “Let’s think step by step” at the end = extract more accurate answers.

32
33
Farmer John had 93 chickens. If he sold 20 to
Farmer Bill and bought twice that number
more, how many chickens does Farmer John
have now?

73

34
Farmer John had 93 chickens. If he sold 20 to
Farmer Bill and bought twice that number
more, how many chickens does Farmer John
have now?
Let’s think step by step.

Sure, let's break down the problem step by step.


1. Farmer John starts with 93 chickens.
2. He sells 20 chickens to Farmer Bill. This means he now has 93 - 20 = 73 chickens.
3. Farmer John buys twice the number of chickens he sold to Farmer Bill, which is 2 * 20
= 40 chickens.
4. Adding the newly purchased chickens to the remaining chickens, Farmer John now
has 73 + 40 = 113 chickens.
Therefore, Farmer John currently has 113 chickens. 35
Technique 6: Combination Prompting
● Integrate various prompting techniques:
e.g. Role Prompting + Contextual Prompting

I want you to act as a personal trainer, who can create customized fitness
programs, provide exercise instructions, and offer guidance on healthy
lifestyle choices. Assess my current fitness level, goals, and preferences to
develop a tailored workout plan that includes strength training,
cardiovascular exercises, and flexibility routines. Share tips on proper
exercise form, injury prevention, and progressive overload to ensure
continuous improvement. Offer advice on nutrition, hydration, and rest to
support my overall well-being. My first request is ‘Design a 4-week workout
plan for me to improve my overall strength and endurance, considering my
limited access to gym equipment.’ 36
Prompt Engineering
Prompting Techniques Examples

37
Prompting Techniques
1. Instructions prompting
○ be clear and direct with your instructions
2. Role prompting
○ assign the AI a specific role
3. Contextual prompting
○ provide more background information
4. One-shot/ few-shot prompting
○ provide one or more example(s)
5. Chain of Thought (CoT) prompting
○ encourage to explain LLM’s reasoning
6. Combination prompting
○ integrate various prompting techniques

38
Example (1)
Chinese Language:
Technique 1: Instructions Prompting Generating Advice of Teaching
Prompt: Response from ChatGPT:
請告知我如何設計小學中文寫作教材?
設計小學中文寫作教材需要注意以下幾點:
1. 課程目標:教材設計前需要先確定課程目標,明確課程要達到
的學習成果,如提高學生的寫作能力、養成學生的創意思維
等。
2. 教材選擇:選擇適合小學生的寫作教材,如文學作品、新聞報
道、科技文章等,讓學生在閱讀中學習寫作,同時激發學生的
興趣和創造力。
3. 教材內容:教材內容要具有豐富性和實用性,包括文學作品、
新聞報道、科技文章等不同類型的文章,讓學生接觸到不同的
文體和寫作風格,擴展學生的寫作視野。
4. 教材結構:教材結構要合理,按照不同類型和難易度進行編排
,讓學生逐步掌握不同類型文章的寫作技巧和方法。
5. 寫作技巧:教材中要重點強調寫作技巧,如構思、結構、語言、
修辭等,讓學生掌握寫作的基本技能和方法。
6. 創意表達:教材中要鼓勵學生發揮創造力,提供多種寫作主題
和表達形式,引導學生進行寫作練習,讓學生在寫作中體驗到
樂趣和成就感。
7. 練習題目:教材中要提供豐富的練習題目,包括填空、改錯、
寫作等不同形式的練習,讓學生在練習中熟練掌握寫作技能。

39
Example (2)
Technique 1: Instructions Prompting Summarizing Meeting Transcript
Prompt: Response from ChatGPT:
用 10 個要點總結了以下文本:
SPEAKER_00 [00:00.000 -> 00:42.000] 歡迎收睇港清講錯全面通關都已經大半年旅客數字逐步回復不過近來在接待
1.政府近期就啓德郵輪碼頭旅客上岸後的交通攔
安排上都出現不同問題其中啟德郵輪碼頭乘客上岸後的交通接駁一度混亂政府隨後都安排補救再到大約五千人的郵輪
將會在十九號再來到新的措施又經不經得起考驗呢?我們今次就請來代表旅遊界的立法會議員姚柏良一齊來談談你好
接出現問題,進行補救措施。
議員你好想問下政府這些補救的措施初期看來都還可以的你覺得應不應付到下一次再有大型的郵輪來到呢? 2.五千人郵輪將於8月19日抵港,新措施是否足以
SPEAKER_01 [00:42.000 -> 01:45.000] 我覺得現在政府都很積楍極做好部署迎接下一次大船來的時候的挑戰這方面 處理。
來說 政府和不同部門運輸署、旅遊事務署以至到碼頭營運商、船公司他們都開了多次會議再加上副司長亦都親自督導
去做了跨局跨部門的會議有船來 有客到怎樣做好接待怎樣做好整個郵輪的運作流程令到郵輪客可以有很好的體驗我們 3.碼頭營辦商應主導整個碼頭營運工作,但與政府
要將啟德郵輪碼頭本身是要定位作為德郵輪碼頭定位為一個亞洲郵輪輸入旅遊中心的定位這個定位需要郵輪碼頭的營
運商要有這樣的高度從這樣的角度去做好整個郵輪碼頭的營運 和郵輪公司在資訊和溝通上有待加強。
SPEAKER_00 [01:45.000 -> 02:09.120] 見到問題不夠的士、不夠車或巴士上車的旅客不懂得付款這些問題是否可以 4.往日郵輪公司和碼頭應預見上岸人流,預早告知
預視到很早就應該會知道呢?你說到無論是政府、郵輪碼頭以至船公司之間的溝通似乎是否遲了呢?如果發生了問題才
再開會去談的話究竟是否預先他們的部署做得不好呢? 安排,分批上岸可紓緩擠塞。
SPEAKER_01 [02:09.120 -> 05:39.000] 其實郵輪碼頭的營運已經不是說現在上個星期才開始其實已經營運了差不多 5.政府和碼頭責任分歧,真相待闡明,三方應建立有
十年當然受疫情的打擊可以說是停頓了三年但是在疫情期間其實都有一些的公海油去營運其實當然公海油的營運咁其
實當然公海油嘅營運主要嘅對象都係我哋本地嘅市民咁大家可能本地市民我哋即係點樣去運用交通呀自己去安排交通 效溝通機制。
呀大家都熟悉咁呢方面即係對於本地嘅市民可能問題唔係咁大啦但係對於遊客嚟講呢�客來說對香港整體的安排交通
各方面可能是陌生的但可能在碼頭方面交通的資訊其實很需要提早讓客人知道其實這方面船公司和郵輪碼頭的營運商 6.碼頭周邊配套未完善,公交線路需優化,亦可考慮
這方面其實應該一早做做足呢方面嘅準備令到遊客其實有個心理嘅準備其實對遊客嚟講有個期望管理係好重要嘅當然
我哋有個先天性嘅缺陷喺度因為我哋一路講緊郵輪碼頭我哋因為周邊未發展而令到我哋係只係有一�只有一些專唆巴 的士附加費吸引SERVICE。
士和小巴其實疫情前只有一條巴士和一條小巴線疫情重啟後 其實已經增加了三條巴士線另外亦都是根據上星期特殊情
況亦都係而家開始會額外增加一條22R係能夠喺郵輪碼頭接駁到去啟德地鐵站咁其實呢個呢啲措施其實都係一個可以 7.碼頭長遠規劃需注入旅遊元素,發展周邊為文旅
講話改善嘅措施啦但係整體嚟講呢即係對遊客嚟講我哋大家都明白如果是自由行他下去自己去規劃自己的行程的話他
對於點對點的交通對於的士的需求這個是會大的但這方面的一個安排其實郵輪碼頭過去一路為人詬病的地方是什麼呢 樞紐。
其實的士真的不願意進去因為他如果空載進去有一段這麼遠的路出來如果他只是去一程很短的市區例如去德福或者去
觀塘APM這麼短的路程而他要空車走進去去接一個客人出來這個對他的誘因也有一個問題其實也可以考慮一下當然現 8.暑期旅客量升三成,下半年 Recovery或持續但需
在都有一個措施就是派所謂的誘券會不會可以考慮一下其實你如果讓的士進入郵輪碼頭可不可以有一個附加費的機制
呢這亦都可以去探討的你現在是透過派郵券如果你說真的能夠設立一個機制他進去接客是能夠加收20元或30元作為一 留意消費模式轉變。
個進去碼頭接客的指定附加費我覺得作為遊客來說他很樂意的你召的士要加錢這也是大家很滿意的但另一個問題是的
士的現金收費問題亦是其中一個問題 9.酒店業面臨勞工短缺,政府應加快審批«補償計
劃»助解決。
……
Transcript extracted with 10.業界期待文旅局全面督導各局共同推動旅遊發
Whisper JAX + Speaker Diarization 展。
40
Example (1)
Technique 2: Role Prompting English Language: Generating Article
Prompt: Response from ChatGPT:
You are a English teacher teaching senior primary students Do you want to enjoy more energy and feel great every day? The secret is in
on the topic 'Food and Drinks - Healthy Eating'. healthy eating, and it's easier than you think. In a world full of snacks and fast
food, let's explore healthier options that make you stronger and smarter.

Generate a magazine article on healthy eating with the following A balanced diet consists of a variety of food groups, including fruits, veggies,
grains, protein, and dairy. By having a few servings of each food group every
keywords: a few, a little, fewer, less, more, a lot of. day, your body gets the nutrients it needs to grow and stay strong.

Adding more fruits and vegetables to your meals is the best way to start. They
are important sources of vitamins, minerals, and antioxidants. Imagine eating
a colorful, flavorful, and nutritious salad a few times every week. Sounds
delicious, right?

Protein is a power-packed food group, making up the building blocks of our


body. Swap a lot of the red meat options with healthier alternatives like fish,
chicken, or plant-based proteins such as beans and lentils.

Eating a little dairy each day helps us build and maintain strong bones.
Choose low-fat options like yogurt or skim milk for less fat and fewer calories.

Grains, like rice, bread, and pasta, give us energy. Replace refined grains
with whole grains for more fiber, vitamins, and nutrients. A simple swap is
brown rice instead of white rice.

Don't forget about drinks! It's important to consume enough water and avoid
sugar-sweetened beverages. A great rule of thumb is to choose drinks with
fewer sugars and less caffeine.

Start by making small changes to your diet. Eat less unhealthy snacking, and
choose nourishing options more often. Imagine enjoying a lot of delicious and
nutritious meals with family and friends. The secret to a happier, healthier life
is all about choosing healthier foods, and now you know the tasty way to do it.
So, let’s start healthy eating today!
41
Example (2)
Technique 2: Role Prompting Generate Interview Questions
Prompt: Response from ChatGPT:
Imagine you are an interviewer, you need to interview 3 Interview Question 1:
candidates for the following post: Can you tell me about your experience in coordinating marketing campaigns, specifically in a
digital marketing context?

"Job Title: Marketing Coordinator Candidate Response 1:


Certainly! In my previous role as a Marketing Coordinator at XYZ Company, I was responsible for
Company: ABC
coordinating various digital marketing campaigns. I managed social media platforms, including
Location: Hong Kong creating and scheduling engaging content, monitoring audience engagement, and analyzing
Job Type: Full-time performance metrics. I also executed email marketing campaigns by designing templates,
segmenting audiences, and tracking open and click-through rates. Additionally, I collaborated with
We are seeking a talented and motivated Marketing Coordinator to join our dynamic team at ABC. As a Marketing the content team to create compelling marketing collateral such as brochures and presentations.
Coordinator, you will play a crucial role in supporting our marketing efforts and assisting in the execution of various Overall, my experience in digital marketing coordination has equipped me with a solid
marketing campaigns. This is an exciting opportunity for someone who is passionate about marketing and eager to understanding of various channels and the ability to drive successful campaigns.
contribute to the growth of our company.
Interview Question 2:
Tell me about a time when you identified a new marketing opportunity through market research
Responsibilities: and competitor analysis. How did you leverage that opportunity?
Assist in developing and implementing marketing strategies and campaigns.
Coordinate and execute digital marketing initiatives, including social media management, email marketing, and Candidate Response 2:
content creation. Certainly! In my previous role, I conducted thorough market research and competitor analysis to
Conduct market research and competitor analysis to identify new opportunities and trends. identify potential gaps and opportunities. During the process, I discovered a growing trend in
Support the creation and editing of marketing collateral, such as brochures, presentations, and promotional influencer marketing within our industry. Recognizing this as a valuable opportunity, I proposed
materials. implementing an influencer marketing campaign to reach our target audience more effectively. I
conducted further research to identify suitable influencers aligned with our brand values and
Collaborate with cross-functional teams to ensure consistent branding and messaging across all marketing
negotiated partnerships with them. The campaign resulted in increased brand awareness, higher
channels. engagement rates, and a significant boost in sales. This experience taught me the importance of
Monitor and analyze campaign performance metrics, providing regular reports and recommendations for staying informed about industry trends and leveraging them to drive successful marketing
optimization. initiatives.
Assist in organizing and coordinating events, trade shows, and conferences.
Interview Question 3:
Requirements: Can you share an example of a time when you had to coordinate a marketing event or
Bachelor's degree in Marketing, Business, or a related field. conference? How did you ensure its success?
Proven experience (1-2 years) in marketing, preferably in a coordinator role.
Candidate Response 3:
Knowledge of digital marketing channels, including social media, email marketing, and content creation. Certainly! In my previous role, I was responsible for coordinating a major industry conference. To
Strong written and verbal communication skills, organizational and time management abilities. ensure its success, I followed a detailed plan and collaborated with various stakeholders,
Proficient in MS Office and marketing software/tools. including vendors, speakers, and the internal team. I managed logistics such as venue selection,
Ability to work independently and collaboratively in a fast-paced environment. catering, audiovisual setup, and registration processes. Additionally, I coordinated with the
Detail-oriented with a creative mindset. marketing team to promote the event through various channels and maximize attendance. On the
Strong analytical and problem-solving skills.” day of the conference, I ensured smooth operations, managed any last-minute changes, and
addressed attendees' needs. The event received positive feedback from participants, and we
surpassed our attendance goal. This experience taught me the importance of meticulous 42
Give me three questions and the corresponding responses. planning, effective communication, and adaptability in organizing successful marketing events.
Example (1)
Technique 3: Contextual Prompting General Studies: Generating Lesson Plan
Prompt: Response from ChatGPT:
Write a lesson plan in Traditional Chinese, on the topic of 教學大綱:電路
electric circuits in General Studies for Hong Kong senior 課程目標:
1. 了解使用電力的安全注意事項。
primary classes with large proportion of SEN students. 2. 認識電池的正負極及正確安裝方式。
There should be 4 lessons of 35 minutes each. 3. 瞭解閉合電路和斷開電路的概念。
4. 掌握導體和絕緣體以及它們的導電性。
5. 理解電阻器的作用。
6. 理解串聯電路和並聯電路的概念。
The course should include 1 hands-on activity, with the use
of micro:bit, copper tape, LEDS, MakeCode. 課程安排:
課程一:使用電力的安全
活動:電路安全遊戲
The lesson should use the approach of inquiry-based - 時間:10分鐘
- 描述:透過遊戲的方式,學生將學習使用電力時應該注意的安全事項。例如,不
learning, and deliver the knowledge of (1) safety of using 要將濕手接觸電路、不要將金屬物體插入插座等。同時提供圖片和圖示,以支持視
覺學習者的理解。
electricity, (2) positive and negative pole of battery and the 課程二:電池的正負極及正確安裝方式
correct installation, (3) closed and open circuit, (4) 活動:製作電池連線電路
- 時間:15分鐘
conductors and insulators and their conductivity, (5) - 描述:學生將使用micro:bit、銅膠帶、LED燈和MakeCode來製作一個簡單的電
purpose of resistors, and (6) series and parallel circuits. 池連線電路。在此活動中,學生將學習如何識別電池的正負極,以及正確連接電池
和LED燈的方法。提供視覺化指導和步驟提示,以支援學生在操作中的理解和執
State the time used in each activity. 行。
課程三:閉合電路和斷開電路
活動:探索閉合和斷開電路
- 時間:10分鐘
- 描述:學生將進行一個實驗,使用銅膠帶、電池和 LED燈來探索閉合和斷開電路
的概念。他們將學習如何連接和斷開電路以使燈光亮起或熄滅。提供視覺示意圖和
實物材料,以支持學生在操作中的理解。同時,鼓勵學生口頭描述他們的實驗結果
,以促進語言表達和溝通能力的發展。
課程四:導體和絕緣體的導電性

……
43
Example (2)
Technique 3: Contextual Prompting Generating Event Promotion Poster
(Image) Prompt: Response from Stable Diffusion
A digital illustration of a cyberpunk library with robots v1 - 4, CLIP text encoder:
helping people to use read books, 4k, detailed, trending in
artstation, fantasy vivid colors.

(Image) Prompt: Response from DALL·E 3:


A digital illustration of a cyber earth with one little girl and
one robot interact with each other, 4k, detailed, trending in
artstation, fantasy vivid colors. 44

44
Example (2)
Technique 3: Contextual Prompting Generating Event Promotion Poster
Prompt: Response from ChatGPT:
Here are the details of a conference “The Third International When designing the conference website banner for "The Third International
Conference on Metaverse and Artificial Companions in Conference on Metaverse and Artificial Companions in Education and Society"
(MetaACES 2025), the following information should be included:
Education and Society:
• Conference Title: "The Third International Conference on Metaverse and Artificial
The 3rd International Conference on Metaverse and Artificial Companions in Education and Companions in Education and Society" (MetaACES 2025).
Society (MetaACES 2025), organized by The Education University of Hong Kong, will be held on • Conference Date: June 2025.
June 2025 in a hybrid mode. MetaACES is one of the APSCE Theme-based International • Conference Mode: Hybrid (mention that it will be conducted both in-person and
Conference Series. virtually).
• Conference Organizer: The Education University of Hong Kong.
MetaACES 2025 aims to provide an interactive platform for academics, researchers, • Conference Theme: Highlight the focus on metaverse, artificial companions, and
practitioners, and professionals in the education sector to share and exchange research agenda, related technologies in education and society.
innovative ideas as well as practices of promoting and exploring metaverse, artificial • Objective: Emphasize that MetaACES 2025 aims to provide an interactive platform
companions, and related technologies. MetaACES 2025 comprises keynotes, seminars and for academics, researchers, practitioners, and professionals in the education sector
panels delivered by internationally renowned scholars, researchers, and practitioners. Catalysed to share and exchange research agenda, innovative ideas, and practices.
and facilitated by emerging technologies, the metaverse and related artificial companions will • Keynote Speakers: Mention that internationally renowned scholars, researchers,
affect us in every aspect of our lives. and practitioners will deliver keynotes, seminars, and panels.
• Impact of Emerging Technologies: Highlight how the metaverse and related
The conference program includes keynotes, seminars, presentations, and panels. All the artificial companions, catalyzed and facilitated by emerging technologies, will
accepted papers and abstracts of the conference will be published in ISBN-coded proceedings. impact various aspects of our lives.
Accepted full papers will be selected and invited to submit to one of the following Open Access • Publication Opportunities: Mention that all accepted papers and abstracts will be
journals: Research and Practice in Technology Enhanced Learning, and IEEE TCLT's Bulletin of published in ISBN-coded proceedings. Additionally, emphasize that accepted full
the Technical Committee on Learning Technology." papers will be selected and invited to submit to Open Access journals such as
"Research and Practice in Technology Enhanced Learning" and "IEEE TCLT's
Bulletin of the Technical Committee on Learning Technology."
List the information that should be included in a poster. • Visual Elements: Incorporate relevant visuals related to metaverse, artificial
companions, education, and technology to make the banner visually appealing.
• Logos: Include the logos of the conference organizer (The Education University of
Hong Kong), MetaACES 2025, and any partnering institutions, if applicable.
• Call-to-Action: Include a clear call-to-action button for registration or more
information.
• Contact Information: Provide contact details for inquiries or further information
about the conference.

Ensure that the banner design is visually engaging, uses appropriate fonts and colors,
and effectively communicates the conference details to potential attendees.

45
Example (2)
Technique 3: Contextual Prompting Generating Event Promotion Poster
Response from ChatGPT:
Response from Stable Diffusion
When designing the conference website banner for "The Third International
Conference on Metaverse and Artificial Companions in Education and Society" v1 - 4, CLIP text encoder:
(MetaACES 2025), the following information should be included:

• Conference Title: "The Third International Conference on Metaverse and Artificial


Companions in Education and Society" (MetaACES 2025).
• Conference Date: June 2025.
• Conference Mode: Hybrid (mention that it will be conducted both in-person and
virtually).
• Conference Organizer: The Education University of Hong Kong.
• Conference Theme: Highlight the focus on metaverse, artificial companions, and
related technologies in education and society.
• Objective: Emphasize that MetaACES 2025 aims to provide an interactive platform
for academics, researchers, practitioners, and professionals in the education,

……

Product:
Example (2)
Technique 3: Contextual Prompting Generating Event Promotion Poster
Response from ChatGPT: Response from DALL·E 3:
When designing the conference website banner for "The Third International
Conference on Metaverse and Artificial Companions in Education and Society"
(MetaACES 2025), the following information should be included:

• Conference Title: "The Third International Conference on Metaverse and Artificial


Companions in Education and Society" (MetaACES 2025).
• Conference Date: June 2025.
• Conference Mode: Hybrid (mention that it will be conducted both in-person and
virtually).
• Conference Organizer: The Education University of Hong Kong.
• Conference Theme: Highlight the focus on metaverse, artificial companions, and
related technologies in education and society.
• Objective: Emphasize that MetaACES 2025 aims to provide an interactive platform
for academics, researchers, practitioners, and professionals in the education,

……

New Product from DALL·E 3:


Example (1)
English Language:
Technique 4: One-shot/ Few-shot Prompting Generating Questions
Prompt: Response from ChatGPT:
Generate 3 fill-in-the-blank exercise questions, on the use of
general determiners 'a few', 'a little', 'a lot of', 'fewer', 'less' and 1. She has _____ (10) international stamps in
'more' to show quantities. her collection, but I have _____ (20).
(fewer/less/more)
Hint the options at the end of the question using parentheses. Answer: fewer
Please also provide the correct answers and explanations. Explanation: international stamps are countable
Also explain the difference among different levels. and can be compared, and 10 represents a
smaller quantity than 20
For example:
2. There were _____ (50) applicants for the job,
1. I have _____ (2) friends in this city. (a few/a little) but _____ (20) showed up for the interview.
Answer: a few (fewer/less/more)
Explanation: 2 representing a small quantity, and friends are Answer: fewer
countable Explanation: applicants are countable and can
be compared, and there are fewer people

3. I spent _____ (2) hours on my project, but he


spent _____ (4). (fewer/less/more)
Answer: less
Explanation: hours are not countable, and 2
hours is a smaller amount of time than 4 hours
spent by someone else on a project 48
Example (2)
Technique 4: One-shot/ Few-shot Prompting Writing an e-mail
Prompt: Response from ChatGPT:
Given this email template:
Subject: Request for Venue Booking for Concert at [Venue
“Subject: Request for Room Booking for Teaching at [University Name] Name]
Dear [Recipient's Name], Dear [Recipient's Name],
My name is [Your Name], a faculty member in the [Department Name] at I am [Your Name], a [Your Role] at [Your Organization Name].
[University Name]. I am writing to request a booking for your venue for an upcoming
concert event. The concert is titled "[Concert Name]," and we
I am writing to request a classroom reservation for the upcoming semester. I anticipate an audience of approximately [Number of Attendees].
plan to teach a course titled "[Course Name]," and I anticipate that there will be
approximately [Number of Students] students enrolled.
The classroom will need to be available for my course on [Days of the Week] The venue will need to be available on [Date(s) of the Event]
from [Start Time] to [End Time]. Ideally, the room would have standard teaching from [Start Time] to [End Time]. Ideally, the venue should be
amenities such as a whiteboard and projector. equipped with a stage, sound system, lighting, and seating
arrangements for the audience.
If possible, I would prefer a room located in [Preferred Building/Area], for the
convenience of the students. If possible, I would prefer a venue located in [Preferred
Building/Area], for the convenience of the attendees and
I understand that this request may take some time to process, and I appreciate performers.
your assistance in this matter. Please let me know if there is any additional
information or paperwork that you need from me.
I understand that this request may take some time to process,
I look forward to hearing from you soon. and I greatly appreciate your assistance in this matter. Please let
Best Regards, me know if there is any additional information or paperwork that
[Your Name] ChatGPT generated you need from me.
[Your Position]
[Your Contact Information]” I look forward to hearing from you soon.

Write an email template to book a venue for hosting a concert. Best Regards,
[Your Name]
[Your Position]
[Your Contact Information] 49
Example (1)
Mathematics:
Technique 5: Chain of Thought (CoT) Prompting Solving a Question
Prompt: Response from ChatGPT:
<題目開始> 汽車以平均速率 96 公里每小時行駛 20 分鐘,共行駛
了多少公里? <題目結束> <答案開始> 速率:42公里每小時 距離:56公里 時
間:56 ÷ 42 = 1.33小時 = 1小時20分鐘
<答案開始> 速率:96公里每小時 時間:20分鐘 = 20 ÷ 60 = 1/3小
時 距離:96 × 1/3 = 32公里 共行駛了32公里。 <答案結束> 他們在下午4時12分乘搭的士,加上1小時20分鐘
的行駛時間,所以他們將在下午5時32分到達酒
店。 <答案結束>
<題目開始> 陳小姐在13:45登上的士,並在 14:03下車,的士在這
段時間共行駛了 15 km。的士行駛期間的平均速率是多少 km/h?
<題目結束>

<答案開始> 距離:15 km 時間:由13:45到14:03,14小時3分鐘 –


13小時45分鐘 = 18分鐘 18分鐘 = 18 ÷ 60小時 = 0.3小時 平均速
率:15 ÷ 0.3 = 50 km/h 的士行駛期間的平均速率是 50 km/h。 <答
案結束>

<題目開始> 偉文和思傑在下午4 時12 分乘搭的士前往酒店。如果


的士以平均速率42 km/h 行駛了56 公里,他們在何時到達酒店? <
題目結束>

50
Example (2)
Technique 5: Chain of Thought (CoT) Prompting Organizing an Event
Prompt: Response from ChatGPT:
Provide a guidance to book an airline tickets for guests to visit Booking Airline Tickets for Guests Visiting the University from Another
the University for another country. Country:
Step 1: Gather Information
Collect all the necessary information from the guests, such as their full
Let’s think step by step. names, passport details, contact information, preferred travel dates, and any
specific requirements or preferences they may have.
Step 2: Research Flight Options
Conduct thorough research on available flights from the guests' location to
the nearest airport to the university. Consider factors like airlines, flight
duration, layovers, and costs. Use reliable online travel platforms or contact
travel agents for assistance.
Step 3: Confirm Travel Budget
Understand the budget allocated for the guests' travel expenses. This will
help in selecting appropriate flight options within the set financial limits.
Step 4: Coordinate with the Guests
Discuss the flight options with the guests and confirm their preferred travel
dates and any specific requirements they have. Ensure there are no
scheduling conflicts or issues that may impact their travel plans.
Step 5: Book the Airline Tickets
Once the flight details are finalized, proceed with booking the airline tickets.
Follow these steps:
a. Visit a reputable online travel booking platform or contact a travel agent
who can assist with bookings.
b. Enter the required information, including the guests' names, passport
details, and contact information.
c. Select the desired flights based on the guests' preferences and availability.
d. Review the flight details, including departure and arrival times, layovers,
and any additional services or charges.
e. Enter the payment information and complete the booking process.
Step 6: Provide Confirmation and Itinerary
After booking the tickets, ensure that you receive a confirmation email or
ticket reservation number. Share this information with the guests and provide
them with a copy of the itinerary, including flight details, departure and arrival
51
……
Example (1)
Chinese Language:
Technique 6: Combination Prompting Write a Passage in Student’s Level
Prompt: Contextual Prompting Response from ChatGPT:
我是一個中文寫作水平較差的小五學生。我希望能在中文作文能力上追上 老師評價:這是一篇描述颱風經歷的文章,描述了作者在颱風來襲期間的感受和觀察。文章整體
作為老師,我非常高興看到你積極學習中文寫作,並且希望追趕上其他同學。以下
節約能源,減少對環境的影響:節約、能源、減少、環境影響。
其他同學。 上表達清晰,但還有一些可以改進的地方。
是一篇新的文章供你參考,題目是「難忘的寒假旅行」。這篇文章的難度相若,並且
保護這片土地,讓它們永遠保持原始的樣貌:保護、土地、永遠、原始樣貌。
指出了你需要重點學習的詞彙、文法及修辭手法。
文法:
建議:
Role Prompting One-shot Prompting 增加開頭的引起讀者興趣的描述,例如可以描述颱風來襲時的氣氛、大家的擔心或期待等,讓故
事更吸引人。
「難忘的寒假旅行」
使用了連接詞「除了」和「還」來表達不同的活動。
以一名老師的身份,以我撰寫的文章「難忘的颱風」作為參考例子,撰寫一篇 在描述颱風的影響時,可以更具體地描寫樹木被風吹折的情景,或者房屋的損壞程度。這樣可以
今年的寒假,我和家人一起去了一個美麗的地方度假。這個地方以它壯麗的
使用了「讓」的結構,表達目的或結果。
讓讀者更加感受到颱風的猛烈和破壞力。
不同題目、難度相若的文章供我學習。指出新文章中我應重點學習的詞彙、 山脈和湖泊而聞名,吸引了許多遊客。我們一大早出發,踏上了這次令人期待的寒
使用了「要」的結構,表達決定或打算。
在描述自己幫忙整理家裡物品和煮熱食時,可以加入一些細節,例如整理哪些物品、煮了什麼熱
假旅行。
修辭手法:
食,以及家人的反應等,使故事更生動有趣。
文法及修辭手法等。 在結尾部分,可以再強調一下從這次經歷中學到的重要教訓,例如團結互助的重要性、應對自然
到達目的地後,我們入住了一家坐落於山腳下的小木屋。從窗戶望出去,可以
災害的方法等,讓文章更有結論性。
看到遠處的高山和湖水的倒影,美得讓人屏息。我們在這個寧靜的環境中度過了幾
對比手法:在描述風景時,使用了「高山」和「湖水倒影」的對比,凸顯美麗的景色。
修改後的文章如下:
天,享受大自然的美景。
排比手法:在描述活動時,使用了排比結構「爬山、徒步穿越、騎著自行車環湖而
「難忘的颱風」 在這次旅行中,我學到了很多關於大自然的知識。我們參觀了當地的自然保
行」,增強了敘述的節奏感。
難忘的颱風
那天,颱風來襲的消息傳遍了整個城市。我們的學校也因此停課,讓我 護區,看到了許多野生動物和植物。導遊向我們講解了它們的特點和生態環境,讓
透過學習這些詞彙、文法和修辭手法,你可以豐富你的寫作表達,使文章更加生動
那天,整個城市都傳遍了颱風即將襲來的消息。學校停課了,這讓我不禁感到興奮。我和家人一起
不禁感到興奮。我和家人一起待在家裡,觀察著外面的情況。起初,只有風 我們更加了解這片土地的價值和重要性。
有趣。記得多閱讀和寫作,不斷練習,相信你的中文作文能力會有顯著的進步!加
待在家裡,觀察著外面的情況。一開始,風有些大,雨也不太大,看起來還不太嚴重。然而,隨著時
油! 除了觀賞大自然的美景,我們還參加了一些有趣的活動。我們一起爬山,徒步
間的推移,風越來越猛烈,雨也越來越大。我們家附近的樹木被風吹得搖擺不定,甚至有些被風吹
有些大,雨也不太大,看起來還不太嚴重。但隨著時間的推移,風越來越大, 穿越了一個古老的森林,感受到了大自然的力量和神奇。我們還騎著自行車環湖而
折了,這樣的場景讓我感到害怕。
雨也越來越大。我們的家附近道路上的樹木被風吹得搖擺不定,甚至有些被 行,感受涼爽的湖風拂過臉頰的舒適。
坐在窗邊,我望著窗外的風景,心裡不禁升起一股敬佩之情。有些人在外面勇敢地工作,修剪樹木
這次旅行讓我意識到大自然的美麗和脆弱。我們需要保護這片土地,讓它們
風吹折了。 ,清理下水道。看到他們的努力,我也決定出一份力。我開始幫忙整理家裡的物品,讓它們不至於
永遠保持原始的樣貌。我決定回去後,要更加節約能源,減少對環境的影響。
被風吹得到處亂飛。我還熱情地煮了一些熱食,讓家人們暖暖身子,溫暖彼此的心。
我在家裡坐在窗邊,望著窗外的風景,心裡有些害怕。但是,當我看到 這次寒假旅行對我來說是難忘的。不僅讓我欣賞到了大自然的奇觀,也學到
當颱風終於過去時,我們的家裡一切都恢復了平靜,只有外面的景象讓人驚嘆。道路上倒塌的樹
了保護環境的重要性。我相信,只要我們每個人都努力,我們可以共同創造一個更
有些人在外面工作,修剪樹木,清理下水道時,我感到自己也要出一份力。 木和掀翻的鐵皮屋頂,讓我深深地體會到颱風的可怕。然而,我們也為那些勇敢的人們所感動,他
美好的世界。
於是我開始幫忙整理家裡的物品,讓它們不至於被風吹得到處亂飛。我也開 們為了大家的安全不畏艱險地工作。

始煮些熱食,讓家人們暖暖身子。 重點學習的詞彙、文法及修辭手法:
這次颱風的經歷讓我明白到,我們需要互相幫助,才能度過逆境。我也深刻體會到,每一次颱風的
來臨都是一個考驗,讓我們學習如何應對自然災害。我相信,這次的經歷讓我們從中學到更多的
詞彙:
當颱風終於過去時,我們的家裡一切都很平靜,只有外面的景象讓人 經驗,讓我們更加堅強。在未來,我們將更加團結一致,共同面對困難,並且勇敢地迎接挑戰。
壯麗的山脈和湖泊:壯麗、山脈、湖泊。
驚嘆。道路上倒塌的樹木和掀翻的鐵皮屋頂,讓我們深深地體會到颱風的可 入住了一家坐落於山 腳下的小木屋:入住、坐落、山腳下、小木屋。
希望以上修改能對你有所幫助!加油,你一定能在中文作文能力上追上其他同學!如果有任何問
怕。但是,我們也為那些勇敢的人們所感動,他們為了大家的安全而努力工 看到遠處的高山和湖水的倒影:遠處、高山、湖水、倒影。
題,隨時都可以向我提問。
參觀了當地的自然保護區:參觀、當地、自然保護區。
作。 一起爬山,徒步穿越了一個古老的森林:一起、爬山、徒步穿越、古老、森林。
這次颱風的經歷讓我明白到,我們需要互相幫助,才能度過逆境。我也 騎著自行車環湖而行:騎著、自行車、環湖而行。
明白到,每一次颱風都是一個考驗,讓我們學習如何應對自然災害。雖然這
次颱風讓我們經歷了一些困難,但我相信,我們一定能 夠從中學到更多的經 52
驗,讓我們更加堅強。 ……
Example (2)
Technique 6: Combination Prompting Detailed Recruitment Guide
Prompt: Role Prompting Response from ChatGPT:
You are a manager in a real estate who wants to hire a team to Certainly! Here's a step-by-step guide to help you hire a team to develop an AI application for
develop AI application. your real estate company:
Step 1: Define Project Scope and Objectives
Clearly define the goals and objectives of your AI application. Identify the specific problems or
Chain of Thought (CoT) tasks you want the application to address within the real estate domain. This will help you shape
Provide a step by step guide. your team's requirements and determine the skills you need.
Step 2: Identify Required Roles and Skills
Based on your project scope, identify the key roles and skills needed for the AI application
development team. Consider roles such as:
• AI Developer: Proficient in machine learning, deep learning, and programming languages
like Python or R.
• Data Scientist: Skilled in data analysis, modeling, and statistical techniques.
• Domain Expert: Familiar with real estate industry trends, practices, and challenges.
• UX/UI Designer: Capable of designing intuitive user interfaces for the application.
• Project Manager: Provides leadership, manages timelines, and ensures project
deliverables.
Step 3: Create Job Descriptions
Develop detailed job descriptions for each role, outlining the responsibilities, required
qualifications, and desired experience. Be clear about the AI technologies and tools candidates
should be proficient in, such as TensorFlow, PyTorch, or data visualization libraries.
Step 4: Source Candidates
Utilize various channels to source potential candidates, including job boards, professional
networks, AI and data science communities, and referrals from your existing network. Leverage
social media platforms, attend relevant industry events, and consider partnering with universities
or AI-focused organizations to find suitable talent.
Step 5: Screen Resumes and Conduct Interviews
Review the received resumes and shortlist candidates who meet the required qualifications.
Conduct initial phone or video interviews to assess their skills, experience, and cultural fit.
Prepare a set of technical and behavioral questions to evaluate their expertise in AI development
and their ability to work in a team.
Step 6: Technical Assessments or Assignments
For candidates who pass the initial interviews, consider conducting technical assessments or
assignments to evaluate their problem-solving abilities and practical skills related to AI application
development. This step will help you assess their proficiency and their approach to real
estate-specific challenges.
Step 7: Team Collaboration and Cultural Fit
Organize team-based interviews or collaborative exercises to assess how candidates work in a
team environment. Evaluate their communication skills, collaborative mindset, and ability to
contribute effectively to a multidisciplinary project.
Step 8: Check References and Review Portfolios
Contact references provided by the candidates to verify their work experience, skills, and
professionalism. Additionally, review their portfolios, past projects, or code repositories to gain a 53
……
Certificate of Completion in
Programme for the Use of Generative Artificial Intelligence Tools at the Workplace
Application Course: Using GPT to Solve Real-Life Problem
Workshop: Introduction to Prompts and Prompt Engineering
江紹祥教授 KONG, Siu-Cheung
數學與資訊科技學系電子學習與數碼能力研究講座教授 Research Chair Professor of E-Learning and Digital Competency of
人工智能及數碼能力教育中心總監 Department of Mathematics and Information Technology

香港教育大學 Director of Artificial Intelligence and Digital Competency Education Centre


The Education University of Hong Kong

Thank You!

You might also like