Migrate dataset to structured format
migrate_to_structured · Built-in action recipeConvert a dataset's examples from before structured storage to the structured format. The originals are backed up as a JSONL asset on your cluster first, then removed from the dataset.
If you've connected Ellf to your coding assistant, it can set up the action for you: it knows the recipe's settings, can create the datasets and assets it needs and will ask you about anything it can't work out itself.
✳︎Claude Code: Setting up an action
› Set up an Ellf action using the Migrate dataset to structured format recipe (migrate_to_structured) and help me choose the right settings for my data.- In the app, go to ActionsNew action.
- Select the Migrate dataset to structured format recipe under Data.
- Fill in the form – you'll need to provide Dataset to migrate. Everything else has sensible defaults.
- Create the action. It starts on your cluster straight away.
Create the action with ellf actions create and the recipe name. All settings from the form are available as arguments. To view all recipe arguments, run ellf actions create migrate_to_structured --help.
| Argument | Type | Description | Default |
|---|---|---|---|
--name | str | Name of the action | None |
--dataset | str | Dataset to migrate: The dataset to convert. | |
--input-keys | List[str] | Input keys: Keys that form the input (e.g. text, image) of examples whose interface doesn't determine their type. Only needed if the dataset has such examples. | None |
--user-ann-keys | List[str] | User annotation keys: Keys that hold user annotations (e.g. spans, label), for examples whose interface doesn't determine their type. | None |
--session-id | str | Session ID: Session name recorded on the migrated examples. | "migrated" |
--project-id | str | Project ID to add action to. Defaults to your saved project. | None |
--worker-class | str | Worker class to launch the action on, as configured on your cluster | None |