Feature: Added data source functionality #10703 (#11046)

### What problem does this PR solve?

Feature: Added data source functionality

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
chanx
2025-11-06 11:53:46 +08:00
committed by GitHub
parent 15c75bbf15
commit f581a1c4e5
31 changed files with 2526 additions and 16 deletions

View File

@ -1,6 +1,12 @@
import { RunningStatus } from '@/constants/knowledge';
import { DataSourceKey } from '@/pages/user-setting/data-source/contant';
import { TreeData } from '@antv/g6/lib/types';
export interface IConnector {
id: string;
name: string;
status: RunningStatus;
source: DataSourceKey;
}
// knowledge base
export interface IKnowledge {
avatar?: any;
@ -35,6 +41,7 @@ export interface IKnowledge {
mindmap_task_id?: string;
graphrag_task_finish_at: string;
graphrag_task_id: string;
connectors: IConnector[];
}
export interface IKnowledgeResult {