Update chat_template.jinja
Browse files- chat_template.jinja +12 -12
chat_template.jinja
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
-
<|im_start|>system
|
| 2 |
-
Judge whether the Document meets the requirements based on the Query and the Instruct provided. Note that the answer can only be "yes" or "no".<|im_end|>
|
| 3 |
-
<|im_start|>user
|
| 4 |
-
<Instruct>: {{
|
| 5 |
-
<Query>: {{
|
| 6 |
-
<Document>: {{
|
| 7 |
-
<|im_start|>assistant
|
| 8 |
-
<think>
|
| 9 |
-
|
| 10 |
-
</think>
|
| 11 |
-
|
| 12 |
-
|
|
|
|
| 1 |
+
<|im_start|>system
|
| 2 |
+
Judge whether the Document meets the requirements based on the Query and the Instruct provided. Note that the answer can only be "yes" or "no".<|im_end|>
|
| 3 |
+
<|im_start|>user
|
| 4 |
+
<Instruct>: {{ messages | selectattr("role", "eq", "system") | map(attribute="content") | first | default("Given a web search query, retrieve relevant passages that answer the query") }}
|
| 5 |
+
<Query>: {{ messages | selectattr("role", "eq", "query") | map(attribute="content") | first }}
|
| 6 |
+
<Document>: {{ messages | selectattr("role", "eq", "document") | map(attribute="content") | first }}<|im_end|>
|
| 7 |
+
<|im_start|>assistant
|
| 8 |
+
<think>
|
| 9 |
+
|
| 10 |
+
</think>
|
| 11 |
+
|
| 12 |
+
|