]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Improve gpt prompt - Only ask for red flag when it's spam
authoralex081512 <alex@rbbaader.de>
Thu, 13 Mar 2025 18:28:18 +0000 (19:28 +0100)
committerGitHub <noreply@github.com>
Thu, 13 Mar 2025 18:28:18 +0000 (19:28 +0100)
src/plugins/lua/gpt.lua

index 98a3e38ee574bd096678cf0015d908f11258ddda..9a20be551200740c12b19e3ba62917042fa89b70 100644 (file)
@@ -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