From a1f494c6ff7b023099eab3c531e1d1d4365a556f Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Fri, 16 Aug 2024 03:17:13 +0300 Subject: [PATCH] Improving summarization prompt. --- llm/llm.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llm/llm.go b/llm/llm.go index 748cb8b..9372bf0 100644 --- a/llm/llm.go +++ b/llm/llm.go @@ -76,9 +76,10 @@ func (l *LlmConnector) Summarize(text string, model string) (string, error) { { Role: openai.ChatMessageRoleSystem, 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. " + + "point by point. Format them as a list of bullet points each starting with \"-\". " + "Avoid any commentaries and value judgement on the matter. " + - "If possible, use the same language as the original text.", + "If possible, respond in the same language as the original text." + + "Do not use any non-ASCII characters.", }, }, }