The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: CastError
Message: Couldn't cast
name: string
aisle: string
measure: string
pantry: bool
expected: null
countNoun: string
pack: struct<unit: string, size: int64>
child 0, unit: string
child 1, size: int64
note: string
from: list<item: struct<dataset: string, recipe: string, index: int64, prep: string>>
child 0, item: struct<dataset: string, recipe: string, index: int64, prep: string>
child 0, dataset: string
child 1, recipe: string
child 2, index: int64
child 3, prep: string
written: struct<quantity: double, unit: string, item: string>
child 0, quantity: double
child 1, unit: string
child 2, item: string
to
{'written': {'quantity': Value('float64'), 'unit': Value('string'), 'item': Value('string')}, 'from': List({'dataset': Value('string'), 'recipe': Value('string'), 'index': Value('int64'), 'prep': Value('string')}), 'expected': List(Json(decode=True)), 'note': Value('string')}
because column names don't match
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1827, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
name: string
aisle: string
measure: string
pantry: bool
expected: null
countNoun: string
pack: struct<unit: string, size: int64>
child 0, unit: string
child 1, size: int64
note: string
from: list<item: struct<dataset: string, recipe: string, index: int64, prep: string>>
child 0, item: struct<dataset: string, recipe: string, index: int64, prep: string>
child 0, dataset: string
child 1, recipe: string
child 2, index: int64
child 3, prep: string
written: struct<quantity: double, unit: string, item: string>
child 0, quantity: double
child 1, unit: string
child 2, item: string
to
{'written': {'quantity': Value('float64'), 'unit': Value('string'), 'item': Value('string')}, 'from': List({'dataset': Value('string'), 'recipe': Value('string'), 'index': Value('int64'), 'prep': Value('string')}), 'expected': List(Json(decode=True)), 'note': Value('string')}
because column names don't match
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1879, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
written dict | from list | expected list | note string |
|---|---|---|---|
{
"quantity": 4,
"unit": "",
"item": "pork sausages"
} | [
{
"dataset": "sample",
"recipe": "full-english-breakfast",
"index": 0,
"prep": ""
}
] | [
{
"product": "pork sausages",
"quantity": 4,
"approximate": false
}
] | null |
{
"quantity": 4,
"unit": "rasher",
"item": "back bacon"
} | [
{
"dataset": "sample",
"recipe": "full-english-breakfast",
"index": 1,
"prep": ""
}
] | [
{
"product": "back bacon",
"quantity": 4,
"approximate": false
}
] | null |
{
"quantity": 2,
"unit": "",
"item": "eggs"
} | [
{
"dataset": "sample",
"recipe": "full-english-breakfast",
"index": 2,
"prep": ""
},
{
"dataset": "sample",
"recipe": "sticky-toffee-pudding",
"index": 4,
"prep": ""
},
{
"dataset": "photos",
"recipe": "hw-apple-cake",
"index": 1,
"prep": "large"
}
] | [
{
"product": "eggs",
"quantity": 2,
"approximate": false
}
] | null |
{
"quantity": 1,
"unit": "tin",
"item": "baked beans"
} | [
{
"dataset": "sample",
"recipe": "full-english-breakfast",
"index": 3,
"prep": ""
},
{
"dataset": "sample",
"recipe": "jacket-potato-with-cheese-and-beans",
"index": 1,
"prep": ""
}
] | [
{
"product": "baked beans",
"quantity": 415,
"approximate": true
}
] | null |
{
"quantity": 2,
"unit": "",
"item": "tomatoes"
} | [
{
"dataset": "sample",
"recipe": "full-english-breakfast",
"index": 4,
"prep": "halved"
}
] | [
{
"product": "tomatoes",
"quantity": 2,
"approximate": false
}
] | null |
{
"quantity": 100,
"unit": "g",
"item": "mushrooms"
} | [
{
"dataset": "sample",
"recipe": "full-english-breakfast",
"index": 5,
"prep": ""
}
] | [
{
"product": "mushrooms",
"quantity": 100,
"approximate": false
}
] | null |
{
"quantity": 2,
"unit": "slice",
"item": "bread"
} | [
{
"dataset": "sample",
"recipe": "full-english-breakfast",
"index": 6,
"prep": ""
},
{
"dataset": "sample",
"recipe": "scrambled-eggs-on-toast",
"index": 3,
"prep": ""
},
{
"dataset": "sample",
"recipe": "cheese-and-ham-toastie",
"index": 0,
"prep": ""
}
] | [
{
"product": "bread",
"quantity": 2,
"approximate": false
}
] | null |
{
"quantity": 100,
"unit": "g",
"item": "porridge oats"
} | [
{
"dataset": "sample",
"recipe": "porridge-with-berries-and-honey",
"index": 0,
"prep": ""
}
] | [
{
"product": "porridge oats",
"quantity": 100,
"approximate": false
}
] | null |
{
"quantity": 500,
"unit": "ml",
"item": "milk"
} | [
{
"dataset": "sample",
"recipe": "porridge-with-berries-and-honey",
"index": 1,
"prep": ""
}
] | [
{
"product": "milk",
"quantity": 500,
"approximate": false
}
] | null |
{
"quantity": 100,
"unit": "g",
"item": "mixed berries"
} | [
{
"dataset": "sample",
"recipe": "porridge-with-berries-and-honey",
"index": 2,
"prep": ""
}
] | [
{
"product": "mixed berries",
"quantity": 100,
"approximate": false
}
] | null |
{
"quantity": 2,
"unit": "tbsp",
"item": "honey"
} | [
{
"dataset": "sample",
"recipe": "porridge-with-berries-and-honey",
"index": 3,
"prep": ""
}
] | [
{
"product": "honey",
"quantity": 6,
"approximate": false
}
] | null |
{
"quantity": 4,
"unit": "",
"item": "eggs"
} | [
{
"dataset": "sample",
"recipe": "scrambled-eggs-on-toast",
"index": 0,
"prep": ""
}
] | [
{
"product": "eggs",
"quantity": 4,
"approximate": false
}
] | null |
{
"quantity": 2,
"unit": "tbsp",
"item": "milk"
} | [
{
"dataset": "sample",
"recipe": "scrambled-eggs-on-toast",
"index": 1,
"prep": ""
}
] | [
{
"product": "milk",
"quantity": 30,
"approximate": false
}
] | null |
{
"quantity": 15,
"unit": "g",
"item": "butter"
} | [
{
"dataset": "sample",
"recipe": "scrambled-eggs-on-toast",
"index": 2,
"prep": ""
},
{
"dataset": "sample",
"recipe": "cheese-and-ham-toastie",
"index": 3,
"prep": ""
}
] | [
{
"product": "butter",
"quantity": 15,
"approximate": false
}
] | null |
{
"quantity": null,
"unit": "",
"item": "salt and pepper"
} | [
{
"dataset": "sample",
"recipe": "scrambled-eggs-on-toast",
"index": 4,
"prep": ""
},
{
"dataset": "sample",
"recipe": "tomato-soup",
"index": 5,
"prep": ""
}
] | [
{
"product": "salt",
"quantity": null,
"approximate": false
},
{
"product": "black pepper",
"quantity": null,
"approximate": false
}
] | null |
{
"quantity": 200,
"unit": "g",
"item": "cheddar"
} | [
{
"dataset": "sample",
"recipe": "ploughmans-lunch",
"index": 0,
"prep": ""
}
] | [
{
"product": "cheddar",
"quantity": 200,
"approximate": false
}
] | null |
{
"quantity": 1,
"unit": "",
"item": "baguette"
} | [
{
"dataset": "sample",
"recipe": "ploughmans-lunch",
"index": 1,
"prep": ""
}
] | [
{
"product": "baguette",
"quantity": 1,
"approximate": false
}
] | null |
{
"quantity": 4,
"unit": "tbsp",
"item": "branston pickle"
} | [
{
"dataset": "sample",
"recipe": "ploughmans-lunch",
"index": 2,
"prep": ""
}
] | [
{
"product": "branston pickle",
"quantity": 12,
"approximate": false
}
] | null |
{
"quantity": 1,
"unit": "",
"item": "apple"
} | [
{
"dataset": "sample",
"recipe": "ploughmans-lunch",
"index": 3,
"prep": "sliced"
}
] | [
{
"product": "apples",
"quantity": 1,
"approximate": false
}
] | null |
{
"quantity": 100,
"unit": "g",
"item": "cherry tomatoes"
} | [
{
"dataset": "sample",
"recipe": "ploughmans-lunch",
"index": 4,
"prep": ""
},
{
"dataset": "sample",
"recipe": "halloumi-and-roasted-vegetable-salad",
"index": 4,
"prep": ""
}
] | [
{
"product": "cherry tomatoes",
"quantity": 100,
"approximate": false
}
] | null |
{
"quantity": 1,
"unit": "handful",
"item": "salad leaves"
} | [
{
"dataset": "sample",
"recipe": "ploughmans-lunch",
"index": 5,
"prep": ""
}
] | [
{
"product": "salad leaves",
"quantity": 30,
"approximate": true
}
] | null |
{
"quantity": 2,
"unit": "",
"item": "baking potatoes"
} | [
{
"dataset": "sample",
"recipe": "jacket-potato-with-cheese-and-beans",
"index": 0,
"prep": ""
}
] | [
{
"product": "baking potatoes",
"quantity": 2,
"approximate": false
}
] | null |
{
"quantity": 100,
"unit": "g",
"item": "cheddar"
} | [
{
"dataset": "sample",
"recipe": "jacket-potato-with-cheese-and-beans",
"index": 2,
"prep": "grated"
}
] | [
{
"product": "cheddar",
"quantity": 100,
"approximate": false
}
] | null |
{
"quantity": 20,
"unit": "g",
"item": "butter"
} | [
{
"dataset": "sample",
"recipe": "jacket-potato-with-cheese-and-beans",
"index": 3,
"prep": ""
}
] | [
{
"product": "butter",
"quantity": 20,
"approximate": false
}
] | null |
{
"quantity": 60,
"unit": "g",
"item": "cheddar"
} | [
{
"dataset": "sample",
"recipe": "cheese-and-ham-toastie",
"index": 1,
"prep": "grated"
}
] | [
{
"product": "cheddar",
"quantity": 60,
"approximate": false
}
] | null |
{
"quantity": 2,
"unit": "slice",
"item": "ham"
} | [
{
"dataset": "sample",
"recipe": "cheese-and-ham-toastie",
"index": 2,
"prep": ""
}
] | [
{
"product": "sliced ham",
"quantity": 2,
"approximate": false
}
] | null |
{
"quantity": 2,
"unit": "tin",
"item": "chopped tomatoes"
} | [
{
"dataset": "sample",
"recipe": "tomato-soup",
"index": 0,
"prep": ""
}
] | [
{
"product": "tinned tomatoes",
"quantity": 800,
"approximate": true
}
] | null |
{
"quantity": 1,
"unit": "",
"item": "onion"
} | [
{
"dataset": "sample",
"recipe": "tomato-soup",
"index": 1,
"prep": "chopped"
},
{
"dataset": "sample",
"recipe": "chicken-tikka-masala",
"index": 1,
"prep": "chopped"
},
{
"dataset": "sample",
"recipe": "spaghetti-bolognese",
"index": 1,
"prep": "chopped"
}... | [
{
"product": "onion",
"quantity": 1,
"approximate": false
}
] | null |
{
"quantity": 2,
"unit": "clove",
"item": "garlic"
} | [
{
"dataset": "sample",
"recipe": "tomato-soup",
"index": 2,
"prep": "crushed"
},
{
"dataset": "sample",
"recipe": "spaghetti-bolognese",
"index": 2,
"prep": "crushed"
},
{
"dataset": "sample",
"recipe": "chilli-con-carne",
"index": 2,
"prep": "crushed"
},
... | [
{
"product": "garlic",
"quantity": 2,
"approximate": false
}
] | null |
{
"quantity": 500,
"unit": "ml",
"item": "vegetable stock"
} | [
{
"dataset": "sample",
"recipe": "tomato-soup",
"index": 3,
"prep": ""
}
] | [
{
"product": "vegetable stock cubes",
"quantity": 1,
"approximate": true
}
] | null |
{
"quantity": 2,
"unit": "tbsp",
"item": "olive oil"
} | [
{
"dataset": "sample",
"recipe": "tomato-soup",
"index": 4,
"prep": ""
},
{
"dataset": "sample",
"recipe": "halloumi-and-roasted-vegetable-salad",
"index": 5,
"prep": ""
}
] | [
{
"product": "olive oil",
"quantity": 30,
"approximate": false
}
] | null |
{
"quantity": 250,
"unit": "g",
"item": "halloumi"
} | [
{
"dataset": "sample",
"recipe": "halloumi-and-roasted-vegetable-salad",
"index": 0,
"prep": "sliced"
}
] | [
{
"product": "halloumi",
"quantity": 250,
"approximate": false
}
] | null |
{
"quantity": 1,
"unit": "",
"item": "courgette"
} | [
{
"dataset": "sample",
"recipe": "halloumi-and-roasted-vegetable-salad",
"index": 1,
"prep": "sliced"
}
] | [
{
"product": "courgettes",
"quantity": 1,
"approximate": false
}
] | null |
{
"quantity": 1,
"unit": "",
"item": "red pepper"
} | [
{
"dataset": "sample",
"recipe": "halloumi-and-roasted-vegetable-salad",
"index": 2,
"prep": "sliced"
},
{
"dataset": "sample",
"recipe": "chilli-con-carne",
"index": 3,
"prep": "chopped"
},
{
"dataset": "sample",
"recipe": "chicken-stir-fry",
"index": 1,
"pre... | [
{
"product": "peppers",
"quantity": 1,
"approximate": false
}
] | null |
{
"quantity": 1,
"unit": "",
"item": "red onion"
} | [
{
"dataset": "sample",
"recipe": "halloumi-and-roasted-vegetable-salad",
"index": 3,
"prep": "cut into wedges"
},
{
"dataset": "photos",
"recipe": "cb-mighty-mulligatawny",
"index": 2,
"prep": "peeled and finely chopped"
}
] | [
{
"product": "red onion",
"quantity": 1,
"approximate": false
}
] | null |
{
"quantity": 1,
"unit": "tbsp",
"item": "balsamic vinegar"
} | [
{
"dataset": "sample",
"recipe": "halloumi-and-roasted-vegetable-salad",
"index": 6,
"prep": ""
}
] | [
{
"product": "balsamic vinegar",
"quantity": 15,
"approximate": false
}
] | null |
{
"quantity": 100,
"unit": "g",
"item": "salad leaves"
} | [
{
"dataset": "sample",
"recipe": "halloumi-and-roasted-vegetable-salad",
"index": 7,
"prep": ""
}
] | [
{
"product": "salad leaves",
"quantity": 100,
"approximate": false
}
] | null |
{
"quantity": 600,
"unit": "g",
"item": "chicken breast"
} | [
{
"dataset": "sample",
"recipe": "chicken-tikka-masala",
"index": 0,
"prep": "cubed"
}
] | [
{
"product": "chicken breast",
"quantity": 600,
"approximate": false
}
] | null |
{
"quantity": 3,
"unit": "clove",
"item": "garlic"
} | [
{
"dataset": "sample",
"recipe": "chicken-tikka-masala",
"index": 2,
"prep": "crushed"
}
] | [
{
"product": "garlic",
"quantity": 3,
"approximate": false
}
] | null |
{
"quantity": 1,
"unit": "thumb",
"item": "ginger"
} | [
{
"dataset": "sample",
"recipe": "chicken-tikka-masala",
"index": 3,
"prep": "grated"
},
{
"dataset": "sample",
"recipe": "chicken-stir-fry",
"index": 5,
"prep": "grated"
},
{
"dataset": "sample",
"recipe": "lentil-dahl",
"index": 3,
"prep": "grated"
}
] | [
{
"product": "ginger",
"quantity": 15,
"approximate": true
}
] | null |
{
"quantity": 4,
"unit": "tbsp",
"item": "tikka curry paste"
} | [
{
"dataset": "sample",
"recipe": "chicken-tikka-masala",
"index": 4,
"prep": ""
}
] | [
{
"product": "tikka curry paste",
"quantity": 12,
"approximate": false
}
] | null |
{
"quantity": 1,
"unit": "tin",
"item": "chopped tomatoes"
} | [
{
"dataset": "sample",
"recipe": "chicken-tikka-masala",
"index": 5,
"prep": ""
},
{
"dataset": "sample",
"recipe": "spaghetti-bolognese",
"index": 4,
"prep": ""
},
{
"dataset": "sample",
"recipe": "shepherds-pie",
"index": 4,
"prep": ""
},
{
"dataset"... | [
{
"product": "tinned tomatoes",
"quantity": 400,
"approximate": true
}
] | null |
{
"quantity": 150,
"unit": "ml",
"item": "double cream"
} | [
{
"dataset": "sample",
"recipe": "chicken-tikka-masala",
"index": 6,
"prep": ""
},
{
"dataset": "sample",
"recipe": "sticky-toffee-pudding",
"index": 6,
"prep": ""
}
] | [
{
"product": "double cream",
"quantity": 150,
"approximate": false
}
] | null |
{
"quantity": 300,
"unit": "g",
"item": "basmati rice"
} | [
{
"dataset": "sample",
"recipe": "chicken-tikka-masala",
"index": 7,
"prep": ""
}
] | [
{
"product": "long-grain rice",
"quantity": 300,
"approximate": false
}
] | null |
{
"quantity": 500,
"unit": "g",
"item": "beef mince"
} | [
{
"dataset": "sample",
"recipe": "spaghetti-bolognese",
"index": 0,
"prep": ""
},
{
"dataset": "sample",
"recipe": "chilli-con-carne",
"index": 0,
"prep": ""
}
] | [
{
"product": "beef mince",
"quantity": 500,
"approximate": false
}
] | null |
{
"quantity": 1,
"unit": "",
"item": "carrot"
} | [
{
"dataset": "sample",
"recipe": "spaghetti-bolognese",
"index": 3,
"prep": "diced"
},
{
"dataset": "sample",
"recipe": "chicken-stir-fry",
"index": 3,
"prep": "sliced"
}
] | [
{
"product": "carrots",
"quantity": 1,
"approximate": false
}
] | null |
{
"quantity": 2,
"unit": "tbsp",
"item": "tomato puree"
} | [
{
"dataset": "sample",
"recipe": "spaghetti-bolognese",
"index": 5,
"prep": ""
}
] | [
{
"product": "tomato puree",
"quantity": 6,
"approximate": false
}
] | null |
{
"quantity": 400,
"unit": "g",
"item": "spaghetti"
} | [
{
"dataset": "sample",
"recipe": "spaghetti-bolognese",
"index": 6,
"prep": ""
}
] | [
{
"product": "spaghetti",
"quantity": 400,
"approximate": false
}
] | null |
{
"quantity": 1,
"unit": "",
"item": "beef stock cube"
} | [
{
"dataset": "sample",
"recipe": "spaghetti-bolognese",
"index": 7,
"prep": ""
},
{
"dataset": "sample",
"recipe": "shepherds-pie",
"index": 5,
"prep": ""
}
] | [
{
"product": "beef stock cubes",
"quantity": 1,
"approximate": false
}
] | null |
{
"quantity": 500,
"unit": "g",
"item": "lamb mince"
} | [
{
"dataset": "sample",
"recipe": "shepherds-pie",
"index": 0,
"prep": ""
}
] | [
{
"product": "lamb mince",
"quantity": 500,
"approximate": false
}
] | null |
{
"quantity": 2,
"unit": "",
"item": "carrots"
} | [
{
"dataset": "sample",
"recipe": "shepherds-pie",
"index": 2,
"prep": "diced"
},
{
"dataset": "photos",
"recipe": "cb-mighty-mulligatawny",
"index": 3,
"prep": "peeled and finely chopped"
},
{
"dataset": "photos",
"recipe": "hw-split-pea-soup",
"index": 4,
"pr... | [
{
"product": "carrots",
"quantity": 2,
"approximate": false
}
] | null |
{
"quantity": 100,
"unit": "g",
"item": "frozen peas"
} | [
{
"dataset": "sample",
"recipe": "shepherds-pie",
"index": 3,
"prep": ""
}
] | [
{
"product": "frozen peas",
"quantity": 100,
"approximate": false
}
] | null |
{
"quantity": 900,
"unit": "g",
"item": "potatoes"
} | [
{
"dataset": "sample",
"recipe": "shepherds-pie",
"index": 6,
"prep": "peeled and chopped"
},
{
"dataset": "sample",
"recipe": "sausage-and-mash",
"index": 1,
"prep": "peeled and chopped"
}
] | [
{
"product": "potatoes",
"quantity": 900,
"approximate": false
}
] | null |
{
"quantity": 40,
"unit": "g",
"item": "butter"
} | [
{
"dataset": "sample",
"recipe": "shepherds-pie",
"index": 7,
"prep": ""
},
{
"dataset": "sample",
"recipe": "sausage-and-mash",
"index": 2,
"prep": ""
}
] | [
{
"product": "butter",
"quantity": 40,
"approximate": false
}
] | null |
{
"quantity": 50,
"unit": "ml",
"item": "milk"
} | [
{
"dataset": "sample",
"recipe": "shepherds-pie",
"index": 8,
"prep": ""
},
{
"dataset": "sample",
"recipe": "sausage-and-mash",
"index": 3,
"prep": ""
}
] | [
{
"product": "milk",
"quantity": 50,
"approximate": false
}
] | null |
{
"quantity": 2,
"unit": "",
"item": "cod fillets"
} | [
{
"dataset": "sample",
"recipe": "fish-and-chips",
"index": 0,
"prep": ""
}
] | [
{
"product": "white fish fillets",
"quantity": 280,
"approximate": true
}
] | null |
{
"quantity": 700,
"unit": "g",
"item": "potatoes"
} | [
{
"dataset": "sample",
"recipe": "fish-and-chips",
"index": 1,
"prep": "cut into chips"
}
] | [
{
"product": "potatoes",
"quantity": 700,
"approximate": false
}
] | null |
{
"quantity": 200,
"unit": "g",
"item": "frozen peas"
} | [
{
"dataset": "sample",
"recipe": "fish-and-chips",
"index": 2,
"prep": ""
}
] | [
{
"product": "frozen peas",
"quantity": 200,
"approximate": false
}
] | null |
{
"quantity": 50,
"unit": "g",
"item": "plain flour"
} | [
{
"dataset": "sample",
"recipe": "fish-and-chips",
"index": 3,
"prep": ""
},
{
"dataset": "photos",
"recipe": "cb-lamb-shanks-winter-vegetables",
"index": 6,
"prep": ""
}
] | [
{
"product": "plain flour",
"quantity": 50,
"approximate": false
}
] | null |
{
"quantity": 2,
"unit": "tbsp",
"item": "oil"
} | [
{
"dataset": "sample",
"recipe": "fish-and-chips",
"index": 4,
"prep": ""
},
{
"dataset": "photos",
"recipe": "cb-royal-guineafowl-casserole",
"index": 1,
"prep": ""
}
] | [
{
"product": "vegetable oil",
"quantity": 30,
"approximate": false
}
] | null |
{
"quantity": 1,
"unit": "",
"item": "lemon"
} | [
{
"dataset": "sample",
"recipe": "fish-and-chips",
"index": 5,
"prep": "cut into wedges"
},
{
"dataset": "photos",
"recipe": "cb-herby-chicken-traybake",
"index": 4,
"prep": ""
}
] | [
{
"product": "lemons",
"quantity": 1,
"approximate": false
}
] | null |
{
"quantity": 1,
"unit": "tin",
"item": "kidney beans"
} | [
{
"dataset": "sample",
"recipe": "chilli-con-carne",
"index": 4,
"prep": "drained"
}
] | [
{
"product": "kidney beans",
"quantity": 400,
"approximate": true
}
] | null |
{
"quantity": 1,
"unit": "tbsp",
"item": "chilli powder"
} | [
{
"dataset": "sample",
"recipe": "chilli-con-carne",
"index": 6,
"prep": ""
}
] | [
{
"product": "chilli powder",
"quantity": 3,
"approximate": false
}
] | null |
{
"quantity": 1,
"unit": "tsp",
"item": "ground cumin"
} | [
{
"dataset": "sample",
"recipe": "chilli-con-carne",
"index": 7,
"prep": ""
},
{
"dataset": "photos",
"recipe": "cb-makhani-sauce",
"index": 14,
"prep": ""
}
] | [
{
"product": "ground cumin",
"quantity": 1,
"approximate": false
}
] | null |
{
"quantity": 300,
"unit": "g",
"item": "rice"
} | [
{
"dataset": "sample",
"recipe": "chilli-con-carne",
"index": 8,
"prep": ""
},
{
"dataset": "sample",
"recipe": "lentil-dahl",
"index": 7,
"prep": ""
}
] | [
{
"product": "long-grain rice",
"quantity": 300,
"approximate": false
}
] | null |
{
"quantity": 2,
"unit": "",
"item": "chicken breast"
} | [
{
"dataset": "sample",
"recipe": "chicken-stir-fry",
"index": 0,
"prep": "sliced"
}
] | [
{
"product": "chicken breast",
"quantity": 300,
"approximate": true
}
] | null |
{
"quantity": 150,
"unit": "g",
"item": "broccoli"
} | [
{
"dataset": "sample",
"recipe": "chicken-stir-fry",
"index": 2,
"prep": "in florets"
}
] | [
{
"product": "broccoli",
"quantity": 150,
"approximate": false
}
] | null |
{
"quantity": 3,
"unit": "tbsp",
"item": "soy sauce"
} | [
{
"dataset": "sample",
"recipe": "chicken-stir-fry",
"index": 6,
"prep": ""
}
] | [
{
"product": "soy sauce",
"quantity": 45,
"approximate": false
}
] | null |
{
"quantity": 200,
"unit": "g",
"item": "egg noodles"
} | [
{
"dataset": "sample",
"recipe": "chicken-stir-fry",
"index": 7,
"prep": ""
}
] | [
{
"product": "egg noodles",
"quantity": 200,
"approximate": false
}
] | null |
{
"quantity": 1,
"unit": "tbsp",
"item": "sesame oil"
} | [
{
"dataset": "sample",
"recipe": "chicken-stir-fry",
"index": 8,
"prep": ""
}
] | [
{
"product": "sesame oil",
"quantity": 15,
"approximate": false
}
] | null |
{
"quantity": 600,
"unit": "g",
"item": "chicken thighs"
} | [
{
"dataset": "sample",
"recipe": "thai-green-curry",
"index": 0,
"prep": "sliced"
}
] | [
{
"product": "chicken thighs",
"quantity": 600,
"approximate": false
}
] | null |
{
"quantity": 3,
"unit": "tbsp",
"item": "green curry paste"
} | [
{
"dataset": "sample",
"recipe": "thai-green-curry",
"index": 1,
"prep": ""
}
] | [
{
"product": "thai green curry paste",
"quantity": 9,
"approximate": false
}
] | null |
{
"quantity": 1,
"unit": "tin",
"item": "coconut milk"
} | [
{
"dataset": "sample",
"recipe": "thai-green-curry",
"index": 2,
"prep": ""
}
] | [
{
"product": "coconut milk",
"quantity": 400,
"approximate": true
}
] | null |
{
"quantity": 150,
"unit": "g",
"item": "green beans"
} | [
{
"dataset": "sample",
"recipe": "thai-green-curry",
"index": 3,
"prep": "trimmed"
}
] | [
{
"product": "green beans",
"quantity": 150,
"approximate": false
}
] | null |
{
"quantity": 1,
"unit": "",
"item": "aubergine"
} | [
{
"dataset": "sample",
"recipe": "thai-green-curry",
"index": 4,
"prep": "cubed"
}
] | [
{
"product": "aubergines",
"quantity": 1,
"approximate": false
}
] | null |
{
"quantity": 1,
"unit": "tbsp",
"item": "fish sauce"
} | [
{
"dataset": "sample",
"recipe": "thai-green-curry",
"index": 5,
"prep": ""
}
] | [
{
"product": "fish sauce",
"quantity": 15,
"approximate": false
}
] | null |
{
"quantity": 300,
"unit": "g",
"item": "jasmine rice"
} | [
{
"dataset": "sample",
"recipe": "thai-green-curry",
"index": 6,
"prep": ""
}
] | [
{
"product": "long-grain rice",
"quantity": 300,
"approximate": false
}
] | null |
{
"quantity": 2,
"unit": "",
"item": "pizza base"
} | [
{
"dataset": "sample",
"recipe": "margherita-pizza",
"index": 0,
"prep": ""
}
] | [
{
"product": "pizza bases",
"quantity": 2,
"approximate": false
}
] | null |
{
"quantity": 150,
"unit": "ml",
"item": "passata"
} | [
{
"dataset": "sample",
"recipe": "margherita-pizza",
"index": 1,
"prep": ""
}
] | [
{
"product": "passata",
"quantity": 150,
"approximate": false
}
] | null |
{
"quantity": 1,
"unit": "ball",
"item": "mozzarella"
} | [
{
"dataset": "sample",
"recipe": "margherita-pizza",
"index": 2,
"prep": "torn"
}
] | [
{
"product": "mozzarella",
"quantity": 125,
"approximate": true
}
] | null |
{
"quantity": 1,
"unit": "handful",
"item": "fresh basil"
} | [
{
"dataset": "sample",
"recipe": "margherita-pizza",
"index": 3,
"prep": ""
}
] | [
{
"product": "fresh basil",
"quantity": 0.5,
"approximate": true
}
] | null |
{
"quantity": 1,
"unit": "tbsp",
"item": "olive oil"
} | [
{
"dataset": "sample",
"recipe": "margherita-pizza",
"index": 4,
"prep": ""
}
] | [
{
"product": "olive oil",
"quantity": 15,
"approximate": false
}
] | null |
{
"quantity": 250,
"unit": "g",
"item": "red lentils"
} | [
{
"dataset": "sample",
"recipe": "lentil-dahl",
"index": 0,
"prep": ""
}
] | [
{
"product": "red lentils",
"quantity": 250,
"approximate": false
}
] | null |
{
"quantity": 2,
"unit": "tbsp",
"item": "curry powder"
} | [
{
"dataset": "sample",
"recipe": "lentil-dahl",
"index": 5,
"prep": ""
}
] | [
{
"product": "curry powder",
"quantity": 6,
"approximate": false
}
] | null |
{
"quantity": 200,
"unit": "ml",
"item": "coconut milk"
} | [
{
"dataset": "sample",
"recipe": "lentil-dahl",
"index": 6,
"prep": ""
}
] | [
{
"product": "coconut milk",
"quantity": 200,
"approximate": false
}
] | null |
{
"quantity": 8,
"unit": "",
"item": "pork sausages"
} | [
{
"dataset": "sample",
"recipe": "sausage-and-mash",
"index": 0,
"prep": ""
}
] | [
{
"product": "pork sausages",
"quantity": 8,
"approximate": false
}
] | null |
{
"quantity": 2,
"unit": "tbsp",
"item": "gravy granules"
} | [
{
"dataset": "sample",
"recipe": "sausage-and-mash",
"index": 5,
"prep": ""
}
] | [
{
"product": "gravy granules",
"quantity": 6,
"approximate": false
}
] | null |
{
"quantity": 200,
"unit": "g",
"item": "pitted dates"
} | [
{
"dataset": "sample",
"recipe": "sticky-toffee-pudding",
"index": 0,
"prep": "chopped"
}
] | [
{
"product": "pitted dates",
"quantity": 200,
"approximate": false
}
] | null |
{
"quantity": 200,
"unit": "g",
"item": "self-raising flour"
} | [
{
"dataset": "sample",
"recipe": "sticky-toffee-pudding",
"index": 1,
"prep": ""
}
] | [
{
"product": "self-raising flour",
"quantity": 200,
"approximate": false
}
] | null |
{
"quantity": 100,
"unit": "g",
"item": "butter"
} | [
{
"dataset": "sample",
"recipe": "sticky-toffee-pudding",
"index": 2,
"prep": "softened"
},
{
"dataset": "sample",
"recipe": "apple-crumble",
"index": 2,
"prep": "cold and cubed"
}
] | [
{
"product": "butter",
"quantity": 100,
"approximate": false
}
] | null |
{
"quantity": 150,
"unit": "g",
"item": "dark brown sugar"
} | [
{
"dataset": "sample",
"recipe": "sticky-toffee-pudding",
"index": 3,
"prep": ""
}
] | [
{
"product": "dark brown sugar",
"quantity": 150,
"approximate": false
}
] | null |
{
"quantity": 1,
"unit": "tsp",
"item": "bicarbonate of soda"
} | [
{
"dataset": "sample",
"recipe": "sticky-toffee-pudding",
"index": 5,
"prep": ""
}
] | [
{
"product": "bicarbonate of soda",
"quantity": 1,
"approximate": false
}
] | null |
{
"quantity": 6,
"unit": "",
"item": "apples"
} | [
{
"dataset": "sample",
"recipe": "apple-crumble",
"index": 0,
"prep": "peeled and sliced"
}
] | [
{
"product": "apples",
"quantity": 6,
"approximate": false
}
] | null |
{
"quantity": 150,
"unit": "g",
"item": "plain flour"
} | [
{
"dataset": "sample",
"recipe": "apple-crumble",
"index": 1,
"prep": ""
}
] | [
{
"product": "plain flour",
"quantity": 150,
"approximate": false
}
] | null |
{
"quantity": 100,
"unit": "g",
"item": "sugar"
} | [
{
"dataset": "sample",
"recipe": "apple-crumble",
"index": 3,
"prep": ""
}
] | [
{
"product": "granulated sugar",
"quantity": 100,
"approximate": false
}
] | null |
{
"quantity": 50,
"unit": "g",
"item": "rolled oats"
} | [
{
"dataset": "sample",
"recipe": "apple-crumble",
"index": 4,
"prep": ""
}
] | [
{
"product": "porridge oats",
"quantity": 50,
"approximate": false
}
] | null |
{
"quantity": 1,
"unit": "tsp",
"item": "cinnamon"
} | [
{
"dataset": "sample",
"recipe": "apple-crumble",
"index": 5,
"prep": ""
}
] | [
{
"product": "ground cinnamon",
"quantity": 1,
"approximate": false
}
] | null |
{
"quantity": 4,
"unit": "cloves",
"item": "garlic"
} | [
{
"dataset": "photos",
"recipe": "cb-baked-garlicky-mushrooms",
"index": 0,
"prep": ""
},
{
"dataset": "photos",
"recipe": "cb-cajun-chicken-traybake",
"index": 4,
"prep": ""
},
{
"dataset": "photos",
"recipe": "cb-epic-rib-eye-steak",
"index": 2,
"prep": ""
... | [
{
"product": "garlic",
"quantity": 4,
"approximate": false
}
] | null |
{
"quantity": 0.5,
"unit": "bunch",
"item": "fresh sage"
} | [
{
"dataset": "photos",
"recipe": "cb-baked-garlicky-mushrooms",
"index": 1,
"prep": ""
}
] | [
{
"product": "fresh sage",
"quantity": 0.5,
"approximate": false
}
] | null |
{
"quantity": 350,
"unit": "g",
"item": "cherry tomatoes"
} | [
{
"dataset": "photos",
"recipe": "cb-baked-garlicky-mushrooms",
"index": 2,
"prep": "ripe mixed-colour"
}
] | [
{
"product": "cherry tomatoes",
"quantity": 350,
"approximate": false
}
] | null |
Shopping list units evals
Gold labels for turning ingredient lines, as recipes write them, into one shopping list: which product to buy and how much. "2 chicken breasts" and "600 g chicken breast" have to become one line on the list; "red pepper" and "black pepper" must not.
The dataset is kept in a private Hugging Face dataset, <your user>/nosh-ingredient-units,
like the photo one: some lines come from published cookbooks. With HUGGINGFACE_API_KEY in
api/.env:
pnpm --filter @nosh/api evals:units:download # into api/evals/units/data/ (ignored by git)
pnpm --filter @nosh/api evals:units:validate # schema, catalogue, recipes and weeks agree
pnpm --filter @nosh/api evals:units:upload # after changing a label
products.json: 175 products, each with the one measure its amounts add up in.lines.jsonl: 347 distinct ingredient lines, every one in the 20 sample recipes (data/sample-recipes.json) and the 37 recipe photo labels (the privatenosh-recipe-photosdataset), each with what it means to buy.frompoints back at every recipe that writes it that way.weeks.json: 12 planned weeks of 5 or 6 recipes, each built to make one kind of line clash (counts and weights, tins and grams, "red pepper" and "black pepper"). The schema (gold.ts), checks, scorer and runner are inapi/evals/units/in the app repo.
Running
pnpm --filter @nosh/api evals:units # today's code against Haiku 5.5
pnpm --filter @nosh/api evals:units --model claude-sonnet-5 --prompt baseline
--model:codeis what the app does today (canonicalNameandaddAmounts). A name without a provider (claude-haiku-5-5) goes to the Claude API withANTHROPIC_API_KEY; one with a provider (anthropic/claude-sonnet-5) goes through OpenRouter withOPEN_ROUTER_API_KEY, which also reports the cost.--prompt:baselinegives the model the task and the catalogue;conventionsadds everything from "The task" down in this file, so its score is a ceiling for these recipes, not a measure of new ones.- Each model gets one recipe's lines per call.
score.tsgrades each line (product and amount) and each week's list without looking at names: a product is right when one list line adds up exactly the recipe lines it should, to the right total. Estimates count within 35%, plain arithmetic within 2%. - Answers are saved in
../results/(ignored by git).score.test.tsruns in CI with made-up cases, no dataset needed.
How the labels were made
Labelled by one model session, then labelled again by a second session that saw only these conventions, the catalogue and the lines, never the first labels. They agreed on 341 of 347 lines. The 6 differences were settled by hand, and the second session's critique of the rules added the rules for fractions, amounts in the prep, plain oil, swaps between products and fresh bay leaves.
The agreement is high partly because the conventions spell out the merges and conversions: it shows the rules are applied consistently, not that they are right. The rules themselves are product decisions, listed below so they can be argued with.
The task
Turn one ingredient line, as written in a recipe, into what goes on a shopping list: which product to buy, and how much of it, in that product's own measure. Lines that are the same product add up on the list, so the label decides what merges and what doesn't.
The products
products.json is the catalogue. Each product has one measure that every line for it
is converted into, so amounts can be added:
gorml: sold by weight or volume (mince, rice, milk).count: sold one by one (onions, eggs, lamb shanks).countNounsays what is counted when it isn't the product itself: garlic countsclove, herbs countbunch, bacon countsrasher, bread countsslice.tsp: small amounts from a jar or packet that lasts (spices, pastes, purée, honey). 1 tbsp = 3 tsp.
pack is how it is sold when that differs from the measure (garlic in bulbs of 10
cloves, tomatoes in 400 g tins); the app uses it to say "2 tins". pantry marks what a
household usually already has (oils, vinegars, salt, pepper, dried spices, stock cubes,
flour, sugar).
What merges
Things that are interchangeable on the shelf for a household on a budget are one product; things that aren't stay apart.
- Merged: olive oil and extra virgin olive oil; salt, sea salt and fine sea salt;
basmati, jasmine and plain rice (
long-grain rice); cheddar and Cheddar cheese; chopped and plum tomatoes in tins; red and mixed peppers; chestnut, mixed and button mushrooms; cod, pollock and white fish fillets; natural and Greek yoghurt; porridge and rolled oats; beef mince whatever its fat; chicken thighs bone in or out; lamb shoulder bone in or out; tomato purée and tomato paste; soffritto passata and passata; plain and spicy pork sausages; green and French beans; red wine of any kind; sugar and granulated sugar; muscovado and dark brown sugar; chilli powder of any kind. - Kept apart: cuts of meat (breast, thigh, leg, drumstick); fresh and tinned tomatoes; cherry tomatoes and tomatoes; onion and red onion; portobello and other mushrooms; rocket and salad leaves; each curry paste; each vinegar; butter and margarine; Bramley (cooking) and eating apples; new potatoes, potatoes and baking potatoes; arborio and long-grain rice; sliced ham and a smoked ham joint.
How a line is labelled
expected is a list of products, usually one:
quantityin the product's measure, ornullwhen the line has no amount ("olive oil", "salt to taste"). Never invent an amount for a line without one.approximate: truewhen the number rests on an estimate (a count turned into grams, a cup of a solid, a handful, a pack size the line doesn't state). False when it is plain arithmetic: oz to g, a stated tin size, tbsp to ml for a liquid, tbsp to tsp.alternatives: other quantities that are also right ("juice of 1–2 lemons").- Fractions stay as they are: 300 ml of stock is 0.6 of a cube. Rounding up to what can be bought is the app's job, once the week's amounts are added.
- An amount that is only in the prep counts ("a couple of sprigs" is 0.2 of a bunch).
- Plain "oil" is vegetable oil.
Several products in one line are split ("salt and pepper" is salt and black pepper; "chicken thighs & drumsticks 1kg" is 500 g of each). A line is an empty list when there is nothing to buy: water, a choice of sides ("orzo, rice or sautéed potatoes"), or a sauce made from another recipe that shops don't sell (makhani sauce). One that they do sell is bought (garam masala, even when the book gives a recipe for it). A single side listed to serve ("steamed rice, to serve") is bought, without an amount unless one is given.
When a line offers a swap, the first option is expected. If the other is a different quantity of the same product it is an alternative; if it is a different product ("chopped tomatoes, fresh or tinned") it is dropped.
Conversions
Exact: 1 tbsp = 15 ml = 3 tsp; 1 tsp = 5 ml; 1 cup = 240 ml; 1 oz = 28.35 g; 1 lb = 453.6 g; "2 x 400g tins" = 800 g; "x 400ml tin" = 400 ml.
Estimates (approximate: true):
| Written | Becomes |
|---|---|
| a tin, size not given | 400 g (baked beans 415 g); coconut milk 400 ml |
| a ball of mozzarella | 125 g |
| a garlic clove | 5 g (so 35 g garlic = 7 cloves) |
| a thumb or a 3 cm piece of ginger | 15 g |
| a knob or 1 tbsp of butter | 15 g; a cup of butter or margarine 225 g |
| a tbsp of yoghurt | 15 g |
| a chicken breast | 150 g; a bone-in thigh 125 g; a leg 250 g; a frying chicken 1.4 kg |
| a fish fillet | 140 g |
| a pork sausage | 67 g (a 400 g pack is 6) |
| a new potato | 40 g; a fresh plum tomato 85 g |
| a black olive | 4 g |
| a cup of basmati rice | 190 g; a mug 240 g |
| a handful of salad leaves | 30 g |
| herbs | a bunch is 10 sprigs; a handful is half a bunch; 2 tbsp chopped is a quarter |
| stock as liquid | one cube per 500 ml: people make it from cubes |
| lemon or lime juice | 30 ml per fruit |
| 0.75 cup chopped celery | 1.5 sticks; 7 cm cinnamon stick is 1 stick |
| a jigger | 44 ml |
| a heaped spoon | counts as a level spoon, approximate |
| 1 tsp sugar | 4 g |
| a tbsp of pomegranate seeds | 10 g |
| 1 tsp salt | 5 g, so 5 g fine sea salt is 1 tsp |
| a dash or a pinch | no amount (null) |
| a combined weight split between products | approximate |
"x 1.2kg whole chicken" is 1200 g, exact. A line that states a total ("6 short ribs, approx. 1.5kg total") uses it, approximate.
Choices worth knowing
- A cup of butter is 225 g: it is a measure, not the 250 g block it is sold in (that is
the
pack). - Crème fraîche is in ml and yoghurt in grams, because that is how UK shops label the tubs.
- Lemon juice becomes lemons (30 ml each), so it merges with recipes that use whole lemons.
- Fresh bay leaves are their own product; plain "bay leaves" are the dried, pantry kind.
- Lines are labelled as written: "6 apples" is eating apples even in a crumble.
- Downloads last month
- 48