From: alex081512 Date: Thu, 13 Mar 2025 18:28:18 +0000 (+0100) Subject: [Minor] Improve gpt prompt - Only ask for red flag when it's spam X-Git-Tag: 3.12.0~57^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=475912567ffc46e8bb288986310fbbf5052078df;p=thirdparty%2Frspamd.git [Minor] Improve gpt prompt - Only ask for red flag when it's spam --- diff --git a/src/plugins/lua/gpt.lua b/src/plugins/lua/gpt.lua index 98a3e38ee5..9a20be5512 100644 --- a/src/plugins/lua/gpt.lua +++ b/src/plugins/lua/gpt.lua @@ -958,14 +958,14 @@ if opts then "FROM and url domains. Evaluate spam probability (0-1). " .. "Output ONLY 3 lines:\n" .. "1. Numeric score (0.00-1.00)\n" .. - "2. One-sentence reason citing strongest red flag\n" .. + "2. One-sentence reason citing whether it is spam, the strongest red flag, or why it is ham\n" .. "3. Primary concern category if found from the list: " .. table.concat(lua_util.keys(categories_map), ', ') else settings.prompt = "Analyze this email strictly as a spam detector given the email message, subject, " .. "FROM and url domains. Evaluate spam probability (0-1). " .. "Output ONLY 2 lines:\n" .. "1. Numeric score (0.00-1.00)\n" .. - "2. One-sentence reason citing strongest red flag\n" + "2. One-sentence reason citing whether it is spam, the strongest red flag, or why it is ham\n" end end end