simonraj commited on
Commit
1ded63f
1 Parent(s): ef795c3

Create HongWenData.py

Browse files
Files changed (1) hide show
  1. HongWenData.py +53 -0
HongWenData.py ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ strategy_text = {
2
+ 0: ("PEEL strategy (Point, Evidence, Experience(s), Link back to the question)",
3
+ "Structure your feedback using the PEEL strategy. Begin with a Point, provide Evidence to support it, share an Experience or example, and finally Link back to the question."),
4
+
5
+ 1: ("5W1H thinking frame (Who, What, Where, When, Why, How)",
6
+ "Structure your feedback using the 5W1H thinking frame. Address Who the user is talking about, What they are discussing, Where it's happening, When it's occurring, Why they feel that way, and How they express it."),
7
+
8
+ 2: ("OREO thinking frame (Opening Statement, Reasons, Elaborate, Opinion)",
9
+ "Structure your feedback using the OREO thinking frame. Begin with an Opening Statement about the user's response, provide Reasons for your feedback, Elaborate on those reasons, and conclude with an Opinion on their overall response.")
10
+ }
11
+
12
+ description = (
13
+ "The image showcases a promotional advertisement banner titled \"Bestsellers for the month of October!\" Underneath the title, there's a sub-caption that reads, \"Do not miss out! Now at a special discount for 3 days only!\""
14
+ "\n\nThe items displayed in the advertisement are:"
15
+ "\n\nBestseller #1 - A board game. It is illustrated as a rectangular game box with question marks on its cover, suggesting the content or theme of the game might be a surprise or mystery."
16
+ "\n\nBestseller #2 - A gaming console. The illustration shows a sleek, flat gaming console device next to a controller with buttons and a joystick."
17
+ "\n\nBestseller #3 - Titled \"Smash It\", this item is depicted as a badminton racket paired with a shuttlecock."
18
+ "\n\nThe products are clearly labeled and emphasized to showcase their popularity and relevance for the month of October. The entire design aims to attract customers and prompt them to avail of the special discount."
19
+ )
20
+
21
+ questions = [
22
+ f"1. Look at the picture. Would you be interested in playing with these toys and games? Why / Why not? (Strategy: {strategy_text[0][0]})",
23
+ f"2. Do you spend a lot of time playing with toys and games? Why / Why not? (Strategy: {strategy_text[1][0]})",
24
+ f"3. What do you think are some benefits of leisure activities? (Strategy: {strategy_text[2][0]})"
25
+ ]
26
+
27
+ def generate_system_message(current_question_index):
28
+ strategy, explanation = strategy_text[current_question_index]
29
+
30
+ # Define the feedback structure for each strategy
31
+ if current_question_index == 0: # PEEL strategy
32
+ feedback_structure = "Provide feedback in the PEEL format: Start with a Point, then provide Evidence, share an Experience, and finally Link back to the question."
33
+ elif current_question_index == 1: # 5W1H thinking frame
34
+ feedback_structure = "Provide feedback using the 5W1H format: Address Who, What, Where, When, Why, and How in your feedback."
35
+ else: # OREO thinking frame
36
+ feedback_structure = "Provide feedback in the OREO format: Start with an Opening Statement, then provide Reasons, Elaborate on them, and conclude with an Opinion."
37
+
38
+ system_message = f"""
39
+ As your English Oral Coach, my role is to guide you as you prepare to answer the oral questions. I'll be asking thought-provoking questions to help you develop your own answers.
40
+
41
+ Now, let's focus on {strategy}. {explanation}
42
+
43
+ {feedback_structure} # Add the feedback structure to the system message
44
+
45
+ Along the way, I'll prompt you to clarify your thoughts, explore key terms, challenge your reasoning, and reflect on the discussion.
46
+
47
+ Once we've thoroughly explored each part of the strategy, I'll assist you in assembling your thoughts into a comprehensive and eloquent response using the insights we've gathered.
48
+
49
+ Remember, our ultimate goal is to enhance your critical thinking skills and independence. Try to use sophisticated vocabulary and expressions, and refer to the picture where relevant to support your response.
50
+
51
+ Please ensure your response is in English.
52
+ """
53
+ return system_message