添加知识库管理

This commit is contained in:
XIE7654
2025-07-15 10:21:18 +08:00
parent badba2662f
commit b82b38940b
14 changed files with 474 additions and 66 deletions

View File

@@ -0,0 +1,26 @@
import { BaseModel } from '#/models/base';
export namespace AiKnowledgeApi {
export interface AiKnowledge {
id: number;
remark: string;
creator: string;
modifier: string;
update_time: string;
create_time: string;
is_deleted: boolean;
name: string;
description: string;
embedding_model_id: number;
embedding_model: string;
top_k: number;
similarity_threshold: any;
status: number;
}
}
export class AiKnowledgeModel extends BaseModel<AiKnowledgeApi.AiKnowledge> {
constructor() {
super('/ai/knowledge/');
}
}