mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +00:00
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:
parent
38057f0d2e
commit
395a2a3724
@ -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}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user