Skip to content

Commit 90d26c5

Browse files
committed
feature: detection of similar questions on new question created event (#991)
1 parent 9122c16 commit 90d26c5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

application/src/main/java/org/togetherjava/tjbot/features/help/HelpSystemHelper.java

+3
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ private Optional<String> prepareChatGptQuestion(ThreadChannel threadChannel,
211211
.min(MAX_QUESTION_LENGTH - questionBuilder.length(), originalQuestion.length()));
212212

213213
questionBuilder.append(originalQuestion);
214+
215+
questionBuilder.append(". If possible, get, maximum, 5 top links from reliable websites as references in markdown syntax. Put this message on top of the links list \"Here are some links that may help :\".");
216+
214217
return Optional.of(questionBuilder.toString());
215218
}
216219

0 commit comments

Comments
 (0)