forked from LAION-AI/Open-Assistant
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add jinja templates for all current tasks
- Loading branch information
1 parent
d20828e
commit df62ee0
Showing
9 changed files
with
78 additions
and
72 deletions.
There are no files selected for viewing
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,4 +1,4 @@ | ||
exclude: "build|stubs" | ||
exclude: "build|stubs|bot/templates/.*msg" | ||
|
||
default_language_version: | ||
python: python3 | ||
|
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
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,14 +1,13 @@ | ||
``` | ||
________ __ | ||
\_____ \ _____ _____ _______/ |_ | ||
/ | \\__ \ \__ \ / ___/\ __\ | ||
/ | \/ __ \_/ __ \_\___ \ | | | ||
\_______ (____ (____ /____ > |__| | ||
\_____ \ _____ ______ _______/ |_ | ||
/ | \\__ \ / ___// ___/\ __\ | ||
/ | \/ __ \_\___ \ \___ \ | | | ||
\_______ (____ /____ >____ > |__| | ||
\/ \/ \/ \/ | ||
|
||
{{bot_name}} {{version}} | ||
git hash: {{git_hash}} | ||
debug_mode: {{debug}} | ||
``` | ||
|
||
https://github.com/LAION-AI/Open-Assistant | ||
https://github.com/LAION-AI/Open-Assistant |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Act as the assistant and reply to the user. | ||
Here is the conversation so far: | ||
{% for message in task.conversation.messages %} | ||
{% if message.is_assistant %} | ||
:robot: Assistant: | ||
{{ message.text }} | ||
{% else %} | ||
:person_red_hair: User: | ||
**{{ message.text }}**" | ||
{% endif %} | ||
{% endfor %} | ||
:robot: Assistant: { human, pls help me! ... } |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Please provide an initial prompt to the assistant. | ||
{% if task.hint %} | ||
Hint: {task.hint}" | ||
{% endif %} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Here is the conversation so far: | ||
{% for message in task.conversation.messages %}{% if message.is_assistant %} | ||
:robot: Assistant: | ||
{{ message.text }} | ||
{% else %} | ||
:person_red_hair: User: | ||
**{{ message.text }}**" | ||
{% endif %}{% endfor %} | ||
Rank the following replies: | ||
{% for reply in task.replies %} | ||
{{loop.index}}: {{reply}}{% endfor %} | ||
|
||
:scroll: Reply with the numbers of best to worst prompts separated by commas (example: "4,1,3,2"). |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Rank the following prompts: | ||
{% for prompt in task.prompts %} | ||
{{loop.index}}: {{prompt}}{% endfor %} | ||
|
||
:scroll: Reply with the numbers of best to worst prompts separated by commas (example: "4,1,3,2"). |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Please provide a reply to the assistant. | ||
Here is the conversation so far: | ||
{% for message in task.conversation.messages %}{% if message.is_assistant %} | ||
:robot: Assistant: | ||
{{ message.text }} | ||
{% else %} | ||
:person_red_hair: User: | ||
**{{ message.text }}**" | ||
{% endif %}{% endfor %} | ||
{% if task.hint %} | ||
Hint: {{ task.hint }} | ||
{% endif %} |