feat: 模型数据管理
feat: 模型数据导入 feat: redis 向量入库 feat: 向量索引 feat: 文件导入模型 perf: 交互 perf: prompt
This commit is contained in:
22
src/types/mongoSchema.d.ts
vendored
22
src/types/mongoSchema.d.ts
vendored
@@ -51,12 +51,26 @@ export interface ModelPopulate extends ModelSchema {
|
||||
userId: UserModelSchema;
|
||||
}
|
||||
|
||||
export type ModelDataType = 0 | 1;
|
||||
export interface ModelDataSchema {
|
||||
_id: string;
|
||||
q: string;
|
||||
a: string;
|
||||
status: 0 | 1 | 2;
|
||||
createTime: Date;
|
||||
modelId: string;
|
||||
userId: string;
|
||||
text: string;
|
||||
q: {
|
||||
id: string;
|
||||
text: string;
|
||||
}[];
|
||||
status: ModelDataType;
|
||||
}
|
||||
|
||||
export interface ModelSplitDataSchema {
|
||||
_id: string;
|
||||
userId: string;
|
||||
modelId: string;
|
||||
rawText: string;
|
||||
errorText: string;
|
||||
textList: string[];
|
||||
}
|
||||
|
||||
export interface TrainingSchema {
|
||||
|
||||
Reference in New Issue
Block a user