Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Allow non-LLM recipes to run and move Data tab first in executions (#4805)

Wasim Yousef Said50dede11cc80
diff --git a/studio/backend/core/data_recipe/service.py b/studio/backend/core/data_recipe/service.py
index 550358ae612..7fff36aefd0 100644
--- a/studio/backend/core/data_recipe/service.py
+++ b/studio/backend/core/data_recipe/service.py
@@ -167,12 +167,7 @@ def _validate_recipe_runtime_support(
recipe: dict[str, Any],
model_providers: list[Any],
) -> None:
- if not _recipe_has_llm_columns(recipe):
- raise ValueError(
- "Recipe Studio currently requires at least one AI generation step."
- )
-
- if not model_providers:
+ if _recipe_has_llm_columns(recipe) and not model_providers:
raise ValueError("Add a Provider connection block before running this recipe.")
@@ -266,6 +261,21 @@ def create_data_designer(
model_providers = build_model_providers(recipe)
_validate_recipe_runtime_support(recipe, model_providers)
+ # DataDesigner requires at least one model provider in its registry even
+ # when the pipeline contains no LLM columns. Supply a lightweight stub
+ # so sampler/expression-only recipes can run without a real provider.
+ if not model_providers:
+ from data_designer.config.models import ModelProvider
+
+ model_providers = [
+ ModelProvider(
+ name = "_unused",
+ endpoint = "http://localhost",
+ provider_type = "openai",
+ api_key = None,
+ )
+ ]
+
return DataDesigner(
artifact_path = artifact_path,
model_providers = model_providers,
diff --git a/studio/frontend/src/features/recipe-studio/components/executions/execution-data-tab.tsx b/studio/frontend/src/features/recipe-studio/components/executions/execution-data-tab.tsx
index dc6baddf028..a8e12ac1ca8 100644
--- a/studio/frontend/src/features/recipe-studio/components/executions/execution-data-tab.tsx
+++ b/studio/frontend/src/features/recipe-studio/components/executions/execution-data-tab.tsx
@@ -12,6 +12,7 @@ import {
DropdownMenuLabel,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
+import { Spinner } from "@/components/ui/spinner";
import { cn } from "@/lib/utils";
import { isExecutionInProgress } from "../../executions/execution-helpers";
import type { RecipeExecutionRecord } from "../../execution-types";
@@ -121,7 +122,21 @@ export function ExecutionDataTab({
</div>
</div>
{execution.dataset.length === 0 ? (
- <p className="text-xs text-muted-foreground">No rows returned.</p>
+ isExecutionInProgress(execution.status) ? (
+ <div className="flex flex-col items-center justify-center gap-3 py-12 text-center">
+ <Spinner className="size-5" />
+ <div className="space-y-1">
+ <p className="text-sm font-medium text-muted-foreground">
+ Generating data…
+ </p>
+ <p className="text-xs text-muted-foreground">
+ Check the Overview tab for live terminal logs.
+ </p>
+ </div>
+ </div>
+ ) : (
+ <p className="text-xs text-muted-foreground">No rows returned.</p>
+ )
) : tableColumns.length === 0 ? (
<p className="text-xs text-muted-foreground">
All columns hidden. Use Columns to show at least one.
diff --git a/studio/frontend/src/features/recipe-studio/components/executions/execution-overview-tab.tsx b/studio/frontend/src/features/recipe-studio/components/executions/execution-overview-tab.tsx
index 06b4b20629a..8e2e710299a 100644
--- a/studio/frontend/src/features/recipe-studio/components/executions/execution-overview-tab.tsx
+++ b/studio/frontend/src/features/recipe-studio/components/executions/execution-overview-tab.tsx
@@ -116,10 +116,12 @@ export function ExecutionOverviewTab({
/>
</div>
<div className="space-y-1.5 text-xs">
- <p className="flex items-center justify-between gap-3">
- <span className="text-muted-foreground">LLM columns</span>
- <span className="font-semibold">{formatMetricValue(llmColumnCount)}</span>
- </p>
+ {llmColumnCount > 0 && (
+ <p className="flex items-center justify-between gap-3">
+ <span className="text-muted-foreground">LLM columns</span>
+ <span className="font-semibold">{formatMetricValue(llmColumnCount)}</span>
+ </p>
+ )}
<p className="flex items-center justify-between gap-3">
<span className="text-muted-foreground">Null rate</span>
<span className="font-semibold">{nullRate?.toFixed(1) ?? "--"}%</span>
@@ -164,40 +166,42 @@ export function ExecutionOverviewTab({
</div>
</div>
</div>
- <div className="rounded-xl border border-border/60 bg-card/55 p-3">
- <div className="mb-2 flex items-center justify-between">
- <p className="text-xs text-muted-foreground">Model usage</p>
- <HugeiconsIcon icon={Flag02Icon} className="size-4 text-muted-foreground" />
- </div>
- {modelUsageRows.length === 0 ? (
- <p className="text-xs text-muted-foreground">No model usage yet.</p>
- ) : (
- <div className="overflow-hidden rounded-lg border border-border/60 bg-card/50">
- <Table>
- <TableHeader>
- <TableRow>
- <TableHead>Model</TableHead>
- <TableHead className="text-right">Input</TableHead>
- <TableHead className="text-right">Output</TableHead>
- </TableRow>
- </TableHeader>
- <TableBody>
- {modelUsageRows.map((usage) => (
- <TableRow key={usage.model}>
- <TableCell className="max-w-[320px] truncate">{usage.model}</TableCell>
- <TableCell className="text-right">
- {formatMetricValue(usage.input)}
- </TableCell>
- <TableCell className="text-right">
- {formatMetricValue(usage.output)}
- </TableCell>
- </TableRow>
- ))}
- </TableBody>
- </Table>
+ {(llmColumnCount > 0 || modelUsageRows.length > 0) && (
+ <div className="rounded-xl border border-border/60 bg-card/55 p-3">
+ <div className="mb-2 flex items-center justify-between">
+ <p className="text-xs text-muted-foreground">Model usage</p>
+ <HugeiconsIcon icon={Flag02Icon} className="size-4 text-muted-foreground" />
</div>
- )}
- </div>
+ {modelUsageRows.length === 0 ? (
+ <p className="text-xs text-muted-foreground">No model usage yet.</p>
+ ) : (
+ <div className="overflow-hidden rounded-lg border border-border/60 bg-card/50">
+ <Table>
+ <TableHeader>
+ <TableRow>
+ <TableHead>Model</TableHead>
+ <TableHead className="text-right">Input</TableHead>
+ <TableHead className="text-right">Output</TableHead>
+ </TableRow>
+ </TableHeader>
+ <TableBody>
+ {modelUsageRows.map((usage) => (
+ <TableRow key={usage.model}>
+ <TableCell className="max-w-[320px] truncate">{usage.model}</TableCell>
+ <TableCell className="text-right">
+ {formatMetricValue(usage.input)}
+ </TableCell>
+ <TableCell className="text-right">
+ {formatMetricValue(usage.output)}
+ </TableCell>
+ </TableRow>
+ ))}
+ </TableBody>
+ </Table>
+ </div>
+ )}
+ </div>
+ )}
</div>
)}
<div className="overflow-hidden rounded-xl corner-squircle border">
diff --git a/studio/frontend/src/features/recipe-studio/components/executions/executions-view.tsx b/studio/frontend/src/features/recipe-studio/components/executions/executions-view.tsx
index f30cf610124..f442d8f98e2 100644
--- a/studio/frontend/src/features/recipe-studio/components/executions/executions-view.tsx
+++ b/studio/frontend/src/features/recipe-studio/components/executions/executions-view.tsx
@@ -59,7 +59,7 @@ export function ExecutionsView({
typeof value === "number" && Number.isFinite(value)
? `${value.toLocaleString()} s`
: "--";
- const [detailTab, setDetailTab] = useState("overview");
+ const [detailTab, setDetailTab] = useState("data");
const [hiddenDatasetColumnsByExecution, setHiddenDatasetColumnsByExecution] = useState<
Record<string, string[]>
>({});
@@ -341,12 +341,16 @@ export function ExecutionsView({
}, [selectedExecution]);
useEffect(() => {
- if (!terminalRef.current) {
+ setDetailTab("data");
+ }, [selectedExecution?.id]);
+
+ useEffect(() => {
+ if (detailTab !== "overview" || !terminalRef.current) {
return;
}
shouldStickTerminalToBottomRef.current = true;
terminalRef.current.scrollTop = terminalRef.current.scrollHeight;
- }, [selectedExecution?.id]);
+ }, [detailTab, selectedExecution?.id]);
useEffect(() => {
if (!terminalRef.current) {
@@ -440,9 +444,9 @@ export function ExecutionsView({
<Tabs value={detailTab} onValueChange={setDetailTab}>
<div className="flex items-center justify-between gap-2">
<TabsList className="border border-border/60 bg-card/40">
+ <TabsTrigger value="data">Data</TabsTrigger>
<TabsTrigger value="overview">Overview</TabsTrigger>
<TabsTrigger value="columns">Columns</TabsTrigger>
- <TabsTrigger value="data">Data</TabsTrigger>
<TabsTrigger value="raw">Raw</TabsTrigger>
</TabsList>
<div className="flex items-center gap-2">