Serialize prompts that cycle through choices

Open
#483 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

The issue does not name files or tests. Start by searching the prompt templates for uses of the choice filter, then inventory the templates that contain cycling alternatives. Done means each alternative is represented by a separate template rather than multiple prompts selected at runtime.

Written by the indexing model from the issue text.

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.

Dominant language
Python
Stars
3k
Forks
375
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bigscience-workshop/promptsource

All issues in bigscience-workshop/promptsource

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.