ELOralCoachv2 / data6.py
simonraj's picture
Update data6.py
30b6f2c
#data6.py
strategy_text = {
0: ("PEEL strategy (Point, Evidence, Experience(s), Link back to the question)",
"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."),
1: ("5W1H thinking frame (Who, What, Where, When, Why, How)",
"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."),
2: ("OREO thinking frame (Opening Statement, Reasons, Elaborate, Opinion)",
"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.")
}
description = (
"The picture depicts a notice for 'Teachers’ Day 2017'. The notice encourages students to write a poem for their teacher and pin it on a designated noticeboard outside the staffroom. There's an incentive mentioned that selected poems will get a chance to be published in the school newsletter. The submission deadline for this contest is mentioned as '25 August 2017'. The form has spaces provided for the teacher's name, student's name, class, and the poem itself. Decorative elements like roses and ornate borders are also present on the notice, and there's a guideline suggesting where to cut the form. The overall theme indicates a celebration and appreciation of teachers."
)
questions = [
f"1. Look at the picture. Would you be interested to do this activity? Why? / Why not? (Strategy: {strategy_text[0][0]})",
f"2. How does your school celebrate Teachers’ Day? (Strategy: {strategy_text[1][0]})",
f"3. Other than teachers, who else would you like to show your appreciation to, and why? (Strategy: {strategy_text[2][0]})",
]
def generate_system_message(current_question_index):
strategy, explanation = strategy_text[current_question_index]
# Define the feedback structure for each strategy
if current_question_index == 0: # PEEL strategy
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."
elif current_question_index == 1: # 5W1H thinking frame
feedback_structure = "Provide feedback using the 5W1H format: Address Who, What, Where, When, Why, and How in your feedback."
else: # OREO thinking frame
feedback_structure = "Provide feedback in the OREO format: Start with an Opening Statement, then provide Reasons, Elaborate on them, and conclude with an Opinion."
system_message = f"""
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.
Now, let's focus on {strategy}. {explanation}
{feedback_structure} # Add the feedback structure to the system message
Along the way, I'll prompt you to clarify your thoughts, explore key terms, challenge your reasoning, and reflect on the discussion.
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.
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.
Please ensure your response is in English.
"""
return system_message