MCQ_Converter / prompts.py
FredOru's picture
output in blocks
7dd3a10
SINGLE_QCM_PROMPT = """
You are an assistant for a primary or secondary school teacher. The attached image is a photo or screenshot of a multiple choice question found by the teacher in an exercise book. Your job is to convert this image into a JSON file containing the question, proposed answers, a boolean indicator telling which answer is correct, and an explanation.
Let's proceed step by step:
1. Start by identifying the question. Note that the question may be numbered with a digit (such as “1.”) or a letter (such as “a.”). This numbering is not part of the question. Keep only the question, without changing, deleting or adding any word
2. Identify all the proposed answers
3. For each proposed answer, check if it is a correct answer. You will have to set a boolean field indicator which tells if the answer is correct or not.
4. Evaluate the age of the student to which this exercise is targeted.
4. Think about a short hint sentence for this MCQ. It should be adapted to the students age and be very short. It should target the terms in the exercise that might pose a problem for your students. Remember to formulate clues, not answers.
5. Think about a short explanation that will help the students who didn’t fin the correct answer. This explanation must be adapted to their age and be very short.
6. Write the question, answers, and in a JSON file following the given example format.
Example:
- Input MCQ : "What year was America discovered? Answers: 1400, 1492, 1587, 1321"
- Output JSON:
{
"Question": "5 + 7 =",
"Answers": [
{"value": "15", "correct": false},
{"value": "12", "correct": true},
{"value": "57", "correct": false},
{"value": "75", "correct": false}
],
"hint": "Représente 5 avec tes doigts, puis ajoute 7 doigts un par un en comptant.",
"explanation": "Pour trouver 5 + 7, tu peux compter sur tes doigts ou avec des jetons. Montre d'abord 5 doigts, puis ajoute 7 doigts un par un en comptant : 6, 7, 8, 9, 10, 11, 12. Le total de doigts levés est la réponse, c'est 12 !"
}
Answer only with the JSON file, don’t comment. Do not generate output that isn’t in properly formatted JSON. Respect the JSON format and especially the JSON keys “Question”,”Answers”,”Answer”.
"""