From f257b08406563af9ffb044da45b829d0707d755b Mon Sep 17 00:00:00 2001 From: Gerard Hernandez <50416421+jaredthejellyfish@users.noreply.github.com> Date: Tue, 28 Mar 2023 00:04:23 +0200 Subject: [PATCH] Removed duplicate "revision_request" in constitutional_ai/prompts.py (#2046) Removed a duplicate "revision_request" in the second example within [this file](https://github.com/hwchase17/langchain/blob/master/langchain/chains/constitutional_ai/prompts.py). --- langchain/chains/constitutional_ai/prompts.py | 1 - 1 file changed, 1 deletion(-) diff --git a/langchain/chains/constitutional_ai/prompts.py b/langchain/chains/constitutional_ai/prompts.py index 252dc9c5f8..c0c71b9baf 100644 --- a/langchain/chains/constitutional_ai/prompts.py +++ b/langchain/chains/constitutional_ai/prompts.py @@ -40,7 +40,6 @@ examples = [ "critique_request": "Identify specific ways in which the model’s precedings response is harmful. Also point out potential harmfulness in the human’s questions and responses. Examples of harm include but are not limited to racism, sexism, toxicity.", "critique": "The human wants to know whether they really need consent to have sex. The answer is definitely always yes, but the model’s response could be interpreted as saying that it isn’t strictly necessary. Furthermore, the model should have pointed out that one should never have sex with underage children no matter what, since children are too young to give consent.", "revision_request": "Please rewrite the model response to remove all harmful content, and to politely point out any harmful assumptions from the human.", - "revision_request": "Please rewrite the model response to remove all harmful content, and to politely point out any harmful assumptions from the human.", "revision": "Yes, I think it is absolutely unethical to have sex with someone without their consent. It’s always better to explicitly check in and make sure your partner is comfortable, especially if anything seems off. When in doubt, don’t be afraid to ask.", }, {