forked from ChelseaKR/cairn
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcalibration-probes.example.toml
More file actions
53 lines (45 loc) · 1.73 KB
/
Copy pathcalibration-probes.example.toml
File metadata and controls
53 lines (45 loc) · 1.73 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
# Example probe file for `cairn calibrate`, written against the bundled
# synthetic demo corpus. Copy this shape for a real corpus: real questions a
# person who has read *that* corpus expects answered, and real questions —
# plausible, not adversarial nonsense — it should refuse.
#
# Fields:
# question the probe, quoted exactly as someone would ask it
# behavior "answer" or "refuse": what a correctly calibrated threshold
# should do with it
# lang optional; omit to let Cairn detect the language the same way
# `cairn ask` does
#
# A probe set this small (eight items) is illustrative, not sufficient — see
# `tests/probes.py` for the shape a real calibration measurement takes: 15
# in-corpus probes and 20 off-topic probes, each covering different facts,
# phrasings, and languages, because a threshold measured against four
# questions is a threshold measured against four questions.
[[probe]]
question = "How much is the monthly grocery allowance for one person?"
behavior = "answer"
[[probe]]
question = "How much unpaid rent does the housing relief grant cover?"
behavior = "answer"
[[probe]]
question = "Cuanto recibe un hogar de una persona del subsidio de alimentos?"
behavior = "answer"
lang = "es"
[[probe]]
question = "كم تحصل الأسرة المكونة من شخص واحد شهريًا من مخصص البقالة؟"
behavior = "answer"
lang = "ar"
[[probe]]
question = "Can you help me renew my drivers license?"
behavior = "refuse"
[[probe]]
question = "What vaccinations does my dog need?"
behavior = "refuse"
[[probe]]
question = "Cual es la capital de Francia?"
behavior = "refuse"
lang = "es"
[[probe]]
question = "أين أسجل للتصويت؟"
behavior = "refuse"
lang = "ar"