Skip to content

Serialize prompts that cycle through choices #483

@craffel

Description

@craffel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions