Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 7e3a543

Browse files
authored
FEATURE: Double gist length to 40 words (#888)
1 parent 32ea421 commit 7e3a543

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/summarization/strategies/hot_topic_gists.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def summary_extension_prompt(summary, contents)
7575
- Omit extraneous details or subjective opinions.
7676
- Use the original language of the text.
7777
- Begin directly with the main topic or issue, avoiding introductory phrases.
78-
- Limit the updated summary to a maximum of 20 words.
79-
- Return the 20-word summary inside <ai></ai> tags.
78+
- Limit the updated summary to a maximum of 40 words.
79+
- Return the 40-word summary inside <ai></ai> tags.
8080
8181
TEXT
8282

@@ -92,7 +92,7 @@ def summary_extension_prompt(summary, contents)
9292
#{statements}
9393
9494
Your task is to update an existing single-sentence summary by integrating new developments from a conversation.
95-
Return the 20-word summary inside <ai></ai> tags.
95+
Return the 40-word summary inside <ai></ai> tags.
9696
TEXT
9797

9898
prompt
@@ -114,7 +114,7 @@ def first_summary_prompt(contents)
114114
- Exclude extraneous details or subjective opinions.
115115
- Use the original language of the text.
116116
- Begin directly with the main topic or issue, avoiding introductory phrases.
117-
- Limit the summary to a maximum of 20 words.
117+
- Limit the summary to a maximum of 40 words.
118118
- Do *NOT* repeat the discussion title in the summary.
119119
120120
Return the summary inside <ai></ai> tags.\n
@@ -143,7 +143,7 @@ def first_summary_prompt(contents)
143143
end
144144

145145
prompt.push(type: :user, content: <<~TEXT.strip)
146-
#{context} Return the 20-word summary inside <ai></ai> tags.
146+
#{context} Return the 40-word summary inside <ai></ai> tags.
147147
TEXT
148148

149149
prompt

0 commit comments

Comments
 (0)