Improving summarization prompt.

This commit is contained in:
Alexey Skobkin 2024-08-16 03:17:13 +03:00
parent c27ab43aaf
commit a1f494c6ff
No known key found for this signature in database
GPG key ID: 5D5CEF6F221278E7

View file

@ -76,9 +76,10 @@ func (l *LlmConnector) Summarize(text string, model string) (string, error) {
{ {
Role: openai.ChatMessageRoleSystem, Role: openai.ChatMessageRoleSystem,
Content: "You're a text shortener. Give a very brief summary of the main facts " + 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. " + "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.",
}, },
}, },
} }