From 710898903d545d1fec01461d5ba2df66a25a39a5 Mon Sep 17 00:00:00 2001 From: Oliver Stanley Date: Sun, 8 Jan 2023 09:31:29 +0000 Subject: [PATCH] Initial revision to valid text labels (#509) --- oasst-shared/oasst_shared/schemas/protocol.py | 31 ++++++------------- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/oasst-shared/oasst_shared/schemas/protocol.py b/oasst-shared/oasst_shared/schemas/protocol.py index cbfbeca5..190ffa43 100644 --- a/oasst-shared/oasst_shared/schemas/protocol.py +++ b/oasst-shared/oasst_shared/schemas/protocol.py @@ -272,36 +272,25 @@ class TextLabel(str, enum.Enum): obj.help_text = help_text return obj - spam = "spam" + spam = "spam", "Seems to be intentionally low-quality or irrelevant" fails_task = "fails_task", "Fails to follow the correct instruction / task" not_appropriate = "not_appropriate", "Inappropriate for customer assistant" violence = "violence", "Encourages or fails to discourage violence/abuse/terrorism/self-harm" harmful = ( "harmful", "Harmful content", - "The advice given in the output is harmful or counter-productive. This may be in addition to, but is distinct from the question about encouraging violence/abuse/terrorism/self-harm.", + "The advice given in the output is harmful or counter-productive. This may be in addition to, but is distinct from the label for encouraging violence/abuse/terrorism/self-harm.", ) sexual_content = "sexual_content", "Contains sexual content" - toxicity = "toxicity" + toxicity = "toxicity", "Contains rude, abusive, profane or insulting content" moral_judgement = "moral_judgement", "Expresses moral judgement" - political_content = "political_content" - humor = "humor" - sarcasm = "sarcasm" - hate_speech = "hate_speech" - profanity = "profanity" - ad_hominem = "ad_hominem" - insult = "insult" - threat = "threat" - aggressive = "aggressive" - misleading = "misleading" - helpful = "helpful" - formal = "formal" - cringe = "cringe" - creative = "creative" - beautiful = "beautiful" - informative = "informative" - based = "based" - slang = "slang" + political_content = "political_content", "Expresses political views" + humor = "humor", "Contains humorous content including sarcasm" + hate_speech = "hate_speech", "Expresses sentiment which is discriminatory against a grouping of people" + threat = "threat", "Contains a threat against a person or persons" + misleading = "misleading", "Contains text which is incorrect or misleading" + helpful = "helpful", "Completes the task to a high standard" + creative = "creative", "Expresses creativity in responding to the task" class TextLabels(Interaction):