OpenPrompt
OpenPrompt copied to clipboard
How to use openprompt in an In-context learning setting?
Is there a way to use Openprompt for an in-context learning setting (i.e., adding examples to the prompt).
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"}