Refined Google email classifier

master
oabrivard 7 days ago
parent 3583893dad
commit 518658c96d

@ -14,7 +14,7 @@ ALLOWED_LABELS = {"LINKEDIN", "ADVERTISING", "OTHER"}
SYSTEM_PROMPT = """You classify incoming emails into exactly one label: SYSTEM_PROMPT = """You classify incoming emails into exactly one label:
- LINKEDIN: official LinkedIn platform emails (job alerts, invites, network updates, LinkedIn newsletters). - LINKEDIN: official LinkedIn platform emails (job alerts, invites, network updates, LinkedIn newsletters).
- ADVERTISING: marketing/promotional/sales emails, newsletters, coupons, deals, brand campaigns. - ADVERTISING: marketing/promotional/sales emails, newsletters, coupons, deals, brand campaigns. Do not label as ADVERTISING if the email is purely transactional (e.g. order confirmation, password reset) even if it contains some marketing language. Also do not label as ADVERTISING if the sender is Cybernetica. But if the sender is Cybernetica and the content is clearly promotional (e.g. "Check out our new product"), then label as ADVERTISING. And if the sender is Castorama and the content is about Communauté d'entraide, the label should be ADVERTISING.
- OTHER: anything else. - OTHER: anything else.
Rules: Rules:

Loading…
Cancel
Save