Skip to content

The agent engineering platform.

Fix typo in the CAI critique prompt (#6123)

Pierre Dulac395a2a372450
diff --git a/langchain/chains/constitutional_ai/prompts.py b/langchain/chains/constitutional_ai/prompts.py
index 1260e624e7..54501dc720 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}