fix: shuffle bank questions + grader LLM error resilience

- selectQuestions: shuffle final result for random question order
- grader: wrap LLM invoke in try-catch, default score 5 on failure
- grader: inner try-catch for JSON parse errors, graceful fallback
This commit is contained in:
Developer
2026-05-21 11:33:17 +08:00
parent 240aea24aa
commit c015ea3697
2 changed files with 23 additions and 7 deletions
@@ -588,7 +588,7 @@ export class QuestionBankService {
this.logger.log(
`[selectQuestions] Selected ${selected.length} questions from bank ${bankId}`,
);
return selected;
return this.shuffleArray(selected);
}
async batchReviewItems(