promptsource icon indicating copy to clipboard operation
promptsource copied to clipboard

Serialize prompts that cycle through choices

Open craffel opened this issue 4 years ago • 0 comments

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.

craffel avatar Oct 01 '21 17:10 craffel