diff --git a/src/libs/QuestionGenerator.ts b/src/libs/QuestionGenerator.ts index 00cf6f2..5836cb4 100644 --- a/src/libs/QuestionGenerator.ts +++ b/src/libs/QuestionGenerator.ts @@ -271,7 +271,7 @@ export default class QuestionGenerator { }); const difficultyDesc = frequency === "daily" - ? "Easy undergraduate level (freshman/sophomore) requiring detailed calculations and showing work. Maximum 2 parts (e.g., Part a and Part b) that test foundational concepts." + ? "Easy undergraduate level (freshman/sophomore) requiring detailed calculations and showing work. MUST be a single-part question only - NO multiple parts (no Part a, Part b, etc). Focus on ONE foundational concept." : "Advanced undergraduate level (junior/senior year) requiring deeper theoretical understanding and complex problem-solving. Maximum 2 parts that synthesize multiple upper-level concepts."; const prompt = ` @@ -285,6 +285,18 @@ ${contextualHistory} IMPORTANT: Review the question history above and generate NEW topics that haven't been covered recently. Avoid repeating the same concepts or problem types. +TOPIC SELECTION GUIDELINES: +- Use ONLY commonly known, fundamental topics that are widely taught in standard curricula +- For Organic Chemistry: Focus on basic functional groups, simple reactions, and core mechanisms (NOT obscure nomenclature rules) +- For all subjects: Stick to topics that would appear in standard textbooks and are universally recognized +- Avoid specialized, niche, or advanced nomenclature systems that are not commonly taught +- Examples of commonly known topics: + * Organic Chemistry: Basic functional groups (alcohols, aldehydes, ketones), simple substitution/elimination reactions, basic stereochemistry concepts + * Mathematics: Calculus, linear algebra, differential equations, basic number theory + * Physics: Classical mechanics, electromagnetism, thermodynamics, optics + * Chemistry: Stoichiometry, acid-base chemistry, basic thermochemistry, periodic trends + * Biology: Cell biology, genetics (Mendelian), basic biochemistry, physiology + ${subjectGuides} CRITICAL TYPST SYNTAX RULES - FOLLOW EXACTLY: @@ -376,7 +388,7 @@ REQUIREMENTS: 1. **Typst Source:** Follow the syntax rules above EXACTLY. Validate against the regex patterns and checklist. 2. **Reference Answer:** Provide the *exact* correct answer and the steps to derive it. 3. **Difficulty:** ${difficultyDesc} -4. **Question Structure:** MAXIMUM 2 parts per question (Part a and Part b). Do NOT create Part c, Part d, etc. +4. **Question Structure:** ${frequency === "daily" ? "SINGLE-PART question ONLY. Do NOT create multiple parts (no Part a, Part b, etc). Ask ONE focused question." : "MAXIMUM 2 parts per question (Part a and Part b). Do NOT create Part c, Part d, etc."} 5. **Quantity:** One '${frequency}' question per subject (${subjectsToGenerate.length} total). `;