Problem Statement (Primary Prompt):
Generate an SAT-level English question.
Steps:
Assumptions:
Calculations:
Conclusions:
For this prototype, let's focus on Reading Comprehension.
We will generate a reading comprehension question based on a short passage.
We will create multiple-choice options for the question.
Identify the correct answer from the generated choices.
Provide a rationale for the correct answer.
Let's implement this in Python:
import pandas as pd
import random
# Define the skill to be tested
skill = "Reading Comprehension"
# Sample passage
passage = """
In recent years, researchers have discovered a significant link between physical exercise and improved mental health.
Regular physical activity has been shown to reduce symptoms of anxiety and depression, enhance mood, and improve overall cognitive function.
"""
# Create the question prompt
question_prompt = "Based on the passage, which of the following statements best summarizes the main point?"
# Generate answer choices
answer_choices = [
"A) Physical exercise has no impact on mental health.",
"B) Regular physical activity can improve mental health.",
"C) Mental health is solely dependent on diet.",
"D) Cognitive function is not influenced by physical activity."
]
# Designate the correct answer
correct_answer = "B) Regular physical activity can improve mental health."
# Add explanation or rationale
explanation = "The passage highlights the benefits of physical exercise on mental health, including reducing anxiety and depression and improving cognitive function."
# Create a DataFrame to represent the CoT Method template
data = {
"Skill": [skill],
"Passage": [passage],
"Question Prompt": [question_prompt],
"Answer Choices": [", ".join(answer_choices)],
"Correct Answer": [correct_answer],
"Explanation": [explanation]
}
df = pd.DataFrame(data)
# Save to an Excel file
output_path = "SAT_Level_English_Question.xlsx"
df.to_excel(output_path, index=False)
# Display the DataFrame
print(df)
The output will be an Excel file named SAT_Level_English_Question.xlsx
containing the generated SAT-level English question along with the passage, answer choices, the correct answer, and the explanation.
You can download the generated Excel file here.
This prototype demonstrates the process of generating an SAT-level English question using the CoT Method. By following the structured steps, we ensure that the question aligns with the desired standards and effectively tests a specific skill. This approach can be automated further and expanded to include various skills and question types.
포괄적인 SEO 최적화 가이드 (0) | 2024.07.02 |
---|---|
개인화 브랜딩 프롬프트 (0) | 2024.07.02 |
[한국의 명시] 한 장의 이미지로 (1) (3) | 2023.11.27 |
창의적인 생성형 ai 사용법 - 발명 아이디어 얻기 (24) | 2023.10.19 |
[컬러링북] 달리로 만들어보는 명작 (2) | 2023.10.15 |
댓글 영역