Skip to content

Commit

Permalink
feature: detection of similar questions on new question created event (
Browse files Browse the repository at this point in the history
  • Loading branch information
firasrg committed Jun 1, 2024
1 parent 9122c16 commit 1e59810
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ private Optional<String> 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());
}

Expand Down

0 comments on commit 1e59810

Please sign in to comment.