diff --git a/web/app/components/datasets/create-from-pipeline/list/template-card/actions.tsx b/web/app/components/datasets/create-from-pipeline/list/template-card/actions.tsx index 55a3e30d8a..9beb466c26 100644 --- a/web/app/components/datasets/create-from-pipeline/list/template-card/actions.tsx +++ b/web/app/components/datasets/create-from-pipeline/list/template-card/actions.tsx @@ -6,7 +6,7 @@ import Operations from './operations' import CustomPopover from '@/app/components/base/popover' type ActionsProps = { - handleApplyTemplate: () => void + onApplyTemplate: () => void handleShowTemplateDetails: () => void showMoreOperations: boolean openEditModal: () => void @@ -15,7 +15,7 @@ type ActionsProps = { } const Actions = ({ - handleApplyTemplate, + onApplyTemplate, handleShowTemplateDetails, showMoreOperations, openEditModal, @@ -28,7 +28,7 @@ const Actions = ({
) } diff --git a/web/models/datasets.ts b/web/models/datasets.ts index dc804d91d8..6b0a00182a 100644 --- a/web/models/datasets.ts +++ b/web/models/datasets.ts @@ -6,6 +6,9 @@ import type { MetadataFilteringVariableType } from '@/app/components/workflow/no import type { MetadataItemWithValue } from '@/app/components/datasets/metadata/types' import { ExternalKnowledgeBase, General, Graph, ParentChild, Qa } from '@/app/components/base/icons/src/public/knowledge/dataset-card' import { GeneralChunk, ParentChildChunk, QuestionAndAnswer } from '@/app/components/base/icons/src/vender/knowledge' +import type { Edge, EnvironmentVariable, Node } from '@/app/components/workflow/types' +import type { Viewport } from 'reactflow' +import type { RAGPipelineVariables } from './pipeline' export enum DataSourceType { FILE = 'upload_file', @@ -737,6 +740,7 @@ export type CreateDatasetReq = { user_id: string role?: 'owner' | 'admin' | 'editor' | 'normal' | 'dataset_operator' }[] + yaml_content?: string } export type CreateDatasetResponse = { @@ -749,4 +753,14 @@ export type CreateDatasetResponse = { created_at: number updated_by: string updated_at: number + pipeline_info: { + id: string + graph: { + nodes: Node[] + edges: Edge[] + viewport?: Viewport + } + environment_variables: EnvironmentVariable[] + rag_pipeline_variables: RAGPipelineVariables + } }