OpenPrompt icon indicating copy to clipboard operation
OpenPrompt copied to clipboard

How to use openprompt in an In-context learning setting?

Open YamenAjjour opened this issue 2 years ago • 1 comments

Is there a way to use Openprompt for an in-context learning setting (i.e., adding examples to the prompt).

YamenAjjour avatar Mar 20 '23 12:03 YamenAjjour

A straightforward way is to concat your examples into one string and make it part of the template. Your template will look like:

<example_1> <example_2> <example_3> ... {"placeholder": "text_a"} [some kind of template] {"mask"}

yulinchen99 avatar Mar 30 '23 05:03 yulinchen99