bigscience-workshop / bigscience-workshop/promptsource

Serialize prompts that cycle through choices

Open
#483 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3k
Forks
375
PR merge metrics
No merged PRs in 30d

Description

In some prompt templates, there is logic like this:
```
{% set seq = [

''Answer the question depending on the context.'',

''What is the answer?'',

] %}

{{ seq | choice }}

Context: {{context}};

Question: {{question}};

...
```
This makes it so that one prompt is effectively multiple prompts. We should "serialize" them into separate templates.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.