-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathenum.py
More file actions
38 lines (28 loc) · 753 Bytes
/
Copy pathenum.py
File metadata and controls
38 lines (28 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from enum import Enum
class SlurSeverity(Enum):
Low = "low"
Medium = "medium"
High = "high"
All = "all"
class BiasCategories(Enum):
Generic = "generic"
Healthcare = "healthcare"
Education = "education"
All = "all"
class GuardrailOnFail(Enum):
Exception = "exception"
Fix = "fix"
Rephrase = "rephrase"
class Stage(Enum):
Input = "input"
Output = "output"
class ValidatorType(Enum):
LexicalSlur = "uli_slur_match"
PIIRemover = "pii_remover"
GenderAssumptionBias = "gender_assumption_bias"
BanList = "ban_list"
TopicRelevance = "topic_relevance"
LLMCritic = "llm_critic"
LlamaGuard7B = "llamaguard_7b"
ProfanityFree = "profanity_free"
NSFWText = "nsfw_text"