SSK-14 commited on
Commit
fedce48
·
verified ·
1 Parent(s): a293794

Update config/scanners.yml

Browse files
Files changed (1) hide show
  1. config/scanners.yml +73 -73
config/scanners.yml CHANGED
@@ -46,42 +46,42 @@ input_scanners:
46
  # case_sensitive: false
47
  # redact: false
48
  # contains_all: false
49
- - type: BanTopics
50
- params:
51
- topics: ["violence"]
52
- threshold: 0.6
53
- - type: Code
54
- params:
55
- languages: ["Python"]
56
- is_blocked: true
57
- - type: Gibberish
58
- params:
59
- threshold: 0.9
60
- - type: InvisibleText
61
- params: {}
62
- - type: Language
63
- params:
64
- valid_languages: ["en"]
65
  - type: PromptInjection
66
  params:
67
  threshold: 0.9
68
- - type: Regex
69
- params:
70
- patterns: ["Bearer [A-Za-z0-9-._~+/]+"]
71
- is_blocked: true
72
- match_type: search
73
- redact: true
74
- - type: Secrets
75
- params:
76
- redact_mode: "all"
77
  # - type: Sentiment
78
  # params:
79
  # # lexicon: "vader_lexicon"
80
  # threshold: -0.1
81
- - type: TokenLimit
82
- params:
83
- limit: 4096
84
- encoding_name: "cl100k_base"
85
  - type: Toxicity
86
  params:
87
  threshold: 0.5
@@ -102,47 +102,47 @@ output_scanners:
102
  # params:
103
  # topics: ["violence"]
104
  # threshold: 0.6
105
- - type: Bias
106
- params:
107
- threshold: 0.75
108
- - type: Code
109
- params:
110
- languages: ["Python"]
111
- is_blocked: true
112
  # - type: Deanonymize
113
  # params:
114
  # matching_strategy: "exact"
115
- - type: FactualConsistency
116
- params:
117
- minimum_score: 0.5
118
- - type: Gibberish
119
- params:
120
- threshold: 0.9
121
- - type: JSON
122
- params:
123
- required_elements: 0
124
- repair: true
125
- - type: Language
126
- params:
127
- valid_languages: ["en"]
128
- - type: LanguageSame
129
- params: {}
130
- - type: MaliciousURLs
131
- params:
132
- threshold: 0.75
133
  - type: NoRefusal
134
  params:
135
  threshold: 0.5
136
- - type: ReadingTime
137
- params:
138
- max_time: 5
139
- truncate: false
140
- - type: Regex
141
- params:
142
- patterns: ["Bearer [A-Za-z0-9-._~+/]+"]
143
- is_blocked: true
144
- match_type: search
145
- redact: true
146
  - type: Relevance
147
  params:
148
  threshold: 0.5
@@ -151,12 +151,12 @@ output_scanners:
151
  # entity_types:
152
  redact: false
153
  threshold: 0.0
154
- - type: Sentiment
155
- params:
156
- threshold: -0.1
157
- # lexicon: "vader_lexicon"
158
- - type: Toxicity
159
- params:
160
- threshold: 0.5
161
- - type: URLReachability
162
- params: {}
 
46
  # case_sensitive: false
47
  # redact: false
48
  # contains_all: false
49
+ # - type: BanTopics
50
+ # params:
51
+ # topics: ["violence"]
52
+ # threshold: 0.6
53
+ # - type: Code
54
+ # params:
55
+ # languages: ["Python"]
56
+ # is_blocked: true
57
+ # - type: Gibberish
58
+ # params:
59
+ # threshold: 0.9
60
+ # - type: InvisibleText
61
+ # params: {}
62
+ # - type: Language
63
+ # params:
64
+ # valid_languages: ["en"]
65
  - type: PromptInjection
66
  params:
67
  threshold: 0.9
68
+ # - type: Regex
69
+ # params:
70
+ # patterns: ["Bearer [A-Za-z0-9-._~+/]+"]
71
+ # is_blocked: true
72
+ # match_type: search
73
+ # redact: true
74
+ # - type: Secrets
75
+ # params:
76
+ # redact_mode: "all"
77
  # - type: Sentiment
78
  # params:
79
  # # lexicon: "vader_lexicon"
80
  # threshold: -0.1
81
+ # - type: TokenLimit
82
+ # params:
83
+ # limit: 4096
84
+ # encoding_name: "cl100k_base"
85
  - type: Toxicity
86
  params:
87
  threshold: 0.5
 
102
  # params:
103
  # topics: ["violence"]
104
  # threshold: 0.6
105
+ # - type: Bias
106
+ # params:
107
+ # threshold: 0.75
108
+ # - type: Code
109
+ # params:
110
+ # languages: ["Python"]
111
+ # is_blocked: true
112
  # - type: Deanonymize
113
  # params:
114
  # matching_strategy: "exact"
115
+ # - type: FactualConsistency
116
+ # params:
117
+ # minimum_score: 0.5
118
+ # - type: Gibberish
119
+ # params:
120
+ # threshold: 0.9
121
+ # - type: JSON
122
+ # params:
123
+ # required_elements: 0
124
+ # repair: true
125
+ # - type: Language
126
+ # params:
127
+ # valid_languages: ["en"]
128
+ # - type: LanguageSame
129
+ # params: {}
130
+ # - type: MaliciousURLs
131
+ # params:
132
+ # threshold: 0.75
133
  - type: NoRefusal
134
  params:
135
  threshold: 0.5
136
+ # - type: ReadingTime
137
+ # params:
138
+ # max_time: 5
139
+ # truncate: false
140
+ # - type: Regex
141
+ # params:
142
+ # patterns: ["Bearer [A-Za-z0-9-._~+/]+"]
143
+ # is_blocked: true
144
+ # match_type: search
145
+ # redact: true
146
  - type: Relevance
147
  params:
148
  threshold: 0.5
 
151
  # entity_types:
152
  redact: false
153
  threshold: 0.0
154
+ # - type: Sentiment
155
+ # params:
156
+ # threshold: -0.1
157
+ # # lexicon: "vader_lexicon"
158
+ # - type: Toxicity
159
+ # params:
160
+ # threshold: 0.5
161
+ # - type: URLReachability
162
+ # params: {}