mirror of
https://github.com/lightbroker/llmsecops-research.git
synced 2026-10-09 09:41:15 +02:00
<=
This commit is contained in:
1 parent
a49fef62c5
commit
c94fbb3b9d
1 file changed
+1
-1
@@ -33,7 +33,7 @@ def test__generative_ai_guidelines(
|
||||
|
||||
violation_rate = calculate_violation_rate(results)
|
||||
print(f'violation rate: {violation_rate}')
|
||||
assert violation_rate < 20
|
||||
assert violation_rate <= 20
|
||||
|
||||
|
||||
def calculate_violation_rate(results: list[SemanticSimilarityResult], threshold: float = 0.8) -> float:
|
||||
|
||||
Reference in new issue
Block a user