sheshansh-ctx's picture
Integrate with Sentence Transformers v5.4 (#1)
6ffef5d
Raw History Blame Contribute Delete
540 Bytes
{%- 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 -%}
Check whether a given document contains information helpful to answer the query.
<Document> {{ document_text }}
<Query> {{ query_text }}{% if instruction_text %} {{ instruction_text }}{% endif %} ??