知识库相关

This commit is contained in:
2026-05-27 15:29:18 +08:00
parent 0d946c050e
commit 4174c424fc
5 changed files with 237 additions and 182 deletions

View File

@@ -5,30 +5,42 @@ export interface knowledgeQueryParams {
keyword?: string;
pageNum: number;
pageSize: number;
datasetType?: number; // 1=文本2=视频
}
// 创建知识库参数
export interface CreateknowledgeParams {
name: string; // 必传
datasetType: number; // 1=文本2=视频
description?: string; // 可选
embeddingModel?: string; // 向量模型
status?: string; // 状态
}
// 更新知识库参数
export interface UpdateknowledgeParams {
id: string; // 必传
name?: string; // 可选
datasetType?: number; // 1=文本2=视频
description?: string; // 可选
embeddingModel?: string; // 向量模型
status?: string; // 状态
}
// 数据集信息
export interface knowledgeInfo {
id?: string;
name: string;
datasetType?: number; // 1=文本2=视频
description?: string;
fileCount?: number;
totalSize?: number;
createdAt?: string;
updatedAt?: string;
embeddingModel?: string; // 向量模型
documentCount?: number; // 文档数量
charCount?: number; // 字符数量
status?: string; // 状态
}
// 获取知识库列表