-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathragopt.yaml
More file actions
50 lines (50 loc) · 1.27 KB
/
ragopt.yaml
File metadata and controls
50 lines (50 loc) · 1.27 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
{
"datasets": {
"path": "datasets/rag_qa_small.jsonl",
"sample_size": 3
},
"candidates": [
{
"name": "baseline-lite",
"provider": "mock",
"model": "mock-lite",
"prompt_template": "Answer with one sentence and include citation [1]. Question: {question}",
"retriever_top_k": 1,
"chunking_strategy": "fixed",
"params": {"seed": 42, "style": "brief"}
},
{
"name": "candidate-detailed",
"provider": "mock",
"model": "mock-pro",
"prompt_template": "Answer accurately with citation [1]. Question: {question}",
"retriever_top_k": 2,
"chunking_strategy": "fixed",
"params": {"seed": 42, "style": "detailed"}
}
],
"metrics": {
"enabled": ["quality", "groundedness", "citation", "latency", "cost"]
},
"policy": {
"min_quality": 0.05,
"max_latency_ms": 900,
"max_cost_per_query": 0.01,
"max_quality_drop": 0.05,
"weights": {
"quality": 0.45,
"groundedness": 0.25,
"citation": 0.15,
"latency": 0.10,
"cost": 0.05
}
},
"ci": {
"mode": "fail",
"post_pr_comment": true
},
"pricing": {
"mock-lite": {"input_per_1k": 0.001, "output_per_1k": 0.002},
"mock-pro": {"input_per_1k": 0.002, "output_per_1k": 0.004}
}
}