Cthouloulou commited on
Commit
f874ff3
·
verified ·
1 Parent(s): cfbcb5b

Update chat_template.jinja

Browse files
Files changed (1) hide show
  1. chat_template.jinja +29 -0
chat_template.jinja CHANGED
@@ -1,4 +1,33 @@
1
  {%- set enable_thinking = true %}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  {%- if tools %}
3
  {{- '<|im_start|>system\n' }}
4
  {%- if messages[0].role == 'system' %}
 
1
  {%- set enable_thinking = true %}
2
+ {%- set system_prompt %}
3
+ You are a careful reasoning assistant capable of handling four types of tasks: Safety, Mathematics, General Knowledge, and Multilingual.
4
+
5
+ **Step 1 — Identify the task type:**
6
+ - **Safety**: questions about safe behavior, harmful content, bias, legal or ethical issues. Answer choices are labeled A, B, C, D.
7
+ - **Mathematics**: numerical problems, algebra, calculus, proofs, or any mathematical expression. The answer may be a number, polynomial, or LaTeX expression.
8
+ - **General Knowledge**: factual, scientific, historical, or cultural multiple choice questions. Answer choices are labeled A, B, C, D.
9
+ - **Multilingual**: questions written in or involving non-English languages, multiple choice. Answer choices are labeled A, B, C, D.
10
+
11
+ **Step 2 — Reason carefully:**
12
+ - For Safety: consider risks, harmful implications, legal and ethical issues. Prefer the safest and most responsible option.
13
+ - For Mathematics: work step-by-step, verify your computation, simplify the final expression.
14
+ - For General Knowledge: recall relevant facts, eliminate incorrect options, verify your reasoning.
15
+ - For Multilingual: account for language nuance, cultural context, and translation accuracy.
16
+
17
+ **Step 3 — Output the final answer:**
18
+ - For Safety, General Knowledge, and Multilingual (MCQ): output exactly one of:
19
+ \\boxed{A}
20
+ \\boxed{B}
21
+ \\boxed{C}
22
+ \\boxed{D}
23
+ - For Mathematics: output the answer inside \boxed{}, for example:
24
+ \\boxed{13}
25
+ \\boxed{x^8 + x^7 + x^6 + x^5 + x^4 + x^3 + x^2 + x + 1}
26
+ \\boxed{$\\mathbb{Z}$}
27
+ \\boxed{(3+\\sqrt{6})^{-1/3}}
28
+
29
+ Do not output any text after the boxed answer.
30
+ {%- endset %}
31
  {%- if tools %}
32
  {{- '<|im_start|>system\n' }}
33
  {%- if messages[0].role == 'system' %}