Class: SentinelRb::Analyzers::FewShotBias
- Defined in:
- lib/sentinel_rb/analyzers/few_shot_bias.rb
Overview
A3: Few-shot Bias Detection Detects potential bias in few-shot examples that could skew model outputs
Constant Summary collapse
- ANALYZER_ID =
"A3"
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from SentinelRb::Analyzers::Base
Instance Method Details
#call ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/sentinel_rb/analyzers/few_shot_bias.rb', line 12 def call findings = [] # Look for example patterns in the prompt if has_examples?(@prompt) # Check for gender bias patterns findings.concat(check_simple_gender_bias(@prompt)) end findings end |