1 of 105

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

2 of 105

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

3 of 105

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

4 of 105

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

5 of 105

re: Emails

  • I am just Mark, not Prof. Mark, Prof. Tam, Professor, Teacher….
  • Always put [CCAI9012] at beginning of email subject line.
  • Always include May in email <mayelhadidi@connect.hku.hk>

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

5

Kam-Ming Mark TAM | Waishan QIU

6 of 105

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

7 of 105

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

8 of 105

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

9 of 105

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

10 of 105

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

11 of 105

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

12 of 105

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

13 of 105

Week 6 (Next Week) Tutorial Concept

⚠️ Please bring an idea that you can build towards a

problem statement for your Course Project.

  • A problem statement is a concise account of a situation in which something is missing, unknown, inadequate, or harmful. 
  • It should say:
    • What the problem is
    • Where it occurs
    • Who/what is affected
    • Why it matters now
  • Its format is flexible, from extensive to condensed.�

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

13

Kam-Ming Mark TAM | Waishan QIU

14 of 105

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

15 of 105

How this project applies our submission formula…

i. Abstract

    • title + general description

ii. Slides

    • curated, captioned & sequenced artefacts

iii. Video

    • 90 seconds-2 minutes
    • tell a story: combine audio & visuals

iv: Document

    • not needed for this project

(i.e. raw data)

  • Your raw photo/plan collection…
  • Your conversations…
  • Your generated outputs…

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

16 of 105

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

17 of 105

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

18 of 105

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

19 of 105

Proposed Accommodations

  • Assignment 0
    • deadline extended: 14 October 🡪 28 October
    • online explainer tutorial: 5 October [link]
  • Assignment 1
    • keep substantially simplified; single-page submission; details to be announced soon

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

19

Kam-Ming Mark TAM | Waishan QIU

20 of 105

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

21 of 105

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

22 of 105

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

23 of 105

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

24 of 105

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

25 of 105

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

26 of 105

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

27 of 105

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

28 of 105

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

29 of 105

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

30 of 105

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

30

Kam-Ming Mark TAM | Waishan QIU

31 of 105

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

32 of 105

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

33 of 105

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

34 of 105

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

35 of 105

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

36 of 105

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

37 of 105

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

38 of 105

Critical Functions of LLM Agent

  • 1. Model (LLM)�→ Generates text / reasoning

​

  • 2. Prompt�→ Instructions + role + format

​

  • 3. Context & Memory�→ Chat history, summaries, user data

​

  • 4. Knowledge Retrieval (RAG)�→ Injects external knowledge

​

  • 5. Tools�→ APIs, search, actions

​

  • 6. Orchestrator (Agent Loop)�→ Controls flow: decide → act → update

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

38

Kam-Ming Mark TAM | Waishan QIU

39 of 105

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

40 of 105

  • 1. Model (LLM)�→ Generates text / reasoning

​

  • 2. Prompt�→ Instructions + role + format

​

  • 3. Context & Memory�→ Chat history, summaries, user data

​

  • 4. Knowledge Retrieval (RAG)�→ Injects external knowledge

​

  • 5. Tools�→ APIs, search, actions

​

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

41 of 105

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

42 of 105

Prompt

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

42

Kam-Ming Mark TAM | Waishan QIU

43 of 105

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

44 of 105

Your text input to your LLM chatbot is just a small part of what it sees.

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

45 of 105

Your text input to your LLM chatbot is just a small part of what it sees.

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

46 of 105

Your text input to your LLM 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

46

Kam-Ming Mark TAM | Waishan QIU

47 of 105

Example: Online Psychologist

You are a supportive online counsellor.��Rules:�[

  • Be empathetic and non-judgmental
  • Ask gentle follow-up question
  • Do not give harsh or directive advice
  • Focus on understanding the user’s feelings

]

​

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

48 of 105

Memory

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

48

Kam-Ming Mark TAM | Waishan QIU

49 of 105

Memory

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

49

Kam-Ming Mark TAM | Waishan QIU

50 of 105

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

51 of 105

+ History

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

51

Kam-Ming Mark TAM | Waishan QIU

52 of 105

Summarisation for Memory

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

52

Kam-Ming Mark TAM | Waishan QIU

53 of 105

Knowledge Retrieval

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

53

Kam-Ming Mark TAM | Waishan QIU

54 of 105

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

55 of 105

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

55

Kam-Ming Mark TAM | Waishan QIU

56 of 105

Tool

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

56

Kam-Ming Mark TAM | Waishan QIU

57 of 105

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

58 of 105

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

59 of 105

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

60 of 105

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).

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

60

Kam-Ming Mark TAM | Waishan QIU

61 of 105

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

61

Kam-Ming Mark TAM | Waishan QIU

62 of 105

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

63 of 105

Mangaging Tool Context (Naïve)

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

63

Kam-Ming Mark TAM | Waishan QIU

64 of 105

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

65 of 105

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

65

Kam-Ming Mark TAM | Waishan QIU

66 of 105

Reasoning

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

66

Kam-Ming Mark TAM | Waishan QIU

67 of 105

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

67

Kam-Ming Mark TAM | Waishan QIU

68 of 105

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

68

Kam-Ming Mark TAM | Waishan QIU

69 of 105

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

70 of 105

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

71 of 105

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

72 of 105

Agent & Agents

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

72

Kam-Ming Mark TAM | Waishan QIU

73 of 105

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

73

Kam-Ming Mark TAM | Waishan QIU

74 of 105

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

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

74

Kam-Ming Mark TAM | Waishan QIU

75 of 105

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

75

Kam-Ming Mark TAM | Waishan QIU

76 of 105

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

77 of 105

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

78 of 105

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

79 of 105

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

80 of 105

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

81 of 105

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

82 of 105

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

83 of 105

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

84 of 105

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

84

Kam-Ming Mark TAM | Waishan QIU

85 of 105

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

86 of 105

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

87 of 105

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

88 of 105

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

89 of 105

Re: Presentation & Style

  • Tight & logical presentation structure
    • sections: hook, context/problem, objective, methods, results, conclusion

​

  • Meaningful diagram & figures
    • Avoid generic diagrams; customise for problem
    • AI-use: generate components rather than entire workflows
    • Avoid placeholder-style figures

​

  • Clean, legible & minimal presentation:
    • Avoid unnecessary styling: colour gradients, animations, word art
    • Provide hierarchy & structure

​

  • Citations, citations, citations!

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

89

Kam-Ming Mark TAM | Waishan QIU

90 of 105

Re: Content

  • Meaningful literature review
    • What are the existing methods?
    • Highlight how existing methods fail

​

  • Keep your research/project question & scope manageable
    • Clarity & focus over breadth
    • Do not be vague; boil down your work to 3-4 key points

​

  • Reproducible methods

​

  • Clear evaluation metrics
    • Compared with key relevant methods

​

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

90

Kam-Ming Mark TAM | Waishan QIU

91 of 105

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

92 of 105

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

93 of 105

Scope & Methods

CCAI 9012 : GenAI Solutions to Global Challenges: Using AI Creatively and Responsibly

2026.09.30

93

Kam-Ming Mark TAM | Waishan QIU

94 of 105

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

95 of 105

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

96 of 105

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

97 of 105

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

98 of 105

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

99 of 105

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

100 of 105

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

101 of 105

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

102 of 105

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

103 of 105

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

104 of 105

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

105 of 105

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