Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lib/summarization/strategies/hot_topic_gists.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def summary_extension_prompt(summary, contents)
- Omit extraneous details or subjective opinions.
- Use the original language of the text.
- Begin directly with the main topic or issue, avoiding introductory phrases.
- Limit the updated summary to a maximum of 20 words.
- Return the 20-word summary inside <ai></ai> tags.
- Limit the updated summary to a maximum of 40 words.
- Return the 40-word summary inside <ai></ai> tags.

TEXT

Expand All @@ -92,7 +92,7 @@ def summary_extension_prompt(summary, contents)
#{statements}

Your task is to update an existing single-sentence summary by integrating new developments from a conversation.
Return the 20-word summary inside <ai></ai> tags.
Return the 40-word summary inside <ai></ai> tags.
TEXT

prompt
Expand All @@ -114,7 +114,7 @@ def first_summary_prompt(contents)
- Exclude extraneous details or subjective opinions.
- 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.
- Limit the summary to a maximum of 40 words.
- Do *NOT* repeat the discussion title in the summary.

Return the summary inside <ai></ai> tags.\n
Expand Down Expand Up @@ -143,7 +143,7 @@ def first_summary_prompt(contents)
end

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

prompt
Expand Down