mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00

* feat: think tag parse * feat: parse think tag test * feat: pdf parse ux * feat: doc2x parse * perf: rewrite training mode setting * feat: image parse queue * perf: image index * feat: image parse process * feat: add init sh * fix: ts
42 lines
879 B
TypeScript
42 lines
879 B
TypeScript
import type { DatasetDataIndexItemType, DatasetDataSchemaType } from './type';
|
|
|
|
export type CreateDatasetDataProps = {
|
|
teamId: string;
|
|
tmbId: string;
|
|
datasetId: string;
|
|
collectionId: string;
|
|
chunkIndex?: number;
|
|
q: string;
|
|
a?: string;
|
|
indexes?: Omit<DatasetDataIndexItemType, 'dataId'>[];
|
|
};
|
|
|
|
export type UpdateDatasetDataProps = {
|
|
dataId: string;
|
|
q?: string;
|
|
a?: string;
|
|
indexes?: (Omit<DatasetDataIndexItemType, 'dataId'> & {
|
|
dataId?: string; // pg data id
|
|
})[];
|
|
};
|
|
|
|
export type PatchIndexesProps =
|
|
| {
|
|
type: 'create';
|
|
index: Omit<DatasetDataIndexItemType, 'dataId'> & {
|
|
dataId?: string;
|
|
};
|
|
}
|
|
| {
|
|
type: 'update';
|
|
index: DatasetDataIndexItemType;
|
|
}
|
|
| {
|
|
type: 'delete';
|
|
index: DatasetDataIndexItemType;
|
|
}
|
|
| {
|
|
type: 'unChange';
|
|
index: DatasetDataIndexItemType;
|
|
};
|