From 395a2a3724507bafc7afe9e04ecbae60a7c66c7e Mon Sep 17 00:00:00 2001 From: Pierre Dulac Date: Mon, 19 Jun 2023 02:38:56 +0200 Subject: [PATCH] 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 --- langchain/chains/constitutional_ai/prompts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain/chains/constitutional_ai/prompts.py b/langchain/chains/constitutional_ai/prompts.py index 1260e624..54501dc7 100644 --- a/langchain/chains/constitutional_ai/prompts.py +++ b/langchain/chains/constitutional_ai/prompts.py @@ -60,7 +60,7 @@ CRITIQUE_PROMPT = FewShotPromptTemplate( 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} Model: {output_from_model}