Skip to content

Commit

Permalink
Optimize summarization prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
mithandir committed Jun 26, 2024
1 parent d30a9a1 commit ee176b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void summarize() {
LOG.info("Processing summarization queue of length: {}", queue.size());
news.setSummary(chatClient.prompt()
.system("You are a news reporter that summarizes news articles")
.user("Summarize the following text, in a maximum of 3 paragraphs: " + news.getContent())
.user("Write an enganging summary of the following text, for publication in social media, the lenght of the summary should not be more than 3 paragraphs: \n\n" + news.getContent())
.call()
.content());
LOG.debug("Summary: {}", news.getSummary());
Expand Down

0 comments on commit ee176b3

Please sign in to comment.