tomaarsen HF Staff commited on
Commit
bcecab8
·
verified ·
1 Parent(s): b4681ae

Update chat_template.jinja

Browse files
Files changed (1) hide show
  1. chat_template.jinja +3 -3
chat_template.jinja CHANGED
@@ -1,9 +1,9 @@
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[0]["content"] | default("Given a web search query, retrieve relevant passages that answer the query", true) }}
5
- <Query>: {{ messages[1]["content"] }}
6
- <Document>: {{ messages[2]["content"] }}<|im_end|>
7
  <|im_start|>assistant
8
  <think>
9
 
 
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") | first).content | default("Given a web search query, retrieve relevant passages that answer the query", true) }}
5
+ <Query>: {{ (messages | selectattr("role", "eq", "query") | first).content }}
6
+ <Document>: {{ (messages | selectattr("role", "eq", "document") | first).content }}<|im_end|>
7
  <|im_start|>assistant
8
  <think>
9