Release few-shot prompting example

#22
by leonardo-avila - opened

"""The guidelines that Llama Guard is trained on may not be the same as the desired guidelines for the target
domain. For such cases, we can leverage the zero-shot or few-shot abilities of LLMs for adapting Llama Guard
to a different taxonomy and set of guidelines that meet requirements for the target use case.

Zero-shot prompting involves using category names, or category names as well as category descriptions of the
target domain in the prompt at inference time.

Few-shot prompting is similar to zero-shot but additionally includes 2 to 4 examples for each category in the
prompt. The learning happens in-context, i.e., we do not train on these examples. We include a mix of unsafe
and safe examples, where the safe examples are hard negatives."""

Could you please provide the template or an example of the few-shot prompting used in the paper?

Thanks!

Sign up or log in to comment