feat: add pages to ChunkMethodModal (#143)

This commit is contained in:
balibabu
2024-03-22 16:57:09 +08:00
committed by GitHub
parent 1edbd36baf
commit 2f4c71b4b4
36 changed files with 1036 additions and 1322 deletions

View File

@@ -28,6 +28,12 @@ export interface Parserconfig {
to_page: number;
}
export interface IKnowledgeFileParserConfig {
chunk_token_num: number;
layout_recognize: boolean;
pages: number[][];
task_page_size: number;
}
export interface IKnowledgeFile {
chunk_num: number;
create_date: string;
@@ -51,6 +57,7 @@ export interface IKnowledgeFile {
type: string;
update_date: string;
update_time: number;
parser_config: IKnowledgeFileParserConfig;
}
export interface ITenantInfo {

View File

@@ -0,0 +1,12 @@
export interface IChangeParserConfigRequestBody {
pages: number[][];
chunk_token_num: number;
layout_recognize: boolean;
task_page_size: number;
}
export interface IChangeParserRequestBody {
parser_id: string;
doc_id: string;
parser_config: IChangeParserConfigRequestBody;
}