Trouter-Library commited on
Commit
343441b
·
verified ·
1 Parent(s): 4290200

Create safety_config.json

Browse files
Files changed (1) hide show
  1. safety_config.json +203 -0
safety_config.json ADDED
@@ -0,0 +1,203 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_safety_settings": {
3
+ "version": "1.0",
4
+ "last_updated": "2024-11-15",
5
+ "safety_level": "high",
6
+ "enable_content_filtering": true,
7
+ "enable_output_moderation": true
8
+ },
9
+ "content_filtering": {
10
+ "enabled": true,
11
+ "filters": {
12
+ "hate_speech": {
13
+ "enabled": true,
14
+ "severity_threshold": 0.7,
15
+ "action": "block",
16
+ "log": true
17
+ },
18
+ "violence": {
19
+ "enabled": true,
20
+ "severity_threshold": 0.7,
21
+ "action": "block",
22
+ "log": true
23
+ },
24
+ "sexual_content": {
25
+ "enabled": true,
26
+ "severity_threshold": 0.8,
27
+ "action": "block",
28
+ "log": true
29
+ },
30
+ "child_safety": {
31
+ "enabled": true,
32
+ "severity_threshold": 0.5,
33
+ "action": "block_immediately",
34
+ "log": true,
35
+ "alert": true
36
+ },
37
+ "self_harm": {
38
+ "enabled": true,
39
+ "severity_threshold": 0.6,
40
+ "action": "redirect_to_resources",
41
+ "log": true,
42
+ "helpline_message": "If you're experiencing thoughts of self-harm, please contact: National Suicide Prevention Lifeline: 988 or 1-800-273-8255"
43
+ },
44
+ "harassment": {
45
+ "enabled": true,
46
+ "severity_threshold": 0.7,
47
+ "action": "warn",
48
+ "log": true
49
+ },
50
+ "illegal_activity": {
51
+ "enabled": true,
52
+ "severity_threshold": 0.7,
53
+ "action": "block",
54
+ "log": true
55
+ },
56
+ "misinformation": {
57
+ "enabled": true,
58
+ "severity_threshold": 0.8,
59
+ "action": "warn",
60
+ "log": true
61
+ },
62
+ "spam": {
63
+ "enabled": true,
64
+ "severity_threshold": 0.8,
65
+ "action": "block",
66
+ "log": true
67
+ },
68
+ "profanity": {
69
+ "enabled": true,
70
+ "severity_threshold": 0.6,
71
+ "action": "filter",
72
+ "log": true
73
+ }
74
+ }
75
+ },
76
+ "pii_protection": {
77
+ "enabled": true,
78
+ "detect_and_redact": true,
79
+ "pii_types": {
80
+ "ssn": {
81
+ "enabled": true,
82
+ "redaction_pattern": "[SSN-REDACTED]"
83
+ },
84
+ "credit_card": {
85
+ "enabled": true,
86
+ "redaction_pattern": "[CREDIT-CARD-REDACTED]"
87
+ },
88
+ "email": {
89
+ "enabled": true,
90
+ "redaction_pattern": "[EMAIL-REDACTED]"
91
+ },
92
+ "phone": {
93
+ "enabled": true,
94
+ "redaction_pattern": "[PHONE-REDACTED]"
95
+ },
96
+ "address": {
97
+ "enabled": true,
98
+ "redaction_pattern": "[ADDRESS-REDACTED]"
99
+ },
100
+ "passport": {
101
+ "enabled": true,
102
+ "redaction_pattern": "[PASSPORT-REDACTED]"
103
+ },
104
+ "driver_license": {
105
+ "enabled": true,
106
+ "redaction_pattern": "[DL-REDACTED]"
107
+ }
108
+ }
109
+ },
110
+ "output_moderation": {
111
+ "enabled": true,
112
+ "max_output_length": 8192,
113
+ "check_factuality": true,
114
+ "check_coherence": true,
115
+ "check_toxicity": true,
116
+ "toxicity_threshold": 0.3,
117
+ "reject_incoherent_outputs": true,
118
+ "add_disclaimers": {
119
+ "medical": "This is not medical advice. Consult a healthcare professional.",
120
+ "legal": "This is not legal advice. Consult a qualified attorney.",
121
+ "financial": "This is not financial advice. Consult a financial advisor."
122
+ }
123
+ },
124
+ "rate_limiting": {
125
+ "enabled": true,
126
+ "max_requests_per_minute": 60,
127
+ "max_requests_per_hour": 1000,
128
+ "max_requests_per_day": 10000,
129
+ "burst_limit": 10
130
+ },
131
+ "monitoring_and_logging": {
132
+ "log_all_interactions": true,
133
+ "log_blocked_requests": true,
134
+ "log_level": "info",
135
+ "retention_days": 90,
136
+ "alert_on_critical": true,
137
+ "alert_recipients": [
138
+ "safety@deepxr.ai"
139
+ ]
140
+ },
141
+ "user_reporting": {
142
+ "enabled": true,
143
+ "report_endpoint": "/api/report",
144
+ "categories": [
145
+ "inappropriate_content",
146
+ "factual_error",
147
+ "bias",
148
+ "harmful_output",
149
+ "privacy_violation",
150
+ "other"
151
+ ]
152
+ },
153
+ "model_behavior": {
154
+ "refuse_harmful_requests": true,
155
+ "provide_alternative_suggestions": true,
156
+ "explain_limitations": true,
157
+ "cite_sources_when_possible": false,
158
+ "acknowledge_uncertainty": true,
159
+ "avoid_stereotypes": true,
160
+ "respect_copyright": true
161
+ },
162
+ "specialized_protections": {
163
+ "child_safety": {
164
+ "detect_grooming_attempts": true,
165
+ "block_age_inappropriate_content": true,
166
+ "age_gate_enabled": false
167
+ },
168
+ "vulnerable_populations": {
169
+ "crisis_support": {
170
+ "detect_crisis": true,
171
+ "provide_resources": true,
172
+ "resources": {
173
+ "suicide_prevention": "988 or 1-800-273-8255",
174
+ "domestic_violence": "1-800-799-7233",
175
+ "substance_abuse": "1-800-662-4357",
176
+ "mental_health": "1-800-950-6264"
177
+ }
178
+ }
179
+ }
180
+ },
181
+ "compliance": {
182
+ "gdpr_compliant": true,
183
+ "ccpa_compliant": true,
184
+ "coppa_compliant": true,
185
+ "hipaa_aware": true,
186
+ "data_retention_policy": "90_days",
187
+ "right_to_deletion": true
188
+ },
189
+ "emergency_shutoff": {
190
+ "enabled": true,
191
+ "trigger_conditions": [
192
+ "critical_safety_violation",
193
+ "widespread_abuse",
194
+ "security_breach"
195
+ ],
196
+ "notification_required": true
197
+ },
198
+ "version_info": {
199
+ "config_version": "1.0.0",
200
+ "model_version": "helion-v2",
201
+ "safety_protocol_version": "2024.11"
202
+ }
203
+ }