-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
60 lines (51 loc) 路 1.44 KB
/
Copy pathconfig.example.yaml
File metadata and controls
60 lines (51 loc) 路 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Red Team AI Benchmark Configuration Example
# Copy to config.yaml and customize
# LLM Provider Settings
provider:
name: ollama # ollama, lmstudio, openrouter
endpoint: http://localhost:11434
# api_key_env: OPENROUTER_API_KEY # For OpenRouter
# default_model: llama3.1:8b
# Scoring System Configuration
scoring:
method: keyword # keyword, semantic, hybrid, llm_judge
# Semantic scoring settings (requires sentence-transformers)
semantic_model: Alibaba-NLP/gte-large-en-v1.5
semantic_weight: 0.7
keyword_weight: 0.3
# LLM Judge settings (requires OpenRouter API key)
llm_judge_model: anthropic/haiku-4.5
# Hybrid scoring gray zone (when to use LLM for uncertain cases)
gray_zone_low: 0.30
gray_zone_high: 0.70
use_llm_in_gray_zone: true
# Export Settings
export:
formats:
- json
- csv
output_dir: ./results
include_response: true
# Prompt Optimization (for censored responses)
optimization:
enabled: false
optimizer_model: llama3.3:70b
# optimizer_endpoint: http://localhost:11434 # Optional custom endpoint
max_iterations: 3
strategies:
- role_playing
- technical
- few_shot
- cve_framing
# Benchmark Settings
questions_file: benchmark.json
answers_file: answers_all.txt
rate_limit_delay: 1.5
max_tokens: 1024
temperature: 0.2
# Langfuse Observability
langfuse:
enabled: false # Set to true to enable tracing
# secret_key: sk-lf-xxx
# public_key: pk-lf-xxx
host: http://localhost:3000