Skip to content

Prompts for crd3 #769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion promptsource/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

# These are users whose datasets should be included in the results returned by
# filter_english_datasets (regardless of their metadata)
INCLUDED_USERS = {"Zaid", "craffel", "GEM", "aps", "khalidalt"}
INCLUDED_USERS = {"Zaid", "craffel", "GEM", "aps", "khalidalt", "shanya"}


def highlight(input):
Expand Down
76 changes: 76 additions & 0 deletions promptsource/templates/shanya/crd3/templates.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
dataset: shanya/crd3
templates:
20ccbfa4-2375-4cae-8589-4d0c5ef3dab8: !Template
answer_choices: null
id: 20ccbfa4-2375-4cae-8589-4d0c5ef3dab8
jinja: "{% set diff = turn_end - turn_start + 1 %}\nFollowing is a conversation\
\ with {{ diff }} distinct turns. Go through each of them and generate a paragraph\
\ to succinctly describe the main points.\n\n{% for turn in turns%} \n{{turn['names'][0]}}\
\ : {% for utterance in turn[\"utterances\"] %}{{utterance}} {% endfor %}\n\
{% endfor %} ||| \n{{chunk}} \n\n"
metadata: !TemplateMetadata
choices_in_prompt: false
metrics:
- BLEU
- ROUGE
original_task: true
name: conversation_with_n_turns
reference: ''
26ea0e66-eafe-4d0f-9d0d-1eccf2229e13: !Template
answer_choices: null
id: 26ea0e66-eafe-4d0f-9d0d-1eccf2229e13
jinja: "Summarize the conversation given below:\n\n {% for turn in turns%} \n\
{{turn['names'][0]}} : {% for utterance in turn[\"utterances\"] %}{{utterance}}\
\ {% endfor %}\n{% endfor %} ||| {{chunk}} "
metadata: !TemplateMetadata
choices_in_prompt: false
metrics:
- BLEU
- ROUGE
original_task: true
name: summarize_conversation
reference: ''
7ae30717-def0-458c-b160-9f05f2486206: !Template
answer_choices: null
id: 7ae30717-def0-458c-b160-9f05f2486206
jinja: "From the conversation given below, condense the information in a few sentences:\
\ \n{% for turn in turns%} \n{{turn['names'][0]}} : {% for utterance in turn[\"\
utterances\"] %}{{utterance}} {% endfor %}\n{% endfor %}\n||| \n{{chunk}} "
metadata: !TemplateMetadata
choices_in_prompt: false
metrics:
- BLEU
- ROUGE
original_task: true
name: condense_the_conversation
reference: ''
833f8e28-9560-44a1-b529-aaa6a0c402a8: !Template
answer_choices: null
id: 833f8e28-9560-44a1-b529-aaa6a0c402a8
jinja: "Go through the conversation below and write a brief summary describing\
\ it.\n\nConversation:\n{% for turn in turns%} \n{{turn['names'][0]}} : {%\
\ for utterance in turn[\"utterances\"] %}{{utterance}} {% endfor %}\n{% endfor\
\ %} \nSummary: ||| {{chunk}} "
metadata: !TemplateMetadata
choices_in_prompt: false
metrics:
- BLEU
- ROUGE
original_task: true
name: conversation_to_summary
reference: ''
e082d477-12f1-45da-927c-57c4e12470b0: !Template
answer_choices: null
id: e082d477-12f1-45da-927c-57c4e12470b0
jinja: "Following is a set of dialogues from a conversation. Can you generate\
\ a few sentences to summarize the most important details from it?\n\nConversation:\n\
\ {% for turn in turns%} \n{{turn['names'][0]}} : {% for utterance in turn[\"\
utterances\"] %}{{utterance}} {% endfor %}\n{% endfor %} \nSummary: ||| {{chunk}} "
metadata: !TemplateMetadata
choices_in_prompt: false
metrics:
- BLEU
- ROUGE
original_task: true
name: generate_summary
reference: ''