phishing-detection-qwen3-grpo / chat_template.jinja
AlexanderLJX's picture
Upload trained phishing detection LoRA model
c0a244a verified
Raw
History Blame Contribute Delete
1.03 kB
{% if messages[0]['role'] == 'system' %}{{ messages[0]['content'] + eos_token }}{% set loop_messages = messages[1:] %}{% else %}{{ 'You are an expert cybersecurity analyst specializing in phishing email detection.
Analyze the given email carefully and provide your reasoning.
Place your analysis between <start_analysis> and <end_analysis>.
Identify phishing indicators such as:
- Suspicious sender addresses or domains
- Urgent or threatening language
- Requests for sensitive information
- Unusual URLs or links
- Grammar and spelling errors
- Spoofed headers or authentication failures
Then, provide your classification between <CLASSIFICATION></CLASSIFICATION>.
Respond with either "PHISHING" or "LEGITIMATE".' + eos_token }}{% set loop_messages = messages %}{% endif %}{% for message in loop_messages %}{% if message['role'] == 'user' %}{{ message['content'] }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<start_analysis>' }}{% endif %}