You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The case_sensitive setting for StringDetector operates opposite from what I expect. This may be my problem. I would like clarity before I submit a feature PR where I also fixed this.
Steps to reproduce
current code:
if case_sensitive:
s, output = s.lower(), output.lower()
Expected behavior
If case_sensitive is true then 'no' does not mean 'No'
The case_sensitive setting for StringDetector operates opposite from what I expect. This may be my problem. I would like clarity before I submit a feature PR where I also fixed this.
Steps to reproduce
current code:
Expected behavior
If case_sensitive is true then 'no' does not mean 'No'
Proposed tests below.
Current behavior
When case_sensitive is true, 'no' means 'No'.
garak version
garak LLM vulnerability scanner v0.10.0.post1 ( https://github.com/NVIDIA/garak ) at 2025-01-02T07:33:47.131767
Additional Information
git
##Tests for proposed tests/detectors/test_detectors_string.py
The text was updated successfully, but these errors were encountered: