SSK-14 commited on
Commit
c092e31
·
verified ·
1 Parent(s): 33c7d88

Update config/scanners.yml

Browse files
Files changed (1) hide show
  1. config/scanners.yml +39 -36
config/scanners.yml CHANGED
@@ -28,28 +28,29 @@ metrics:
28
 
29
  # Scanners are applied in the order they are listed here.
30
  input_scanners:
31
- - type: Anonymize
32
- params:
33
- # allowed_names: []
34
- # hidden_names: []
35
- # entity_types: []
36
- # preamble: ""
37
- use_faker: false
38
- - type: BanCompetitors
39
- params:
40
- competitors: ["facebook"]
41
- threshold: 0.5
42
- - type: BanSubstrings
43
- params:
44
- substrings: ["test"]
45
- match_type: "word"
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"]
@@ -65,6 +66,7 @@ input_scanners:
65
  - type: PromptInjection
66
  params:
67
  threshold: 0.9
 
68
  - type: Regex
69
  params:
70
  patterns: ["Bearer [A-Za-z0-9-._~+/]+"]
@@ -87,31 +89,32 @@ input_scanners:
87
  threshold: 0.5
88
 
89
  output_scanners:
90
- - type: BanCompetitors
91
- params:
92
- competitors: ["facebook"]
93
- threshold: 0.5
94
- - type: BanSubstrings
95
- params:
96
- substrings: ["test"]
97
- match_type: "word"
98
- case_sensitive: false
99
- redact: false
100
- contains_all: false
101
- - type: BanTopics
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
 
28
 
29
  # Scanners are applied in the order they are listed here.
30
  input_scanners:
31
+ # - type: Anonymize
32
+ # params:
33
+ # # allowed_names: []
34
+ # # hidden_names: []
35
+ # # entity_types: []
36
+ # # preamble: ""
37
+ # use_faker: false
38
+ # - type: BanCompetitors
39
+ # params:
40
+ # competitors: ["facebook"]
41
+ # threshold: 0.5
42
+ # - type: BanSubstrings
43
+ # params:
44
+ # substrings: ["test"]
45
+ # match_type: "word"
46
+ # case_sensitive: false
47
+ # redact: false
48
+ # contains_all: false
49
  - type: BanTopics
50
  params:
51
  topics: ["violence"]
52
  threshold: 0.6
53
+ low_cpu_mem_usage: true
54
  - type: Code
55
  params:
56
  languages: ["Python"]
 
66
  - type: PromptInjection
67
  params:
68
  threshold: 0.9
69
+ low_cpu_mem_usage: true
70
  - type: Regex
71
  params:
72
  patterns: ["Bearer [A-Za-z0-9-._~+/]+"]
 
89
  threshold: 0.5
90
 
91
  output_scanners:
92
+ # - type: BanCompetitors
93
+ # params:
94
+ # competitors: ["facebook"]
95
+ # threshold: 0.5
96
+ # - type: BanSubstrings
97
+ # params:
98
+ # substrings: ["test"]
99
+ # match_type: "word"
100
+ # case_sensitive: false
101
+ # redact: false
102
+ # contains_all: false
103
+ # - type: BanTopics
104
+ # params:
105
+ # topics: ["violence"]
106
+ # threshold: 0.6
107
  - type: Bias
108
  params:
109
  threshold: 0.75
110
+ low_cpu_mem_usage: true
111
  - type: Code
112
  params:
113
  languages: ["Python"]
114
  is_blocked: true
115
+ # - type: Deanonymize
116
+ # params:
117
+ # matching_strategy: "exact"
118
  - type: FactualConsistency
119
  params:
120
  minimum_score: 0.5