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.

1.3 KB
Raw Blame
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0

import type { TourStep } from "@/features/tour";

export function buildDataRecipesTourSteps({
  ready,
  hasRecipes,
}: {
  ready: boolean;
  hasRecipes: boolean;
}): TourStep[] {
  const steps: TourStep[] = [
    {
      id: "new",
      target: "recipes-new",
      title: "Build a dataset",
      body: (
        <>
          A recipe turns raw documents into training data. Start empty, or from
          a learning recipe already wired up for a common job.
        </>
      ),
    },
  ];

  if (!ready) return steps;

  steps.push(
    hasRecipes
      ? {
          id: "list",
          target: "recipes-list",
          title: "Your recipes",
          body: (
            <>
              Open one to edit its steps or rerun it. Recipes are saved on this
              device, and a run's dataset is ready to pick on the Train page.
            </>
          ),
        }
      : {
          id: "templates",
          target: "recipes-templates",
          title: "Learning recipes",
          body: (
            <>
              Worked examples you can open and run as they are. The fastest way
              to see how nodes connect.
            </>
          ),
        },
  );

  return steps;
}