perf: 知识库数据结构

This commit is contained in:
archer
2023-04-01 22:31:56 +08:00
parent 5759cbeae0
commit ae4243b522
26 changed files with 611 additions and 518 deletions

View File

@@ -60,7 +60,7 @@ export interface ModelDataSchema {
q: {
id: string;
text: string;
}[];
};
status: ModelDataType;
}

View File

@@ -1,6 +1,7 @@
import { ModelDataStatusEnum } from '@/constants/redis';
export interface RedisModelDataItemType {
id: string;
vector: number[];
dataId: string;
modelId: string;
q: string;
text: string;
status: `${ModelDataStatusEnum}`;
}