Repository navigation
Studio: add Download Dataset button for Data Recipes - #10708
Conversation
Adds a JSONL export path for completed recipe runs so users can save generated datasets locally without publishing to Hugging Face. Full runs download from persisted parquet artifacts via a new backend endpoint; preview runs export the in-memory sample from the client.
Stream JSONL exports in batches instead of materializing full datasets, normalize non-finite values to null, include companion image assets in Parquet archives, preserve stable row order within shards, page through oversized in-memory runs, and avoid buffering downloads in the browser.
|
Confirmed there is no local export path today in studio/backend/routes/data_recipe/jobs.py, so the download endpoint fills a real gap. The direction is right, but studio/backend/core/data_recipe/export.py carries three separate parquet readers (duckdb, pandas, data_designer) and the route reaches into private helpers like _write_jsonl_rows; could you narrow it to one reader and a public export API? |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex security review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Checked the branch again and studio/backend/core/data_recipe/export.py still carries the duckdb, pandas and data_designer readers, with studio/backend/routes/data_recipe/jobs.py importing _write_jsonl_rows directly. Could you fold it down to one reader behind a public export function before I review the rest? |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Completed dataset runs now have one compact Download action beside the result tabs. The duplicate Next step card is gone, and download behavior is unchanged. The export path still uses one PyArrow row-group reader. Durable JSONL preserves Decimal tokens and Hugging Face image bytes and paths. Historical caches missing At UI comparison: |
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |

Closes #10637
Adds a way to download generated datasets from Data Recipes without publishing to Hugging Face first.
What changed
GET /api/data-recipe/jobs/{job_id}/downloadendpoint (JSONL by default, parquet zip optional)How to try it
Run a recipe to completion, open Executions → Data or Overview, and hit Download Dataset. You should get a
.jsonlfile ready for training or inspection.The other asks in the issue (more nodes, live dataset view mid-run) are out of scope here — happy to split those into follow-ups if useful.