Update HongWenData.py
Browse files- HongWenData.py +13 -21
HongWenData.py
CHANGED
@@ -1,14 +1,10 @@
|
|
1 |
strategy_text = {
|
2 |
-
|
3 |
-
|
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:"
|
@@ -19,29 +15,25 @@ description = (
|
|
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[
|
23 |
-
f"2. Do you spend a lot of time playing with toys and games? Why / Why not? (Strategy: {strategy_text[
|
24 |
-
f"3. What do you think are some benefits of leisure activities? (Strategy: {strategy_text[
|
25 |
]
|
26 |
|
27 |
-
def generate_system_message(
|
28 |
-
strategy, explanation = strategy_text[
|
29 |
|
30 |
-
|
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.
|
|
|
1 |
strategy_text = {
|
2 |
+
"TREES": ("TREES strategy - Thought, Reasons, Elaboration, Experiences, Summary or Suggestions",
|
3 |
+
"Structure your feedback using the TREES strategy. Begin with a Thought, provide Reasons, Elaborate using the 5Ws1H method, share Experiences, and finally offer a Summary or Suggestions.")
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
}
|
5 |
|
6 |
+
elaboration_method = "For elaboration, address the 5Ws1H: Who, What, Where, When, Why, and How."
|
7 |
+
|
8 |
description = (
|
9 |
"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!\""
|
10 |
"\n\nThe items displayed in the advertisement are:"
|
|
|
15 |
)
|
16 |
|
17 |
questions = [
|
18 |
+
f"1. Look at the picture. Would you be interested in playing with these toys and games? Why / Why not? (Strategy: {strategy_text['TREES'][0]})",
|
19 |
+
f"2. Do you spend a lot of time playing with toys and games? Why / Why not? (Strategy: {strategy_text['TREES'][0]})",
|
20 |
+
f"3. What do you think are some benefits of leisure activities? (Strategy: {strategy_text['TREES'][0]})"
|
21 |
]
|
22 |
|
23 |
+
def generate_system_message():
|
24 |
+
strategy, explanation = strategy_text["TREES"]
|
25 |
|
26 |
+
feedback_structure = "Provide feedback in the TREES format: Start with a Thought, then provide Reasons, use the 5Ws1H method to Elaborate, share Experiences, and finally offer a Summary or Suggestions."
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
system_message = f"""
|
29 |
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.
|
30 |
|
31 |
+
Now, let's focus on the {strategy}. {explanation}
|
32 |
|
33 |
{feedback_structure} # Add the feedback structure to the system message
|
34 |
|
35 |
+
{elaboration_method}
|
36 |
+
|
37 |
Along the way, I'll prompt you to clarify your thoughts, explore key terms, challenge your reasoning, and reflect on the discussion.
|
38 |
|
39 |
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.
|