mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-14 23:22:22 +00:00
feat: dataset index prefix (#5061)
This commit is contained in:
2
packages/global/core/dataset/controller.d.ts
vendored
2
packages/global/core/dataset/controller.d.ts
vendored
@@ -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 =
|
||||
|
@@ -7,9 +7,9 @@ export type PushDataToTrainingQueueProps = {
|
||||
datasetId: string;
|
||||
collectionId: string;
|
||||
|
||||
data: PushDatasetDataChunkProps[];
|
||||
mode?: TrainingModeEnum;
|
||||
data: PushDatasetDataChunkProps[];
|
||||
prompt?: string;
|
||||
|
||||
agentModel: string;
|
||||
vectorModel: string;
|
||||
|
3
packages/global/core/dataset/type.d.ts
vendored
3
packages/global/core/dataset/type.d.ts
vendored
@@ -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;
|
||||
|
Reference in New Issue
Block a user