-
Notifications
You must be signed in to change notification settings - Fork 364
Add SCROLLS long-form generation prompts #818
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
Open
haileyschoelkopf
wants to merge
3
commits into
bigscience-workshop:eval-hackathon
Choose a base branch
from
haileyschoelkopf:scrolls
base: eval-hackathon
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
63 changes: 63 additions & 0 deletions
63
promptsource/templates/tau/scrolls/contract_nli/templates.yaml
This file contains hidden or 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,63 @@ | ||
dataset: tau/scrolls | ||
subset: contract_nli | ||
templates: | ||
243c496c-4cae-46d7-b94d-91c946fbd98c: !Template | ||
answer_choices: Not mentioned ||| Entailment ||| Contradiction | ||
id: 243c496c-4cae-46d7-b94d-91c946fbd98c | ||
jinja: 'The following is an NDA: | ||
|
||
{{input.split("\n\n", 1)[1]}} | ||
|
||
Here is a statement about that NDA: {{input.split("\n\n", 1)[0]}} | ||
|
||
Based on this NDA, is the statement "Not mentioned", an "Entailment", or a "Contradiction"? | ||
||| {{output}}' | ||
metadata: !TemplateMetadata | ||
choices_in_prompt: true | ||
languages: | ||
- en | ||
metrics: | ||
- Accuracy | ||
- Other | ||
original_task: true | ||
name: statement after | ||
reference: '' | ||
8082ee08-d6ae-4d5d-9fbf-3dae04e9b7ec: !Template | ||
answer_choices: null | ||
id: 8082ee08-d6ae-4d5d-9fbf-3dae04e9b7ec | ||
jinja: '{{input.split("\n\n", 1)[0]}} | ||
|
||
Please write a non-disclosure agreement with the relation of "{{output}}" to | ||
the previous statement: ||| {{input.split("\n\n", 1)[1]}} | ||
|
||
' | ||
metadata: !TemplateMetadata | ||
choices_in_prompt: false | ||
languages: | ||
- en | ||
metrics: | ||
- BLEU | ||
- ROUGE | ||
original_task: false | ||
name: write_nda | ||
reference: '' | ||
b1ba1f3b-7eba-4bf2-aa21-a2d899d05e40: !Template | ||
answer_choices: Not mentioned ||| Entailment ||| Contradiction | ||
id: b1ba1f3b-7eba-4bf2-aa21-a2d899d05e40 | ||
jinja: 'The following is a statement followed by a non-disclosure agreement: | ||
|
||
{{input}} | ||
|
||
Based on this NDA, is the statement "Not mentioned", an "Entailment", or a "Contradiction"? | ||
||| {{output}} | ||
|
||
' | ||
metadata: !TemplateMetadata | ||
choices_in_prompt: true | ||
languages: | ||
- en | ||
metrics: | ||
- Other | ||
original_task: true | ||
name: nli_labelsgiven | ||
reference: '' |
87 changes: 87 additions & 0 deletions
87
promptsource/templates/tau/scrolls/gov_report/templates.yaml
This file contains hidden or 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,87 @@ | ||
dataset: tau/scrolls | ||
subset: gov_report | ||
templates: | ||
2edf0297-e3d4-4870-bd95-178411e52e09: !Template | ||
answer_choices: null | ||
id: 2edf0297-e3d4-4870-bd95-178411e52e09 | ||
jinja: 'Summary: {{ output }} | ||
|
||
Full Document: ||| {{ input }}' | ||
metadata: !TemplateMetadata | ||
choices_in_prompt: false | ||
languages: | ||
- en | ||
metrics: | ||
- ROUGE | ||
- BLEU | ||
original_task: false | ||
name: summary_doc | ||
reference: '' | ||
3bd082cb-4e28-4eb7-1ea2-dd03f1f86219: !Template | ||
answer_choices: null | ||
id: 3bd082cb-4e28-4eb7-1ea2-dd03f1f86219 | ||
jinja: 'Read the following document: | ||
|
||
{{ output }} | ||
|
||
The following is a concise summary of the document: ||| {{ input }}' | ||
metadata: !TemplateMetadata | ||
choices_in_prompt: false | ||
languages: | ||
- en | ||
metrics: | ||
- BLEU | ||
- ROUGE | ||
original_task: false | ||
name: read_following | ||
reference: '' | ||
52ffecee-4298-4611-a3dd-cc0ee3856259: !Template | ||
answer_choices: null | ||
id: 52ffecee-4298-4611-a3dd-cc0ee3856259 | ||
jinja: 'The following is a summary taken from a government report. | ||
|
||
Summary: {{ output }} | ||
|
||
The contents of that report were likely as follows: ||| {{ input }}' | ||
Comment on lines
+41
to
+45
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure what that brings compared to previous prompt |
||
metadata: !TemplateMetadata | ||
choices_in_prompt: false | ||
languages: | ||
- en | ||
metrics: | ||
- BLEU | ||
- ROUGE | ||
original_task: false | ||
name: reconstruct_report | ||
reference: '' | ||
af4d550e-54b8-471e-97af-2b2c50a1382e: !Template | ||
answer_choices: null | ||
id: af4d550e-54b8-471e-97af-2b2c50a1382e | ||
jinja: 'Document: {{ input }} | ||
|
||
Summary: ||| {{ output }}' | ||
metadata: !TemplateMetadata | ||
choices_in_prompt: false | ||
languages: | ||
- en | ||
metrics: | ||
- BLEU | ||
- ROUGE | ||
original_task: true | ||
name: doc_summary | ||
reference: '' | ||
af4d550e-54b8-471e-97af-2b2c50a1382e: !Template | ||
answer_choices: null | ||
id: af4d550e-54b8-471e-97af-2b2c50a1382e | ||
jinja: 'Here is a government report: {{ input }} | ||
|
||
I will now summarize it: ||| {{ output }}' | ||
metadata: !TemplateMetadata | ||
choices_in_prompt: false | ||
languages: | ||
- en | ||
metrics: | ||
- BLEU | ||
- ROUGE | ||
original_task: true | ||
name: summarize_report | ||
reference: '' |
This file contains hidden or 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,74 @@ | ||
dataset: tau/scrolls | ||
subset: qmsum | ||
templates: | ||
2edf0197-e3d4-4870-bd95-178411e52e09: !Template | ||
answer_choices: null | ||
id: 2edf0197-e3d4-4870-bd95-178411e52e09 | ||
jinja: 'This is a summary of a meeting based on a query. | ||
|
||
Summary: {{ output }} | ||
|
||
The query given and the original meeting transcript\ are as follows: ||| {{ | ||
input }}' | ||
metadata: !TemplateMetadata | ||
choices_in_prompt: false | ||
languages: | ||
- en | ||
metrics: | ||
- ROUGE | ||
- BLEU | ||
original_task: false | ||
name: write_meeting | ||
reference: '' | ||
8c3d956e-320b-4800-8dd1-552330b7f3dc: !Template | ||
answer_choices: null | ||
id: 8c3d956e-320b-4800-8dd1-552330b7f3dc | ||
jinja: 'Given the following meeting transcript: {{ input.split("?", 1)[1][1:] | ||
}} | ||
|
||
What is a question you could ask about the meeting? ||| {{ input.split("?", | ||
1)[0] }}?' | ||
metadata: !TemplateMetadata | ||
choices_in_prompt: false | ||
languages: | ||
- en | ||
metrics: | ||
- BLEU | ||
- ROUGE | ||
original_task: false | ||
name: Generate question | ||
reference: '' | ||
af4d550e-54b8-471e-97af-2b2c50a1382e: !Template | ||
answer_choices: null | ||
id: af4d550e-54b8-471e-97af-2b2c50a1382e | ||
jinja: 'The following is a question followed by a meeting transcript: | ||
|
||
{{ input }} | ||
|
||
How would you best summarize the meeting based on the question? ||| {{ output | ||
}}' | ||
metadata: !TemplateMetadata | ||
choices_in_prompt: false | ||
languages: | ||
- en | ||
metrics: | ||
- BLEU | ||
- ROUGE | ||
original_task: true | ||
name: summarize_by_query | ||
reference: '' | ||
cd5f9c35-1074-41bd-b362-d152b8d51894: !Template | ||
answer_choices: null | ||
id: cd5f9c35-1074-41bd-b362-d152b8d51894 | ||
jinja: '{{ input.split("?", 1)[1][1:] }} | ||
|
||
{{ input.split("?", 1)[0] }}? | ||
|
||
Answer: ||| {{ output }}' | ||
metadata: !TemplateMetadata | ||
choices_in_prompt: false | ||
languages: [] | ||
metrics: [] | ||
original_task: false | ||
name: question_last | ||
reference: '' |
75 changes: 75 additions & 0 deletions
75
promptsource/templates/tau/scrolls/summ_screen_fd/templates.yaml
This file contains hidden or 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,75 @@ | ||
dataset: tau/scrolls | ||
subset: summ_screen_fd | ||
templates: | ||
2edf0197-e3d4-4870-bd95-178411e52e09: !Template | ||
answer_choices: null | ||
id: 2edf0197-e3d4-4870-bd95-178411e52e09 | ||
jinja: 'Given the following television episode recap, please write a transcript of the episode. | ||
|
||
Recap: {{ output }} | ||
|
||
Transcript: ||| {{ input }}' | ||
metadata: !TemplateMetadata | ||
choices_in_prompt: false | ||
languages: | ||
- en | ||
metrics: | ||
- ROUGE | ||
- BLEU | ||
original_task: false | ||
name: write_transcript | ||
reference: '' | ||
3bd082cb-4e28-4eb7-9fa2-dd03f1f86219: !Template | ||
answer_choices: null | ||
id: 3bd082cb-4e28-4eb7-9fa2-dd03f1f86219 | ||
jinja: 'Here is a summary of a TV episode: | ||
|
||
{{ output }} | ||
|
||
The following is the full screenplay of that TV episode: ||| {{ input }}' | ||
metadata: !TemplateMetadata | ||
choices_in_prompt: false | ||
languages: | ||
- en | ||
metrics: | ||
- BLEU | ||
- ROUGE | ||
original_task: false | ||
name: provide screenplay | ||
reference: '' | ||
52ffecee-4298-4611-a3dd-cc0ee3856259: !Template | ||
answer_choices: null | ||
id: 52ffecee-4298-4611-a3dd-cc0ee3856259 | ||
jinja: 'I will provide a TV episode synopsis below. | ||
|
||
Synopsis: {{ output }} | ||
|
||
I will now start writing that TV episode from scratch: ||| {{ input }}' | ||
metadata: !TemplateMetadata | ||
choices_in_prompt: false | ||
languages: | ||
- en | ||
metrics: | ||
- BLEU | ||
- ROUGE | ||
original_task: false | ||
name: write_from_synopsis | ||
reference: '' | ||
af4d550e-54b8-471e-97af-2b2c50a1382e: !Template | ||
answer_choices: null | ||
id: af4d550e-54b8-471e-97af-2b2c50a1382e | ||
jinja: 'The following is a television episode transcript: | ||
|
||
{{ input }} | ||
|
||
How would you best summarize the above episode? ||| {{ output }}' | ||
metadata: !TemplateMetadata | ||
choices_in_prompt: false | ||
languages: | ||
- en | ||
metrics: | ||
- BLEU | ||
- ROUGE | ||
original_task: true | ||
name: summarize episode | ||
reference: '' |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still weirded out that you can have trailing "\n"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry where's the trailing "\n"? Maybe I'm missing something
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry *can't I would expect the generation to be "below" the "The following is a concise summary of the document:" instead of to the right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see. Yeah does promptsource allow for that? Not too familiar with the convention in PS / why it can't have a trailing "\n"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't allow for it; \n & whitespace is stripped