FIX: Change hot gist prompt to avoid title repeating #859 (#859)

Co-authored-by: Roman Rizzi <rizziromanalejandro@gmail.com>
This commit is contained in:
Rafael dos Santos Silva 2024-10-25 12:12:33 -03:00 committed by GitHub
parent ec97996905
commit 33da27e231
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 6 deletions

View File

@ -111,14 +111,15 @@ module DiscourseAi
- Use the original language of the text.
- Begin directly with the main topic or issue, avoiding introductory phrases.
- Limit the summary to a maximum of 20 words.
- Return the 20-word summary inside <ai></ai> tags.
- Do *NOT* repeat the discussion title in the summary.
Return the summary inside <ai></ai> tags.\n
TEXT
context = +<<~TEXT
### Context:
#{content_title.present? ? "The discussion title is: " + content_title + ".\n" : ""}
#{content_title.present? ? "The discussion title is: " + content_title + ". (DO NOT REPEAT THIS IN THE SUMMARY)\n" : ""}
The conversation began with the following statement: