初始化项目,由ModelHub XC社区提供模型
Model: ContextualAI/ctxl-rerank-v2-instruct-multilingual-6b Source: Original Platform
This commit is contained in:
7
chat_template.jinja
Normal file
7
chat_template.jinja
Normal file
@@ -0,0 +1,7 @@
|
||||
{%- set instruction_text = messages | selectattr("role", "eq", "system") | map(attribute="content") | first | default("") -%}
|
||||
{%- set query_text = messages | selectattr("role", "eq", "query") | map(attribute="content") | first -%}
|
||||
{%- set document_text = messages | selectattr("role", "eq", "document") | map(attribute="content") | first -%}
|
||||
{{- bos_token -}}
|
||||
Check whether a given document contains information helpful to answer the query.
|
||||
<Document> {{ document_text }}
|
||||
<Query> {{ query_text }}{% if instruction_text %} {{ instruction_text }}{% endif %} ??
|
||||
Reference in New Issue
Block a user