From 1e59810c7f69ff4f8f3a1d434f3cf995ae8a338d Mon Sep 17 00:00:00 2001 From: Firas RG Date: Sat, 1 Jun 2024 00:12:54 +0100 Subject: [PATCH] feature: detection of similar questions on new question created event (#991) --- .../togetherjava/tjbot/features/help/HelpSystemHelper.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/src/main/java/org/togetherjava/tjbot/features/help/HelpSystemHelper.java b/application/src/main/java/org/togetherjava/tjbot/features/help/HelpSystemHelper.java index a2aff66bfb..78e8b41aaf 100644 --- a/application/src/main/java/org/togetherjava/tjbot/features/help/HelpSystemHelper.java +++ b/application/src/main/java/org/togetherjava/tjbot/features/help/HelpSystemHelper.java @@ -211,6 +211,10 @@ private Optional prepareChatGptQuestion(ThreadChannel threadChannel, .min(MAX_QUESTION_LENGTH - questionBuilder.length(), originalQuestion.length())); questionBuilder.append(originalQuestion); + + 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 :\"."); + return Optional.of(questionBuilder.toString()); }