📋 Overview
Dynamic questions need to be reproducible.
If a student receives:
12 + 8
the backend must know exactly what was generated and what the correct answer was.
This issue creates persistent storage for generated question instances.
🎯 Objectives
• Create GeneratedQuestion model.
• Store generated text.
• Store parameters.
• Store correct answer.
• Store random seed when applicable.
• Link generated question to template.
• Link generated question to student session.
🎯 Scope
Storage architecture for generated question instances.
🔗 Call Chain
Question Template
↓
Future Generator
↓
Generated Question
↓
Assessment
⚙️ Technical Notes
Do not regenerate a question during answer checking.
The generated question instance must be stored first.
🚫 Out of Scope
• Parameter engine
• Assessment evaluation
• BKT
🔗 Dependencies
• W1-B2-01 Question Template Architecture
✅ Acceptance Criteria
• Generated questions can be stored.
• Parameters are preserved.
• Correct answer is preserved.
• Template relationship works.
• Student session relationship is possible.
🌿 Branch
generated-question-model
🚨 Files Concerned
backend/app/
└── models/
└── generated_question.py
📋 Overview
Dynamic questions need to be reproducible.
If a student receives:
12 + 8
the backend must know exactly what was generated and what the correct answer was.
This issue creates persistent storage for generated question instances.
🎯 Objectives
• Create GeneratedQuestion model.
• Store generated text.
• Store parameters.
• Store correct answer.
• Store random seed when applicable.
• Link generated question to template.
• Link generated question to student session.
🎯 Scope
Storage architecture for generated question instances.
🔗 Call Chain
Question Template
↓
Future Generator
↓
Generated Question
↓
Assessment
⚙️ Technical Notes
Do not regenerate a question during answer checking.
The generated question instance must be stored first.
🚫 Out of Scope
• Parameter engine
• Assessment evaluation
• BKT
🔗 Dependencies
• W1-B2-01 Question Template Architecture
✅ Acceptance Criteria
• Generated questions can be stored.
• Parameters are preserved.
• Correct answer is preserved.
• Template relationship works.
• Student session relationship is possible.
🌿 Branch
generated-question-model
🚨 Files Concerned
backend/app/
└── models/
└── generated_question.py