Files
DataMate/frontend/src/pages/Layout/menu.tsx
chenghh-9609 d89811f238 add knowledgebase page (#39)
* feat: Update site name to DataMate and refine text for AI data processing

* feat: Refactor settings page and implement model access functionality

- Created a new ModelAccess component for managing model configurations.
- Removed the old Settings component and replaced it with a new SettingsPage component that integrates ModelAccess, SystemConfig, and WebhookConfig.
- Added SystemConfig component for managing system settings.
- Implemented WebhookConfig component for managing webhook configurations.
- Updated API functions for model management in settings.apis.ts.
- Adjusted routing to point to the new SettingsPage component.

* feat: Implement Data Collection Page with Task Management and Execution Log

- Created DataCollectionPage component to manage data collection tasks.
- Added TaskManagement and ExecutionLog components for task handling and logging.
- Integrated task operations including start, stop, edit, and delete functionalities.
- Implemented filtering and searching capabilities in task management.
- Introduced SimpleCronScheduler for scheduling tasks with cron expressions.
- Updated CreateTask component to utilize new scheduling and template features.
- Enhanced BasicInformation component to conditionally render fields based on visibility settings.
- Refactored ImportConfiguration component to remove NAS import section.

* feat: Update task creation API endpoint and enhance task creation form with new fields and validation

* Refactor file upload and operator management components

- Removed unnecessary console logs from file download and export functions.
- Added size property to TaskItem interface for better task management.
- Simplified TaskUpload component by utilizing useFileSliceUpload hook for file upload logic.
- Enhanced OperatorPluginCreate component to handle file uploads and parsing more efficiently.
- Updated ConfigureStep component to use Ant Design Form for better data handling and validation.
- Improved PreviewStep component to navigate back to the operator market.
- Added support for additional file types in UploadStep component.
- Implemented delete operator functionality in OperatorMarketPage with confirmation prompts.
- Cleaned up unused API functions in operator.api.ts to streamline the codebase.
- Fixed number formatting utility to handle zero values correctly.

* Refactor Knowledge Generation to Knowledge Base

- Created new API service for Knowledge Base operations including querying, creating, updating, and deleting knowledge bases and files.
- Added constants for Knowledge Base status and type mappings.
- Defined models for Knowledge Base and related files.
- Removed obsolete Knowledge Base creation and home components, replacing them with new implementations under the Knowledge Base structure.
- Updated routing to reflect the new Knowledge Base paths.
- Adjusted menu items to align with the new Knowledge Base terminology.
- Modified ModelAccess interface to include modelName and type properties.
2025-10-30 21:33:33 +08:00

116 lines
2.4 KiB
TypeScript

import {
FolderOpen,
Tag,
Target,
BookOpen,
Shuffle,
BarChart3,
MessageSquare,
GitBranch,
Zap,
Shield,
Database,
Store,
Merge,
} from "lucide-react";
export const menuItems = [
{
id: "collection",
title: "数据归集",
icon: Database,
description: "创建、导入和管理数据集",
color: "bg-orange-500",
},
{
id: "management",
title: "数据管理",
icon: FolderOpen,
description: "创建、导入和管理数据集",
color: "bg-blue-500",
},
{
id: "cleansing",
title: "数据清洗",
icon: GitBranch,
description: "数据清洗和预处理",
color: "bg-purple-500",
},
{
id: "annotation",
title: "数据标注",
icon: Tag,
description: "对数据进行标注和标记",
color: "bg-green-500",
},
{
id: "synthesis",
title: "数据合成",
icon: Shuffle,
description: "智能数据合成和配比",
color: "bg-pink-500",
children: [
{
id: "synthesis/task",
title: "合成任务",
icon: Merge,
},
{
id: "synthesis/ratio-task",
title: "配比任务",
icon: BarChart3,
},
],
},
{
id: "evaluation",
title: "数据评估",
icon: Target,
badge: 4,
description: "质量分析、性能评估和偏见检测",
color: "bg-indigo-500",
},
{
id: "knowledge-base",
title: "知识生成",
icon: BookOpen,
description: "面向RAG的知识库构建",
color: "bg-teal-500",
},
{
id: "operator-market",
title: "算子市场",
icon: Store,
description: "算子上传与管理",
color: "bg-yellow-500",
},
];
export const features = [
{
icon: GitBranch,
title: "智能编排",
description: "可视化数据清洗流程编排,拖拽式设计复杂的数据清洗管道",
},
{
icon: MessageSquare,
title: "对话助手",
description: "通过自然语言对话完成复杂的数据集操作和业务流程",
},
{
icon: Target,
title: "全面评估",
description: "多维度数据质量评估,包含统计分析、性能测试和偏见检测",
},
{
icon: Zap,
title: "高效处理",
description: "完整的数据清洗流水线,从原始数据到可用数据集",
},
{
icon: Shield,
title: "知识管理",
description: "构建面向RAG的知识库,支持智能问答和检索",
},
];