Calls LLM to generate questions using the detailed, original prompts
to ensure difficulty balance and Bloom's taxonomy coverage.
"""
ifis_arabic:
prompt=f"""
أنت خبير في تطوير المناهج التعليمية، ومهمتك هي إنشاء **أسئلة اختيار من متعدد جديدة بالكامل**.
هذه هي الأسئلة الموجودة بالفعل لمفهوم "{concept}":
--- الأسئلة الموجودة ---
{existing_questions_text}
--- نهاية الأسئلة الموجودة ---
استنادًا فقط إلى المعلومات التالية:
استنادًا فقط إلى المعلومات النصية التالية:
--- السياق ---
{full_context}
{context_text}
--- نهاية السياق ---
قم بإنشاء {num_questions} سؤالًا جديدًا تمامًا من نوع الاختيار من متعدد (MCQ)، **مختلفة كليًا عن الأسئلة الموجودة أعلاه**.
قم بإنشاء {count} سؤالًا جديدًا تمامًا من نوع الاختيار من متعدد (MCQ).
⚠️ **مهم جدًا**:
يجب أن تشمل الأسئلة مستويات متنوعة من الصعوبة وفق التوزيع التالي:
...
...
@@ -127,19 +173,14 @@ class MCQService:
"""
else:
prompt=f"""
You are an expert curriculum developer. Your task is to generate **entirely new multiple-choice questions (MCQs)** that do NOT overlap with any existing ones.
Here are the questions that ALREADY EXIST for the concept "{concept}":
--- EXISTING QUESTIONS ---
{existing_questions_text}
--- END EXISTING QUESTIONS ---
You are an expert curriculum developer. Your task is to generate **entirely new multiple-choice questions (MCQs)**.
Based ONLY on the following context:
--- CONTEXT ---
{full_context}
{context_text}
--- END CONTEXT ---
Generate {num_questions} NEW and COMPLETELY DIFFERENT multiple-choice questions.
Generate {count} NEW multiple-choice questions.
⚠️ **Important Requirements**:
- Distribute difficulty levels approximately as follows: