Skip to content

Serialize prompts that cycle through choices #483

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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