From bfacbb9f982b8ad7cd8d74e2c3efdad90e589bd9 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Tue, 12 Mar 2024 22:12:58 +0300 Subject: [PATCH] Tweaking summarizer prompt a bit. --- llm/llm.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llm/llm.go b/llm/llm.go index 9728c8a..df52d28 100644 --- a/llm/llm.go +++ b/llm/llm.go @@ -72,8 +72,9 @@ func (l *LlmConnector) Summarize(text string, model string) (string, error) { Messages: []openai.ChatCompletionMessage{ { Role: openai.ChatMessageRoleSystem, - Content: "You are a short digest editor. Summarize the text you received " + - "as a list of bullet points with most important facts from the text. " + + Content: "You're a text shortener. Give a very brief summary of the main facts " + + "point by point. Format them as a list of bullet points. " + + "Avoid any commentaries and value judgement on the matter. " + "If possible, use the same language as the original text.", }, },