mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-02 12:48:30 +00:00
External dataset (#1497)
* perf: read rawText and chunk code * perf: read raw text * perf: read rawtext * perf: token count * log
This commit is contained in:
20
projects/app/src/global/core/dataset/api.d.ts
vendored
20
projects/app/src/global/core/dataset/api.d.ts
vendored
@@ -1,6 +1,7 @@
|
||||
import { PushDatasetDataChunkProps } from '@fastgpt/global/core/dataset/api';
|
||||
import {
|
||||
DatasetSearchModeEnum,
|
||||
DatasetSourceReadTypeEnum,
|
||||
DatasetTypeEnum,
|
||||
ImportDataSourceEnum,
|
||||
TrainingModeEnum
|
||||
@@ -75,22 +76,3 @@ export type SearchTestResponse = {
|
||||
};
|
||||
|
||||
/* =========== training =========== */
|
||||
export type PostPreviewFilesChunksProps = {
|
||||
type: ImportDataSourceEnum;
|
||||
sourceId: string;
|
||||
chunkSize: number;
|
||||
overlapRatio: number;
|
||||
customSplitChar?: string;
|
||||
};
|
||||
|
||||
export type PostPreviewFilesChunksResponse = {
|
||||
fileId: string;
|
||||
rawTextLength: number;
|
||||
chunks: string[];
|
||||
}[];
|
||||
export type PostPreviewTableChunksResponse = {
|
||||
fileId: string;
|
||||
totalChunks: number;
|
||||
chunks: { q: string; a: string; chunkIndex: number }[];
|
||||
errorText?: string;
|
||||
}[];
|
||||
|
Reference in New Issue
Block a user