mirror of
https://github.com/lightbroker/llmsecops-research.git
synced 2026-08-16 00:00:29 +02:00
updates for RAG + CoT tests
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ MAX_REQUEST_SAMPLE_COUNT = 1
|
||||
MAX_RESPONSE_SAMPLE_COUNT = 50
|
||||
|
||||
# prompt_injection_sample_file_path = './tests/integration/samples.prompt_injection_true_positive.json'
|
||||
INJECTION_PROMPT_SAMPLE_FILE_PATH = './tests/security/tests/results/01_garak_no_guidelines/process_random_requests.output.150_count.json'
|
||||
INJECTION_PROMPT_SAMPLE_FILE_PATH = './tests/security/tests/results/01_garak_no_guidelines/process_random_requests.output.100_count.json'
|
||||
PROMPT_INJECTION_PROMPTS_AND_RESPONSES_SAMPLE_FILE_PATH = './tests/security/tests/results/01_garak_no_guidelines/failed_entries.json'
|
||||
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@ def run_prompt_analysis_test(
|
||||
"""
|
||||
semantic_similarity_service.use_comparison_texts(comparison_texts)
|
||||
results = []
|
||||
print(f'using {len(prompts)} prompts for testing...')
|
||||
|
||||
for i, prompt in enumerate(prompts[:max_prompts], 1):
|
||||
# Configure the service using the provided configurator function
|
||||
|
||||
+3272
File diff suppressed because one or more lines are too long
+3272
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user