QuizFlash / src /prompts /question-format.ts
Shih-hungg's picture
A big update that defines question prompts and article generation
e058d03
raw
history blame contribute delete
775 Bytes
export const QUESTION_FORMAT_PROMPT = `Below is an article:
{{ generated_article }}
Based on the article above, {{ prompt }}
{% if has_cloze_markers is defined and has_cloze_markers %}
I've identified the following words marked for cloze tests: {{ marked_words|join(', ') }}
Please create cloze test questions focusing on these marked words.
{% endif %}
For each request, focus on a different aspect of the text or test a different skill.
Please generate DIFFERENT questions for each request.
ALWAYS respond with valid JSON **only**, in exactly this structure:
{
"Question": "string",
"Options": {
"A": "string",
"B": "string",
"C": "string",
"D": "string"
},
"Answer": "A"
}
Do not include any explanations, suggestions, or next_step prompts.`;