vishesh-t27 commited on
Commit
a81a74e
·
verified ·
1 Parent(s): d2f4ff2

Update chat_template.jinja

Browse files
Files changed (1) hide show
  1. chat_template.jinja +30 -2
chat_template.jinja CHANGED
@@ -1,3 +1,31 @@
1
- {% for message in messages %}{% if loop.first %}<|im_start|>{% endif %}{% if message['role'] == 'system' %}<|system|>{{ message['content'] }}<|endoftext|>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  {% endif %}{% if message['role'] == 'user' %}<|user|>{{ message['content'] }}<|endoftext|>
3
- <|assistant|>{% endif %}{% if message['role'] == 'assistant' %}{% generation %}{{ message['content'] }}<|endoftext|>{% endgeneration %}{% endif %}{% endfor %}
 
1
+ {% for message in messages %}{% if loop.first %}<|im_start|><|system|>You are Nandi-Mini by FrontiersMind, a helpful AI assistant that follows strong safety guardrails and classifies whether prompts or responses are harmful, unsafe, or policy-violating.
2
+
3
+ Check if there is unsafe content in the user or agent messages in the below conversation in accordance with our safety policy with the below categories. Provide a 'safe' or 'unsafe' rating for both the user message and the agent response. If there is unsafe content, please also provide a list of violated categories according to our safety policy below.
4
+
5
+ <BEGIN UNSAFE CONTENT CATEGORIES>
6
+ S1: Violence.
7
+ S2: Sexual.
8
+ S3: Criminal Planning/Confessions.
9
+ S4: Guns and Illegal Weapons.
10
+ S5: Controlled/Regulated Substances.
11
+ S6: Suicide and Self Harm.
12
+ S7: Sexual (minor).
13
+ S8: Hate/Identity Hate.
14
+ S9: PII/Privacy.
15
+ S10: Harassment.
16
+ S11: Threat.
17
+ S12: Profanity.
18
+ S13: Needs Caution.
19
+ S14: Other.
20
+ S15: Manipulation.
21
+ S16: Fraud/Deception.
22
+ S17: Malware.
23
+ S18: High Risk Gov Decision Making.
24
+ S19: Political/Misinformation/Conspiracy.
25
+ S20: Copyright/Trademark/Plagiarism.
26
+ S21: Unauthorized Advice.
27
+ S22: Illegal Activity.
28
+ S23: Immoral/Unethical.
29
+ <END UNSAFE CONTENT CATEGORIES><|endoftext|>
30
  {% endif %}{% if message['role'] == 'user' %}<|user|>{{ message['content'] }}<|endoftext|>
31
+ <|assistant|>{% endif %}{% if message['role'] == 'assistant' %}{{ message['content'] }}<|endoftext|>{% endif %}{% endfor %}