{{Few-shot examples}}
variablefew_shot_explanation
and a score
variable which should have the same name as your feedback key.
For example, if your main prompt has variables question
and response
, and your evaluator outputs a correctness
score, then your few-shot prompt should have the vartiables question
, response
, few_shot_explanation
, and correctness
.
few_shot_explanation
variable.
The inputs to the few-shot examples will be the relevant fields from the inputs, outputs, and reference (if this an offline evaluator) of your chain/dataset. The outputs will be the corrected evaluator score and the explanations that you created when you left the corrections. Feel free to edit these to your liking. Here is an example of a few-shot example in a corrections dataset: