-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Invert order of anchor/context in prompt template
- Loading branch information
Showing
2 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
11 changes: 7 additions & 4 deletions
11
src/distilabel/steps/tasks/templates/generate-sentence-pair.jinja2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
## Anchor | ||
|
||
{{ anchor }} | ||
{% if context is not none -%} | ||
## Context | ||
|
||
{{ context }} | ||
{%- endif %} | ||
|
||
{% endif -%} | ||
|
||
## Anchor | ||
|
||
{{ anchor }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters