<< Extending LLMs >>
Week 5
CCAI 9012
GenAI Solutions to Global Challenges: �Using AI Creatively and Responsibly
Kam-Ming Mark Tam
Class Coordinator
Impressionist-style scene of human–AI co-existence
Generated with ChatGPT (OpenAI), 2026.
BT 1 (ARCH 2056/7330) Building Technology 1 : Building Principles
07/10/2026
1
Kam-Ming Mark TAM
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
1
Kam-Ming Mark TAM | Waishan QIU
Review of Timeline
Always check [link] for up-to-date schedule.
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
2
Kam-Ming Mark TAM | Waishan QIU
Course Announcements & Logistics
Extending LLMs
Overview
Core Components
Towards Intelligence
Prompting Techniques
ML Review
Course Project Building
Final Words
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
3
Kam-Ming Mark TAM | Waishan QIU
A.2: Course Project
A.0: Applied Exercise
+ miscellaneous items…
Course Announcements & Logistics
Extending LLMs
Overview
Core Components
Towards Intelligence
Prompting Techniques
ML Review
Course Project Building
Final Words
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
4
Kam-Ming Mark TAM | Waishan QIU
re: Emails
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
5
Kam-Ming Mark TAM | Waishan QIU
Make-up Tutorial
Sign up for online make-up tutorials [link].
Affected slots:
1 October 2026
19 October 2026
You are strongly encouraged to join!
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
6
Kam-Ming Mark TAM | Waishan QIU
re: A.2: Course Project
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
7
Kam-Ming Mark TAM | Waishan QIU
Thank you for your understanding & patience 🙏
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
8
Kam-Ming Mark TAM | Waishan QIU
A.2.0: Course Project Team Formation
Remember to register your team formation!
Please register by
Saturday, 3 October 2026
End of Day 🙏
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
9
Kam-Ming Mark TAM | Waishan QIU
A.2.0: Course Project Team Formation
Keep team size to 4-6 persons…
However…
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
10
Kam-Ming Mark TAM | Waishan QIU
A.2.0: Course Project Team Formation
Nickname + blurb
Have some fun!
Give us a sense on what you are up to.
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
11
Kam-Ming Mark TAM | Waishan QIU
Review of Timeline
Always check [link] for up-to-date schedule.
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
12
Kam-Ming Mark TAM | Waishan QIU
Week 6 (Next Week) Tutorial Concept
⚠️ Please bring an idea that you can build towards a
problem statement for your Course Project.
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
13
Kam-Ming Mark TAM | Waishan QIU
re: A.0: Applied Exercise
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
14
Kam-Ming Mark TAM | Waishan QIU
How this project applies our submission formula…
i. Abstract
ii. Slides
iii. Video
iv: Document
(i.e. raw data)
Presentables
Artefacts
Create “presentables”…
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
15
Kam-Ming Mark TAM | Waishan QIU
Philosophy Behind Course Work
| | A.0 | A.1 | A.2 | |
| | Applied Exercise | Case Study | Course Project | Overall |
Characteristics | Guidedness + Specificity | ■ Very Guided | ■ Very Loose | ■ Very Loose | |
Defined Goals | ■ High | ■ Low | ■ Low | | |
Data Production | ■ Medium-High | ■ Medium | ■ High | | |
Artefacts + Presentables? | True | True | True | | |
Project Uncertainty | ■ Low-Medium | ■ Medium | ■ High | | |
Deliverable Variability | ■ Low | ■ High | ■ High | | |
Workload | 16 hours | 12 hours | 60 hours | | |
Iter. | Version 1.0 (2025-2026) | n/a | 3x | 1x | 4x = 96 hours |
Version 2.0 (2026-2027, as planned) | 1x | 1x | 1x | 3x = 88 hours | |
| Version 2.1 (adjusted)? | ? | ? | ? | |
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
16
Kam-Ming Mark TAM | Waishan QIU
Let’s Discuss & Resolve
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
17
Kam-Ming Mark TAM | Waishan QIU
Mentimeter: Week 5 Survey
Assignment 0 Checkup
ACTIVITY
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
18
Kam-Ming Mark TAM | Waishan QIU
Proposed Accommodations
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
19
Kam-Ming Mark TAM | Waishan QIU
Review of Timeline
?
Where would you like to place this?
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
20
Kam-Ming Mark TAM | Waishan QIU
Mentimeter: Week 5 Survey
Assignment 0 & Course Temperature Checkup
ACTIVITY
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
21
Kam-Ming Mark TAM | Waishan QIU
Course Announcements & Logistics
Extending LLMs
Overview
Core Components
Towards Intelligence
Prompting Techniques
ML Review
Course Project Building
Final Words
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
22
Kam-Ming Mark TAM | Waishan QIU
Course contents will only get easier from now :)
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
23
Kam-Ming Mark TAM | Waishan QIU
What is going on behind the scene
with your favourite AI agentic assistant?
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
24
Kam-Ming Mark TAM | Waishan QIU
Mentimeter: Icebreaker for Extending LLM
Thinking About Intelligence
ACTIVITY
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
25
Kam-Ming Mark TAM | Waishan QIU
Why might we NOT want an LLM to perform certain tasks?
(tasks such as calculations, etc)
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
26
Kam-Ming Mark TAM | Waishan QIU
Concept Recall: Learning Probability Distribution
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
27
Kam-Ming Mark TAM | Waishan QIU
Concept Recall: Learning Probability Distribution
Mechanics of LLM
The capital city of China is
Chongqing
Beijing
Shanghai
Xian
Xianggang
…
Washington, D.C.
Paris
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
28
Kam-Ming Mark TAM | Waishan QIU
Concept Recall: Text Completion Model
An Intuitive Example
<<A Tale of Two Cities>>, Charles Dickens
It was the best of times, it was the worst of times…
was
the
best
times
worst
…
how
they
It
the
was
ℳ
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
29
Kam-Ming Mark TAM | Waishan QIU
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
30
Kam-Ming Mark TAM | Waishan QIU
Attention Is All You Need!
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
31
Kam-Ming Mark TAM | Waishan QIU
Transformer
The backbone of LLMs
https://botpenguin.com/blogs/understanding-the-various-types-of-llms
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
32
Kam-Ming Mark TAM | Waishan QIU
Concept Recall: Learning Probability Distribution
Mechanics of LLM
The capital city of China is
Chongqing
Beijing
Shanghai
Xian
Xianggang
…
Washington, D.C.
Paris
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
33
Kam-Ming Mark TAM | Waishan QIU
Attention is All You Need
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
34
Kam-Ming Mark TAM | Waishan QIU
Course Announcements & Logistics
Extending LLMs
Overview
Core Components
Towards Intelligence
Prompting Techniques
ML Review
Course Project Building
Final Words
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
35
Kam-Ming Mark TAM | Waishan QIU
What are properitery LLMs?
https://botpenguin.com/blogs/understanding-the-various-types-of-llms
+
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
36
Kam-Ming Mark TAM | Waishan QIU
Applications of LLM
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
37
Kam-Ming Mark TAM | Waishan QIU
Critical Functions of LLM Agent
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
38
Kam-Ming Mark TAM | Waishan QIU
Anatomy of an LLM Agent
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
39
Kam-Ming Mark TAM | Waishan QIU
Orchestrator�→ Controls flow: decide → act → update
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
40
Kam-Ming Mark TAM | Waishan QIU
Course Announcements & Logistics
Extending LLMs
Overview
Core Components
Towards Intelligence
Prompting Techniques
ML Review
Course Project Building
Final Words
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
41
Kam-Ming Mark TAM | Waishan QIU
Prompt
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
42
Kam-Ming Mark TAM | Waishan QIU
Your text input to your LLM-powered assistant / chatbot is just a small part of what it sees.
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
43
Kam-Ming Mark TAM | Waishan QIU
Your text input to your LLM chatbot is just a small part of what it sees.
Images adapted from https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-llm-agents
How are you doing?
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
44
Kam-Ming Mark TAM | Waishan QIU
Your text input to your LLM chatbot is just a small part of what it sees.
Images adapted from https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-llm-agents
How are you doing?
?
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
45
Kam-Ming Mark TAM | Waishan QIU
Your text input to your LLM chatbot is just a small part of what it sees.
Images adapted from https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-llm-agents
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
46
Kam-Ming Mark TAM | Waishan QIU
Example: Online Psychologist
You are a supportive online counsellor.��Rules:�[
]
User:
[insert prompt]
User Input
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
47
Kam-Ming Mark TAM | Waishan QIU
Memory
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
48
Kam-Ming Mark TAM | Waishan QIU
Memory
Images adapted from https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-llm-agents
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
49
Kam-Ming Mark TAM | Waishan QIU
Two-Part Memory
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
50
Kam-Ming Mark TAM | Waishan QIU
+ History
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
51
Kam-Ming Mark TAM | Waishan QIU
Summarisation for Memory
Images adapted from https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-llm-agents
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
52
Kam-Ming Mark TAM | Waishan QIU
Knowledge Retrieval
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
53
Kam-Ming Mark TAM | Waishan QIU
Concept Recall: LLM Embeds Text as Vectors
IN
ℳ
OUT
“text”
…
D
1
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
54
Kam-Ming Mark TAM | Waishan QIU
Images adapted from https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-llm-agents
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
55
Kam-Ming Mark TAM | Waishan QIU
Tool
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
56
Kam-Ming Mark TAM | Waishan QIU
Concept Recall: AI & Spelling
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
57
Kam-Ming Mark TAM | Waishan QIU
As an example: Suppose we want our AI agent to help users convert currencies. How should we design it?
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
58
Kam-Ming Mark TAM | Waishan QIU
User:
"How much is HK$8,750 in GBP today?"
↓
LLM
↓
"HK$8,750 is approximately £..."
What not to do…
User:
"How much is HK$8,750 in GBP today?"
↓
LLM:
Identifies what is needed
↓
get_exchange_rate("HKD", "GBP")
↓
calculator(8750 × rate)
↓
LLM:
Explains the result to the user
What modern agents do…
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
59
Kam-Ming Mark TAM | Waishan QIU
Tools allow a given LLM to either interact with an external environment (such as databases) or use external applications (such as custom code to run).
Images adapted from https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-llm-agents
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
60
Kam-Ming Mark TAM | Waishan QIU
To use a tool, the LLM generates text that fits with the data specification required by the tool’s API.
Often strings are formatted to JSON so that it can easily be fed to a code interpreter.
Images adapted from https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-llm-agents
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
61
Kam-Ming Mark TAM | Waishan QIU
To use a tool, the LLM generates text that fits with the data specification required by the tool’s API.
Often strings are formatted to JSON so that it can easily be fed to a code interpreter.
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
62
Kam-Ming Mark TAM | Waishan QIU
Mangaging Tool Context (Naïve)
Images adapted from https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-llm-agents
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
63
Kam-Ming Mark TAM | Waishan QIU
Course Announcements & Logistics
Extending LLMs
Overview
Core Components
Towards Intelligence
Prompting Techniques
ML Review
Course Project Building
Final Words
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
64
Kam-Ming Mark TAM | Waishan QIU
Images adapted from https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-llm-agents
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
65
Kam-Ming Mark TAM | Waishan QIU
Reasoning
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
66
Kam-Ming Mark TAM | Waishan QIU
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
67
Kam-Ming Mark TAM | Waishan QIU
Images adapted from https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-llm-agents
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
68
Kam-Ming Mark TAM | Waishan QIU
Mixture of Experts
Have LLM produce checklist in one step, followed by step-by-step execution in successive LLM passes.
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
69
Kam-Ming Mark TAM | Waishan QIU
SELF-REFINE: Iterative Refinement with Self-Feedback
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
70
Kam-Ming Mark TAM | Waishan QIU
SELF-REFINE: Iterative Refinement with Self-Feedback
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
71
Kam-Ming Mark TAM | Waishan QIU
Agent & Agents
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
72
Kam-Ming Mark TAM | Waishan QIU
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
73
Kam-Ming Mark TAM | Waishan QIU
One agent doing too many things can add too much complexity…
Specialisation can help.
Multi-Agents frameworks feature multiple agents (each with access to tools, memory, and planning) interacting with each other and their environments
Images adapted from https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-llm-agents
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
74
Kam-Ming Mark TAM | Waishan QIU
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
75
Kam-Ming Mark TAM | Waishan QIU
Course Announcements & Logistics
Extending LLMs
Overview
Core Components
Towards Intelligence
Prompting Techniques
ML Review
Course Project Building
Final Words
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
76
Kam-Ming Mark TAM | Waishan QIU
Insert intelligence via prompting to prototype systems with enhanced reasoning.
Experiment Here
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
77
Kam-Ming Mark TAM | Waishan QIU
Zero-Shot
Source: https://www.promptingguide.ai/techniques
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
78
Kam-Ming Mark TAM | Waishan QIU
Few-Shot Prompting
Source: https://www.promptingguide.ai/techniques
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
79
Kam-Ming Mark TAM | Waishan QIU
Chain-of-Thought
Source: https://www.promptingguide.ai/techniques
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
80
Kam-Ming Mark TAM | Waishan QIU
Chain-of-Thought
Source: https://www.promptingguide.ai/techniques
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
81
Kam-Ming Mark TAM | Waishan QIU
Multi-Modal Chain-of-Thought (Naïve Version)
Source: https://arxiv.org/abs/2302.00923 (with substantial concept modification and simplification)
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
82
Kam-Ming Mark TAM | Waishan QIU
Multi-Modal Chain-of-Thought (Naïve Version)
Source: https://arxiv.org/abs/2302.00923 (with substantial concept modification and simplification)
Describe the relative position of the two magnets’ poles.
The north pole is placed beside the south pole.
Formulate�Key
Apsects to
Look for.
Give
Observe.
Answer
with
Reason
Break-up analysis into multiple steps…
Task → Key Aspects to Look For
Key Aspects + Image → Observations
Observations + Task → Answers (with Reason)
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
83
Kam-Ming Mark TAM | Waishan QIU
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
84
Kam-Ming Mark TAM | Waishan QIU
Mentimeter: Applying Concepts from Extending LLM
Agentic Concepts Understanding Checkup
ACTIVITY
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
85
Kam-Ming Mark TAM | Waishan QIU
Course Announcements & Logistics
Extending LLMs
Overview
Core Components
Towards Intelligence
Prompting Techniques
ML Review
Course Project Building
Final Words
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
86
Kam-Ming Mark TAM | Waishan QIU
A provocative start…
https://youtube.com/shorts/6ksKtZTud0c?si=0h2uT426AzkCFqsv
Why is this happening?
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
87
Kam-Ming Mark TAM | Waishan QIU
Course Announcements & Logistics
Extending LLMs
Overview
Core Components
Towards Intelligence
Prompting Techniques
ML Review
Course Project Building
Final Words
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
88
Kam-Ming Mark TAM | Waishan QIU
Re: Presentation & Style
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
89
Kam-Ming Mark TAM | Waishan QIU
Re: Content
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
90
Kam-Ming Mark TAM | Waishan QIU
Keep In Mind
Attention & care,
Defined problem,
Reproducible method explanation,
Structured experimental process,
Algorithmic thinking,
Iterative refinement,
Clear evaluation…
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
91
Kam-Ming Mark TAM | Waishan QIU
Rule of 3
At least…
3 methods…
3 settings…
3 scores…
3 variations...
more than 3 data points
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
92
Kam-Ming Mark TAM | Waishan QIU
Scope & Methods
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
93
Kam-Ming Mark TAM | Waishan QIU
Potential Project Outcomes
Insights
1
Proof-of-Concept Workflow
2
Tool
3
You do not need to develop a fully functional product.�Rigorous research and light investigations into potential next steps are more than sufficient.
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
94
Kam-Ming Mark TAM | Waishan QIU
starter_kits/2_llm_structure_output/pdf_extraction/energy_plan.ipynb
Pythonic LLM-Powered Analysis of Documents
INTERACTIVE
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
95
Kam-Ming Mark TAM | Waishan QIU
Training your own model is not a requirement.
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
96
Kam-Ming Mark TAM | Waishan QIU
How are you doing?
?
Insert intelligence via prompting to prototype systems with enhanced reasoning.
Experiment Here
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
97
Kam-Ming Mark TAM | Waishan QIU
Baseline Comparison
vs
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
98
Kam-Ming Mark TAM | Waishan QIU
Make sure you perform your experiments within a new LLM instance
each time to avoid unintended biases from past context.
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
99
Kam-Ming Mark TAM | Waishan QIU
Example Prompting Strategy
You are an expert fraud and scam detection assistant.��Task:�Analyse the message below and determine if it is likely a scam.��Steps:�1. Identify suspicious signals (urgency, threats, unusual requests, links)�2. Explain why each signal is concerning�3. Classify risk: Low / Medium / High�4. Suggest what the user should do next��Output format:�- Verdict:�- Risk level:�- Key signals:�- Explanation:�- Recommended action:��Message:�{user_input}
Anti-Spam
You are an expert in detecting AI-generated or manipulated images.
Task:
Given the description or metadata, assess whether the image is likely fake.
Consider:
- Visual inconsistencies (hands, text, lighting, shadows)
- Metadata anomalies
- Unrealistic details or artifacts
Steps:
1. List possible indicators of manipulation
2. Explain each indicator
3. Give a confidence score (0–100%)
4. State final judgment: Real / Likely Fake / Uncertain
Input:
{image_description_or_metadata}
Fake News Image
You are a compassionate and thoughtful psychologist.
Guidelines:
- Be empathetic and non-judgmental
- Reflect the user’s feelings before giving advice
- Ask gentle follow-up questions
- Offer practical but soft suggestions
- Do not be overly clinical or dismissive
Response structure:
1. Acknowledge feelings
2. Reflect back what you heard
3. Offer insight or coping strategy
4. Ask a follow-up question
User:
{user_input}
Psychologist
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
100
Kam-Ming Mark TAM | Waishan QIU
Example Prompting Strategy
You are an expert fraud and scam detection assistant.��Task:�Analyse the message below and determine if it is likely a scam.��Steps:�1. Identify suspicious signals (urgency, threats, unusual requests, links)�2. Explain why each signal is concerning�3. Classify risk: Low / Medium / High�4. Suggest what the user should do next��Output format:�- Verdict:�- Risk level:�- Key signals:�- Explanation:�- Recommended action:��Message:�{user_input}
Anti-Spam
You are an expert in detecting AI-generated or manipulated images.
Task:
Given the description or metadata, assess whether the image is likely fake.
Consider:
- Visual inconsistencies (hands, text, lighting, shadows)
- Metadata anomalies
- Unrealistic details or artifacts
Steps:
1. List possible indicators of manipulation
2. Explain each indicator
3. Give a confidence score (0–100%)
4. State final judgment: Real / Likely Fake / Uncertain
Input:
{image_description_or_metadata}
Fake News Image
You are a compassionate and thoughtful psychologist.
Guidelines:
- Be empathetic and non-judgmental
- Reflect the user’s feelings before giving advice
- Ask gentle follow-up questions
- Offer practical but soft suggestions
- Do not be overly clinical or dismissive
Response structure:
1. Acknowledge feelings
2. Reflect back what you heard
3. Offer insight or coping strategy
4. Ask a follow-up question
User:
{user_input}
Psychologist
Research
Research
Research
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
101
Kam-Ming Mark TAM | Waishan QIU
Example: Guideline for Psychologist
You are a compassionate and thoughtful mental health support assistant.
Your role is to support the user emotionally, not to diagnose or replace professional care.
Follow this response framework:
1. Acknowledge & Validate
- Recognise the user’s feelings
- Be empathetic and non-judgmental
2. Reflect & Clarify
- Paraphrase what the user is experiencing
- Show you understand their situation
3. Gentle Support
- Offer supportive insights or coping strategies
- Do not give prescriptive or authoritative advice
4. Encourage Agency
- Empower the user to make their own choices
- Avoid telling them what they “should” do
5. Ask Thoughtful Questions
- Ask one open-ended, low-pressure follow-up question
6. Safety Awareness
- If the user expresses strong distress, gently encourage seeking support from trusted people or professionals
Tone:
- Warm, calm, and respectful
- Avoid clichés or overly clinical language
User message:
{input}
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
102
Kam-Ming Mark TAM | Waishan QIU
Example Prompting Strategy
You are an expert fraud and scam detection assistant.��Task:�Analyse the message below and determine if it is likely a scam.��Steps:�1. Identify suspicious signals (urgency, threats, unusual requests, links)�2. Explain why each signal is concerning�3. Classify risk: Low / Medium / High�4. Suggest what the user should do next��Output format:�- Verdict:�- Risk level:�- Key signals:�- Explanation:�- Recommended action:��Message:�{user_input}
Anti-Spam
You are an expert in detecting AI-generated or manipulated images.
Task:
Given the description or metadata, assess whether the image is likely fake.
Consider:
- Visual inconsistencies (hands, text, lighting, shadows)
- Metadata anomalies
- Unrealistic details or artifacts
Steps:
1. List possible indicators of manipulation
2. Explain each indicator
3. Give a confidence score (0–100%)
4. State final judgment: Real / Likely Fake / Uncertain
Input:
{image_description_or_metadata}
Fake News Image
You are a compassionate and thoughtful psychologist.
Guidelines:
- Be empathetic and non-judgmental
- Reflect the user’s feelings before giving advice
- Ask gentle follow-up questions
- Offer practical but soft suggestions
- Do not be overly clinical or dismissive
Response structure:
1. Acknowledge feelings
2. Reflect back what you heard
3. Offer insight or coping strategy
4. Ask a follow-up question
User:
{user_input}
Psychologist
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
103
Kam-Ming Mark TAM | Waishan QIU
Course Announcements & Logistics
Extending LLMs
Overview
Core Components
Towards Intelligence
Prompting Techniques
ML Review
Course Project Building
Final Words
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
104
Kam-Ming Mark TAM | Waishan QIU
Thank You for Your Attention!
CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly
2026.09.30
105
Kam-Ming Mark TAM | Waishan QIU