Tweaking summarizer prompt a bit.

This commit is contained in:
Alexey Skobkin 2024-03-12 22:12:58 +03:00
parent a2a37d0256
commit bfacbb9f98
No known key found for this signature in database
GPG key ID: 5D5CEF6F221278E7

View file

@ -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.",
},
},