Skip to content

Studio: add Download Dataset button for Data Recipes - #10708

Merged
Etherll merged 26 commits into
unslothai:mainfrom
Souravrajvi0:feat/download-dataset-button-9d69
Sep 14, 2026
Merged

Etherll merged 26 commits into
unslothai:mainfrom
Souravrajvi0:feat/download-dataset-button-9d69

Conversation

@Souravrajvi0

Copy link
Copy Markdown
Contributor

Closes #10637

Adds a way to download generated datasets from Data Recipes without publishing to Hugging Face first.

What changed

  • New GET /api/data-recipe/jobs/{job_id}/download endpoint (JSONL by default, parquet zip optional)
  • "Download Dataset" button on completed runs in the executions panel
  • Full runs export from persisted parquet artifacts; preview runs export the in-memory sample as JSONL

How to try it
Run a recipe to completion, open Executions → Data or Overview, and hit Download Dataset. You should get a .jsonl file 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.

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.
chatgpt-codex-connector[bot]

This comment was marked as resolved.

pre-commit-ci Bot and others added 2 commits September 10, 2026 09:17
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.
@danielhanchen

Copy link
Copy Markdown
Member

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?

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-14T11:48:06.078792Z 8c51a0e Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 10, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 10, 2026
@oobabooga

Copy link
Copy Markdown
Member

@codex security review

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 10, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 10, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 10, 2026
chatgpt-codex-connector[bot]

This comment was marked as resolved.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 10, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 10, 2026
chatgpt-codex-connector[bot]

This comment was marked as resolved.

@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 10, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 10, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 10, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 10, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 10, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: bcd48cb626

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@danielhanchen

Copy link
Copy Markdown
Member

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?

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 825977582f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@Etherll

Etherll commented Sep 14, 2026 •

Copy link
Copy Markdown
Collaborator

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 datasetTotal remain partial.

At 8c51a0e295584bd936d1efd427a2d53447fee905, validation passed 33 backend tests, all 7,304 frontend tests, focused legacy-total tests, frontend typecheck, the production build, and Biome checks for both edited frontend files.

UI comparison: ffb5539d2f07b7a978511d70c0243bf100a500fe to 8c51a0e295584bd936d1efd427a2d53447fee905

PR 10708 before and after dataset download actions

@Etherll

Etherll commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 8c51a0e295

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]Download Dataset Button In Data Recipes

4 participants