promptsource icon indicating copy to clipboard operation
promptsource copied to clipboard

Discussion on skipping examples

Open stephenbach opened this issue 2 years ago • 0 comments

Continuing the discussion from PR #788 to double check some stuff. The contributing guide says

Filtering prompts. If a prompt is applied to an example and produces an empty string,
that prompt/example pair will be skipped. You can therefore create prompts that only
apply to a subset of the examples by wrapping them in Jinja if statements.

I could have sworn it was either a blank input/output/or totally blank, as supported by the way the tests are written. Did we change this at some point? Perhaps we can run a check on existing prompts or change the code further to allow all options?

Also related to #749.

stephenbach avatar Jun 28 '22 19:06 stephenbach