Dataset Viewer
Auto-converted to Parquet Duplicate
model
stringclasses
2 values
language
stringclasses
2 values
dependency
stringclasses
2 values
item_id
stringclasses
32 values
granularity
int64
1
8
fields_correct
int64
0
8
n_fields
int64
8
8
field_accuracy
float64
0
1
all_correct
int64
0
1
step_correct
int64
0
4
step_total
int64
0
4
parse_failures
int64
0
0
calls
int64
1
8
prompt_chars
int64
976
6.94k
output_tokens
int64
68
263
seconds_total
float64
2.7
34.9
seconds_ideal_parallel
float64
0.92
34.9
llama3.1:8b
english
chained
chn-01
1
8
8
1
1
4
4
0
1
1,071
71
9.1754
9.1754
llama3.1:8b
english
chained
chn-01
2
8
8
1
1
4
4
0
2
1,764
74
9.7475
9.7475
llama3.1:8b
english
chained
chn-01
4
4
8
0.5
0
1
1
0
4
3,148
80
14.6749
14.6749
llama3.1:8b
english
chained
chn-01
8
7
8
0.875
0
2
3
0
8
6,182
153
31.4313
31.4313
llama3.1:8b
english
chained
chn-02
1
8
8
1
1
4
4
0
1
978
72
7.3615
7.3615
llama3.1:8b
english
chained
chn-02
2
4
8
0.5
0
1
1
0
2
1,579
74
8.3908
8.3908
llama3.1:8b
english
chained
chn-02
4
4
8
0.5
0
1
1
0
4
2,778
80
10.7376
10.7376
llama3.1:8b
english
chained
chn-02
8
4
8
0.5
0
1
1
0
8
5,342
135
19.2951
19.2951
llama3.1:8b
english
chained
chn-03
1
8
8
1
1
4
4
0
1
1,073
72
6.8921
6.8921
llama3.1:8b
english
chained
chn-03
2
4
8
0.5
0
1
1
0
2
1,770
75
8.3989
8.3989
llama3.1:8b
english
chained
chn-03
4
4
8
0.5
0
1
1
0
4
3,161
81
11.1765
11.1765
llama3.1:8b
english
chained
chn-03
8
4
8
0.5
0
1
1
0
8
6,739
172
28.1618
28.1618
llama3.1:8b
english
chained
chn-04
1
8
8
1
1
4
4
0
1
976
72
7.7998
7.7998
llama3.1:8b
english
chained
chn-04
2
4
8
0.5
0
1
1
0
2
1,574
74
8.7457
8.7457
llama3.1:8b
english
chained
chn-04
4
4
8
0.5
0
1
1
0
4
2,768
80
13.5496
13.5496
llama3.1:8b
english
chained
chn-04
8
4
8
0.5
0
1
1
0
8
5,172
117
18.5019
18.5019
llama3.1:8b
english
chained
chn-05
1
8
8
1
1
4
4
0
1
1,073
72
7.2193
7.2193
llama3.1:8b
english
chained
chn-05
2
5
8
0.625
0
1
2
0
2
1,768
75
9.1007
9.1007
llama3.1:8b
english
chained
chn-05
4
4
8
0.5
0
1
1
0
4
3,154
80
11.3499
11.3499
llama3.1:8b
english
chained
chn-05
8
5
8
0.625
0
1
2
0
8
6,200
154
24.7267
24.7267
llama3.1:8b
english
chained
chn-06
1
8
8
1
1
4
4
0
1
977
72
6.8074
6.8074
llama3.1:8b
english
chained
chn-06
2
4
8
0.5
0
1
1
0
2
1,577
75
8.2268
8.2268
llama3.1:8b
english
chained
chn-06
4
4
8
0.5
0
1
1
0
4
2,774
81
10.8793
10.8793
llama3.1:8b
english
chained
chn-06
8
4
8
0.5
0
1
1
0
8
5,183
169
22.7381
22.7381
llama3.1:8b
english
chained
chn-07
1
8
8
1
1
4
4
0
1
1,074
72
7.3584
7.3584
llama3.1:8b
english
chained
chn-07
2
8
8
1
1
4
4
0
2
1,770
75
8.9651
8.9651
llama3.1:8b
english
chained
chn-07
4
4
8
0.5
0
1
1
0
4
3,159
81
11.9511
11.9511
llama3.1:8b
english
chained
chn-07
8
8
8
1
1
4
4
0
8
6,129
135
24.5609
24.5609
llama3.1:8b
english
chained
chn-08
1
8
8
1
1
4
4
0
1
977
72
7.5193
7.5193
llama3.1:8b
english
chained
chn-08
2
7
8
0.875
0
3
3
0
2
1,575
74
8.531
8.531
llama3.1:8b
english
chained
chn-08
4
7
8
0.875
0
3
3
0
4
2,769
80
10.7845
10.7845
llama3.1:8b
english
chained
chn-08
8
4
8
0.5
0
1
1
0
8
5,488
118
19.7511
19.7511
llama3.1:8b
english
chained
chn-09
1
8
8
1
1
4
4
0
1
1,074
72
7.0919
7.0919
llama3.1:8b
english
chained
chn-09
2
4
8
0.5
0
1
1
0
2
1,772
75
8.9788
8.9788
llama3.1:8b
english
chained
chn-09
4
4
8
0.5
0
1
1
0
4
3,165
81
12.0488
12.0488
llama3.1:8b
english
chained
chn-09
8
7
8
0.875
0
3
4
0
8
6,685
216
33.4415
33.4415
llama3.1:8b
english
chained
chn-10
1
8
8
1
1
4
4
0
1
978
71
7.6531
7.6531
llama3.1:8b
english
chained
chn-10
2
4
8
0.5
0
1
1
0
2
1,579
74
8.2587
8.2587
llama3.1:8b
english
chained
chn-10
4
4
8
0.5
0
1
1
0
4
2,780
80
11.2321
11.2321
llama3.1:8b
english
chained
chn-10
8
4
8
0.5
0
1
1
0
8
5,511
118
20.5175
20.5175
llama3.1:8b
english
chained
chn-11
1
8
8
1
1
4
4
0
1
1,072
71
7.6484
7.6484
llama3.1:8b
english
chained
chn-11
2
5
8
0.625
0
1
2
0
2
1,766
74
8.8144
8.8144
llama3.1:8b
english
chained
chn-11
4
4
8
0.5
0
1
1
0
4
3,152
80
11.8716
11.8716
llama3.1:8b
english
chained
chn-11
8
8
8
1
1
4
4
0
8
6,610
168
27.9941
27.9941
llama3.1:8b
english
chained
chn-12
1
8
8
1
1
4
4
0
1
976
71
7.0854
7.0854
llama3.1:8b
english
chained
chn-12
2
4
8
0.5
0
1
1
0
2
1,574
74
8.4802
8.4802
llama3.1:8b
english
chained
chn-12
4
4
8
0.5
0
1
1
0
4
2,768
80
11.2756
11.2756
llama3.1:8b
english
chained
chn-12
8
4
8
0.5
0
1
1
0
8
5,167
101
19.5961
19.5961
llama3.1:8b
english
chained
chn-13
1
8
8
1
1
4
4
0
1
1,074
72
8.9848
8.9848
llama3.1:8b
english
chained
chn-13
2
5
8
0.625
0
1
2
0
2
1,772
75
9.4713
9.4713
llama3.1:8b
english
chained
chn-13
4
4
8
0.5
0
1
1
0
4
3,166
81
13.6162
13.6162
llama3.1:8b
english
chained
chn-13
8
4
8
0.5
0
1
1
0
8
6,644
216
34.9205
34.9205
llama3.1:8b
english
chained
chn-14
1
8
8
1
1
4
4
0
1
977
72
8.4817
8.4817
llama3.1:8b
english
chained
chn-14
2
4
8
0.5
0
1
1
0
2
1,578
82
10.7736
10.7736
llama3.1:8b
english
chained
chn-14
4
4
8
0.5
0
1
1
0
4
2,776
84
12.4943
12.4943
llama3.1:8b
english
chained
chn-14
8
4
8
0.5
0
1
1
0
8
5,190
102
19.4155
19.4155
llama3.1:8b
english
chained
chn-15
1
8
8
1
1
4
4
0
1
1,074
71
8.3296
8.3296
llama3.1:8b
english
chained
chn-15
2
8
8
1
1
4
4
0
2
1,771
74
10.2704
10.2704
llama3.1:8b
english
chained
chn-15
4
4
8
0.5
0
1
1
0
4
3,163
80
13.3028
13.3028
llama3.1:8b
english
chained
chn-15
8
5
8
0.625
0
1
2
0
8
6,157
169
29.0973
29.0973
llama3.1:8b
english
chained
chn-16
1
8
8
1
1
4
4
0
1
978
72
8.2236
8.2236
llama3.1:8b
english
chained
chn-16
2
4
8
0.5
0
1
1
0
2
1,577
74
10.5216
10.5216
llama3.1:8b
english
chained
chn-16
4
4
8
0.5
0
1
1
0
4
2,774
80
11.6987
11.6987
llama3.1:8b
english
chained
chn-16
8
4
8
0.5
0
1
1
0
8
5,178
151
25.037
25.037
llama3.1:8b
english
independent
ind-01
1
8
8
1
1
0
0
0
1
1,144
69
9.5865
9.5865
llama3.1:8b
english
independent
ind-01
2
8
8
1
1
0
0
0
2
1,794
72
5.5877
3.0657
llama3.1:8b
english
independent
ind-01
4
8
8
1
1
0
0
0
4
3,094
78
8.0382
2.1357
llama3.1:8b
english
independent
ind-01
8
8
8
1
1
0
0
0
8
5,694
146
15.7193
3.9849
llama3.1:8b
english
independent
ind-02
1
8
8
1
1
0
0
0
1
1,109
69
4.099
4.099
llama3.1:8b
english
independent
ind-02
2
8
8
1
1
0
0
0
2
1,724
72
4.906
2.6081
llama3.1:8b
english
independent
ind-02
4
8
8
1
1
0
0
0
4
2,954
78
6.6967
1.8594
llama3.1:8b
english
independent
ind-02
8
8
8
1
1
0
0
0
8
5,414
136
12.8607
2.5079
llama3.1:8b
english
independent
ind-03
1
8
8
1
1
0
0
0
1
1,138
68
4.1493
4.1493
llama3.1:8b
english
independent
ind-03
2
8
8
1
1
0
0
0
2
1,782
71
5.072
2.6787
llama3.1:8b
english
independent
ind-03
4
8
8
1
1
0
0
0
4
3,070
77
7.0786
1.9205
llama3.1:8b
english
independent
ind-03
8
8
8
1
1
0
0
0
8
5,646
150
13.7677
3.6425
llama3.1:8b
english
independent
ind-04
1
8
8
1
1
0
0
0
1
1,113
70
4.3306
4.3306
llama3.1:8b
english
independent
ind-04
2
8
8
1
1
0
0
0
2
1,732
73
5.2264
2.7445
llama3.1:8b
english
independent
ind-04
4
8
8
1
1
0
0
0
4
2,970
79
7.2866
1.9969
llama3.1:8b
english
independent
ind-04
8
8
8
1
1
0
0
0
8
5,446
162
14.8922
2.703
llama3.1:8b
english
independent
ind-05
1
8
8
1
1
0
0
0
1
1,140
69
4.2216
4.2216
llama3.1:8b
english
independent
ind-05
2
8
8
1
1
0
0
0
2
1,786
72
5.4921
2.8545
llama3.1:8b
english
independent
ind-05
4
8
8
1
1
0
0
0
4
3,078
78
7.5576
2.059
llama3.1:8b
english
independent
ind-05
8
8
8
1
1
0
0
0
8
5,662
150
14.8882
3.9463
llama3.1:8b
english
independent
ind-06
1
8
8
1
1
0
0
0
1
1,112
70
4.9271
4.9271
llama3.1:8b
english
independent
ind-06
2
8
8
1
1
0
0
0
2
1,730
73
6.0829
3.1778
llama3.1:8b
english
independent
ind-06
4
8
8
1
1
0
0
0
4
2,966
79
8.4227
2.2836
llama3.1:8b
english
independent
ind-06
8
8
8
1
1
0
0
0
8
5,438
174
18.6908
3.96
llama3.1:8b
english
independent
ind-07
1
8
8
1
1
0
0
0
1
1,142
69
5.4512
5.4512
llama3.1:8b
english
independent
ind-07
2
8
8
1
1
0
0
0
2
1,790
72
6.6441
3.5004
llama3.1:8b
english
independent
ind-07
4
8
8
1
1
0
0
0
4
3,086
78
9.1797
2.5476
llama3.1:8b
english
independent
ind-07
8
8
8
1
1
0
0
0
8
5,678
105
15.511
2.2566
llama3.1:8b
english
independent
ind-08
1
8
8
1
1
0
0
0
1
1,108
70
5.9288
5.9288
llama3.1:8b
english
independent
ind-08
2
8
8
1
1
0
0
0
2
1,722
73
7.6233
4.3727
llama3.1:8b
english
independent
ind-08
4
8
8
1
1
0
0
0
4
2,950
79
10.3158
2.7442
llama3.1:8b
english
independent
ind-08
8
8
8
1
1
0
0
0
8
5,406
137
17.9787
3.4761
llama3.1:8b
english
independent
ind-09
1
8
8
1
1
0
0
0
1
1,144
70
5.7174
5.7174
llama3.1:8b
english
independent
ind-09
2
8
8
1
1
0
0
0
2
1,794
73
6.9798
3.6838
llama3.1:8b
english
independent
ind-09
4
8
8
1
1
0
0
0
4
3,094
79
9.5698
2.5669
llama3.1:8b
english
independent
ind-09
8
8
8
1
1
0
0
0
8
5,694
144
18.0555
5.0309
End of preview. Expand in Data Studio

Clinic Task Decomposition: English and Roman Urdu

What this is. How finely should a small local language model split a task? Each of 32 invented physiotherapy clinic cases is written in English and in Roman Urdu with the same facts, and an 8-field clinic form is filled with 1, 2, 4 or 8 separate model calls. Half of the forms have independent fields; the other half form a billing chain where later fields use earlier ones. A physiotherapist reviewed every case.

How it was made. 16 independent and 16 chained cases, generated from a fixed seed. Notes also contain distracting values (a relative's age, an old fee) that the model must ignore. Two local models (llama3.1:8b and qwen2.5:3b; Ollama, temperature 0, seed 42, JSON mode) filled every form at every split: 1,920 model calls and 512 finished forms. Answers are merged by code, not by a model. No real patient data.

Main results (mean field accuracy).

Sub-calls per form 1 2 4 8
Independent fields 0.840 0.832 0.818 0.811
Chained (billing) fields 0.869 0.678 0.479 0.549
English notes 0.963 0.828 0.734 0.775
Roman Urdu notes 0.746 0.682 0.562 0.584

Splitting barely matters for independent fields, but it hurts chained fields badly: an early mistake travels to later fields. One call was also the fastest (5.0 s per form against 15.8 s with 8 calls). Roman Urdu notes are 15 to 22 points harder at every split.

Files

File Rows Contents
tasks.csv 32 each case: English and Roman Urdu note, independent or chained, and the correct form values
model_calls.csv 1,920 every model call: fields asked, prompt size, raw reply, parsed reply, tokens and seconds
per_form.csv 512 every finished form: field accuracy, all-correct, chained-step accuracy, parse failures, calls and time
clinician_review.csv 32 physiotherapist review (Maryam Khalid): both languages state the same facts and all expected values are correct in all 32 cases
results.json 1 aggregated results with bootstrap 95% intervals
run_meta.json 1 model digests, Ollama version and options

Limitations. 32 invented cases; two small models; one run per setting; Roman Urdu written by the author. The physiotherapist judged the distracting line in the independent notes unrealistic (it is there on purpose). "Ideal parallel" time is derived, not measured.

Load

from datasets import load_dataset
ds = load_dataset("MHkhan50/clinic-task-decomposition", "per_form")

Licence

This dataset is released under Creative Commons Attribution 4.0 International (CC BY 4.0). You may share and adapt it for any purpose, including commercial use, as long as you credit the authors and link to this dataset. Cases are invented by the authors; replies were generated by llama3.1:8b and qwen2.5:3b, whose own licences may also apply to that text.

Links

Authors

Muzammal Hussain (ORCID 0009-0001-2570-5686) and Maryam Khalid, physiotherapist (ORCID 0009-0004-3298-5876). Contact: muzammal@masmatixinnovations.co.uk

Citation

@misc{hussain2026decomposition,
  author = {Muzammal Hussain and Maryam Khalid},
  title  = {Clinic Task Decomposition: English and Roman Urdu},
  year   = {2026},
  doi    = {10.5281/zenodo.24167596}
}

tasks.csv

Column Description
item_id Case identifier (ind-01 to ind-16 independent, chn-01 to chn-16 chained)
dependency independent or chained
template Note template used to generate the case
note_en Clinic note in English
note_ru The same note in Roman Urdu
truth Correct values for the 8 form fields (JSON)

model_calls.csv

Column Description
model Local model (Ollama tag)
language english or roman_urdu
dependency independent or chained
item_id Case identifier, links to tasks.csv
granularity Number of calls the form was split into (1, 2, 4 or 8)
chunk_index Which call of the form this is (0 = first)
fields Form fields asked in this call (JSON list)
known Values from earlier calls given to this call (chained forms; JSON)
prompt_chars Prompt length in characters
prompt_tokens Prompt length in tokens
response Raw model reply
parsed Reply parsed as JSON
output_tokens Tokens generated
seconds Time for this call, in seconds

per_form.csv

Column Description
model Local model
language english or roman_urdu
dependency independent or chained
item_id Case identifier
granularity Number of calls (1, 2, 4 or 8)
fields_correct Form fields filled correctly (of 8)
n_fields Fields in the form (8)
field_accuracy fields_correct / n_fields
all_correct 1 if every field is correct
step_correct Chained forms: computed fields right when their inputs were right
step_total Chained forms: computed fields checked
parse_failures Replies that were not valid JSON
calls Model calls used
prompt_chars Total prompt characters over all calls
output_tokens Total tokens generated
seconds_total Total time, calls in sequence
seconds_ideal_parallel Derived time if independent calls ran in parallel

clinician_review.csv

Column Description
Code Case identifier, links to tasks.csv
Type Clinical (independent) or Billing (chained)
English note Note in English
Roman Urdu note Note in Roman Urdu
Values the form should contain Expected form values shown to the reviewer
Realistic note? (Y/N) Reviewer: realistic physiotherapy note
Both languages state the same facts? (Y/N) Reviewer: same facts in both languages
Expected values correct? (Y/N) Reviewer: expected values correct
Billing only: is "fee per session" clear without the discount? (Y/N) Reviewer: billing wording clear
Comment Reviewer's comment
Downloads last month
61