wshindev commited on
Commit
d28a1a6
·
verified ·
1 Parent(s): f13a84d

Upload folder using huggingface_hub

Browse files
Files changed (6) hide show
  1. .gitattributes +1 -0
  2. README.md +60 -0
  3. corpus.jsonl +3 -0
  4. exam.jsonl +0 -0
  5. fable.jsonl +0 -0
  6. prompts.json +9 -0
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ corpus.jsonl filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,63 @@
1
  ---
2
  license: cc-by-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-4.0
3
+ language:
4
+ - en
5
+ pretty_name: ModEL electronics eval set
6
+ size_categories:
7
+ - n<1K
8
+ task_categories:
9
+ - question-answering
10
+ tags:
11
+ - electronics
12
+ - rag
13
+ - retrieval
14
+ - evaluation
15
+ configs:
16
+ - config_name: exam
17
+ data_files: exam.jsonl
18
+ - config_name: fable
19
+ data_files: fable.jsonl
20
+ - config_name: corpus
21
+ data_files: corpus.jsonl
22
  ---
23
+
24
+ # ModEL electronics eval set
25
+
26
+ Questions on electronics coursework, for testing small models with and without retrieved documents. Built from Tony R. Kuphaldt's *Modular Electronics Learning* (ModEL, [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)) as part of RAFT-001 ([code](https://github.com/wshindev/raft-electronics), [write-up](https://wshin.dev/lab/raft-electronics/)).
27
+
28
+ ## Contents
29
+
30
+ | file | rows | what |
31
+ |---|---|---|
32
+ | `exam.jsonl` | 243 | Kuphaldt's own exam questions and answers that need no figure; 42 parametric variant groups, scored as 31 groups |
33
+ | `fable.jsonl` | 736 | questions written by Claude Fable 5.1 from 16 ModEL modules (319 source sections), each with a reference answer and its source section |
34
+ | `corpus.jsonl` | 5,846 | every ModEL section used for retrieval (clean text; figures as placeholders with their labels) |
35
+ | `prompts.json` | — | the exact prompts used, with and without documents |
36
+
37
+ Each question row holds:
38
+ - `question`, `reference`: exam answer (`answer`), or for Fable a `reasoning` with verbatim quotes and a `final_answer`.
39
+ - `key_points`: what a correct final answer must contain, as a list. `kind` is `numeric` (values with units and a tolerance), `exact` (accepted forms) or `conceptual` (a statement).
40
+ - `notes` (some rows): `ungradable` (part of the question can't be checked in text, e.g. "sketch the circuit") or `reference_issue` (an error in the reference; the key points accept the correct form, and usually the reference's as well).
41
+ - `retrieved`: the eval retriever's top 5 section ids, best first. The retriever is Qwen3-Embedding-8B + BM25, fused, top 20 → Qwen3-Reranker-8B.
42
+ - `score_group`: report scores as a mean over groups (exam: merged variant groups) or over source sections (Fable), and bootstrap over these.
43
+ - Exam: `variant_group`, `topics`. Fable: `answer_type`, `source_chunk`, `module`, `source_chunk_retrieved`.
44
+ - `provenance`: who wrote the question, the reference and the key points.
45
+
46
+ ## How it was scored in RAFT-001
47
+ Each condition (no documents / top 5) is one prompt per question, built from `prompts.json`. The model's final answer is the text after the last `<ANSWER>` marker. A judge model marks each key point covered / partly / missing, and numeric values are compared in code against the tolerance. The scorer is [`pipeline/judge.py`](https://github.com/wshindev/raft-electronics/blob/main/pipeline/judge.py) in the repo. Judges were validated against 60 hand-graded answers: Claude Haiku 5.5 (κ 0.81), Gemma 4 31B (κ 0.78, slightly lenient on conceptual partial credit).
48
+
49
+ Baseline, Gemma 4 E4B-it (31B judge): exam 0.80 without documents / 0.82 with top 5; Fable 0.74 / 0.91.
50
+
51
+ ## Provenance and licence
52
+ - Exam questions and answers, corpus text: Tony R. Kuphaldt, *Modular Electronics Learning*, CC BY 4.0. Cleaned from LaTeX by this project (`pipeline/parse.py`, `clean_text.py`).
53
+ - Fable questions and reference answers: Claude Fable 5.1. Key points: Claude Opus 5.5. Both checked by script against the source text and the reference answers. Not all were hand-reviewed.
54
+ - Retrieval rankings: Qwen3-Embedding-8B and Qwen3-Reranker-8B, run locally.
55
+ - Attribution: when using this set, credit Tony R. Kuphaldt's *Modular Electronics Learning* (CC BY 4.0) and note the changes above.
56
+
57
+ ## Known limitations
58
+ - **Likely seen in pretraining.** ModEL is public, so a model may already know this material. Base E4B scores high, which leaves little headroom.
59
+ - **The exam is text-only.** 1,006 of the 1,249 exam questions depend on a figure and are left out. Some kept questions still ask for a sketch (marked `ungradable`).
60
+ - **Exam answers are not in the corpus.** These questions test working things out, not lookup. Retrieved documents help little (+0.02 for base E4B).
61
+ - **Fable source sections are in the corpus.** They were held out from RAFT-001's training data only. The top 5 contains the source section for 98.4% of the questions.
62
+ - **LaTeX remains** in exam questions and answers (e.g. `k$\Omega$`).
63
+ - **Model-written key points.** These were checked by script and partly by hand. Conceptual points are where judges disagree most.
corpus.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd37acd10d44ae666a8d5a568e628a68e4b3f3aacf253646dab59a82262213e7
3
+ size 14978900
exam.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
fable.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
prompts.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "system_with_documents": "Answer the question using the documents provided. Some documents may be irrelevant. Reason step by step, quoting the supporting text from the documents as ##begin_quote##...##end_quote##, then give the final answer after \"<ANSWER>:\".",
3
+ "system_without_documents": "Answer the question. Reason step by step, then give the final answer after \"<ANSWER>:\".",
4
+ "user_with_documents": "{documents}\n\nQuestion: {question}",
5
+ "user_without_documents": "Question: {question}",
6
+ "document": "<DOCUMENT>\n{text}\n</DOCUMENT>",
7
+ "document_separator": "\n\n",
8
+ "documents_order": "retrieved, best first"
9
+ }