Skip to content

Commit c640c3c

Browse files
committed
fix: enhance instructions in QuestionGenerationRequestBuilder for question and choice generation
Updated the instructions to clarify that both questions and choices should not be generated from the specified ignored points, improving the overall guidance for the question generation process.
1 parent b91f0b7 commit c640c3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/src/main/java/com/odde/doughnut/services/QuestionGenerationRequestBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ private String buildIgnoredPointsInstruction(Note note) {
8585

8686
StringBuilder instruction = new StringBuilder();
8787
instruction.append(
88-
"IMPORTANT: The following points from the note should NOT be used to generate questions. Do NOT create questions based on these points:\n\n");
88+
"IMPORTANT: The following points from the note should NOT be used to generate questions and choices. Do NOT create questions and choices based on these points:\n\n");
8989
for (String point : ignoredPoints) {
9090
if (point != null && !point.trim().isEmpty()) {
9191
instruction.append("- ").append(point.trim()).append("\n");
9292
}
9393
}
9494
instruction.append(
95-
"\nWhen generating questions, completely avoid referencing or testing knowledge about these excluded points.");
95+
"\nWhen generating questions and choices, completely avoid referencing or testing knowledge about these excluded points.");
9696

9797
return instruction.toString();
9898
} catch (JsonProcessingException e) {

0 commit comments

Comments
 (0)