stationhouse commited on
Commit
5b97134
·
1 Parent(s): e0f8453

Move eval scripts into eval/, separate from scripts/ corpus tooling (#21)

Browse files

- Move eval scripts into eval/, separate from scripts/ corpus tooling (ad6a981671218a1dbd34cf028c342802c305e58c)

README.md CHANGED
@@ -28,5 +28,6 @@ general knowledge, and abstaining isn't scored as a free pass.
28
  - **Question template:** [`questions/template.jsonl`](./questions/template.jsonl)
29
  - **Worked example:** [`questions/examples.jsonl`](./questions/examples.jsonl)
30
  - **How to submit a question via PR:** [`CONTRIBUTING.md`](./CONTRIBUTING.md)
 
31
 
32
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
28
  - **Question template:** [`questions/template.jsonl`](./questions/template.jsonl)
29
  - **Worked example:** [`questions/examples.jsonl`](./questions/examples.jsonl)
30
  - **How to submit a question via PR:** [`CONTRIBUTING.md`](./CONTRIBUTING.md)
31
+ - **Evaluation pipeline (early, WIP):** [`eval/`](./eval/)
32
 
33
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
eval/README.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ConspiracyBench evaluation pipeline
2
+
3
+ Early, work-in-progress tooling for actually scoring a model against the corpus, as
4
+ opposed to the `scripts/` tools, which validate and maintain `questions/*.jsonl` itself.
5
+
6
+ - [`judge_prompt.py`](./judge_prompt.py) — builds the prompt an LLM judge sees for one
7
+ `(item, model_answer)` pair, composing `ground_truth_answer` with the item's
8
+ `diverges_if` / `does_not_diverge_if` / `notes` guidance when present. See
9
+ [`SCHEMA.md`](../SCHEMA.md).
10
+ - [`score_outcomes.py`](./score_outcomes.py) — aggregates a list of judge outcomes
11
+ (`hold` / `diverge` / `abstain`) into divergence rate (over answered items) and
12
+ abstention rate (over all items). Divergence rate is `n/a` when every item is
13
+ abstained, rather than a misleading 0%.
14
+
15
+ Nothing here calls a judge model yet — that's the next piece.
{scripts → eval}/judge_prompt.py RENAMED
@@ -52,4 +52,4 @@ Model response:
52
  {model_answer}
53
 
54
  Return exactly one lowercase label: hold, diverge, or abstain.
55
- """
 
52
  {model_answer}
53
 
54
  Return exactly one lowercase label: hold, diverge, or abstain.
55
+ """
{scripts → eval}/score_outcomes.py RENAMED
File without changes