Fix typo in the CAI critique prompt (#6123)

Very small typo in the Constitutional AI critique default prompt. The
negation "If there is *no* material critique of ..." is used two times,
should be used only on the first one.

Cheers,
Pierre
This commit is contained in:
Pierre Dulac 2023-06-19 02:38:56 +02:00 committed by GitHub
parent 38057f0d2e
commit 395a2a3724
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@ CRITIQUE_PROMPT = FewShotPromptTemplate(
examples=[ examples=[
{k: v for k, v in e.items() if k != "revision_request"} for e in examples {k: v for k, v in e.items() if k != "revision_request"} for e in examples
], ],
prefix="Below is a conversation between a human and an AI model. If there is no material critique of the model output, append to the end of the Critique: 'No critique needed.' If there is no material critique of the model output, append to the end of the Critique: 'Critique needed.'", prefix="Below is a conversation between a human and an AI model. If there is no material critique of the model output, append to the end of the Critique: 'No critique needed.' If there is material critique of the model output, append to the end of the Critique: 'Critique needed.'",
suffix="""Human: {input_prompt} suffix="""Human: {input_prompt}
Model: {output_from_model} Model: {output_from_model}