feat: dataset index prefix (#5061)

This commit is contained in:
Archer
2025-06-18 17:26:53 +08:00
committed by GitHub
parent 6b2ea696c5
commit 36fafd2149
34 changed files with 371 additions and 259 deletions

View File

@@ -10,6 +10,7 @@ export type CreateDatasetDataProps = {
a?: string;
imageId?: string;
indexes?: Omit<DatasetDataIndexItemType, 'dataId'>[];
indexPrefix?: string;
};
export type UpdateDatasetDataProps = {
@@ -21,6 +22,7 @@ export type UpdateDatasetDataProps = {
dataId?: string; // pg data id
})[];
imageId?: string;
indexPrefix?: string;
};
export type PatchIndexesProps =

View File

@@ -7,9 +7,9 @@ export type PushDataToTrainingQueueProps = {
datasetId: string;
collectionId: string;
data: PushDatasetDataChunkProps[];
mode?: TrainingModeEnum;
data: PushDatasetDataChunkProps[];
prompt?: string;
agentModel: string;
vectorModel: string;

View File

@@ -36,6 +36,7 @@ export type ChunkSettingsType = {
// Index enhance
imageIndex?: boolean;
autoIndexes?: boolean;
indexPrefixTitle?: boolean;
// Chunk setting
chunkSettingMode?: ChunkSettingModeEnum; // 系统参数/自定义参数
@@ -184,8 +185,6 @@ export type DatasetTrainingSchemaType = {
expireAt: Date;
lockTime: Date;
mode: TrainingModeEnum;
model?: string;
prompt?: string;
dataId?: string;
q: string;
a: string;