feat(frontend): 更新三种切分模式与PDF定位
This commit is contained in:
@@ -218,7 +218,7 @@ function toBackendConfig(): DataProcessConfig {
|
||||
chunk_size: unstructuredOptions.value.chunkSize,
|
||||
chunk_overlap: unstructuredOptions.value.chunkOverlap,
|
||||
min_chunk_size: unstructuredOptions.value.minChunkSize,
|
||||
custom_delimiter: unstructuredOptions.value.customDelimiter,
|
||||
semantic_breakpoint_percentile: unstructuredOptions.value.semanticBreakpointPercentile,
|
||||
preserve_tables: unstructuredOptions.value.preserveTables,
|
||||
preserve_code_blocks: unstructuredOptions.value.preserveCodeBlocks,
|
||||
preserve_lists: unstructuredOptions.value.preserveLists,
|
||||
@@ -266,6 +266,9 @@ function mapPreviewItem(item: DataProcessPreviewItem): PreviewItem {
|
||||
sourceEndLine: item.source_end_line,
|
||||
tokenCount: item.token_count,
|
||||
status: item.status,
|
||||
sourcePages: Array.isArray(item.quality_score?.source_pages)
|
||||
? item.quality_score.source_pages.filter((value): value is number => typeof value === 'number')
|
||||
: [],
|
||||
updatedAt: item.updated_at,
|
||||
}
|
||||
}
|
||||
@@ -283,7 +286,7 @@ function previewAffectingOptions() {
|
||||
chunkSize,
|
||||
chunkOverlap,
|
||||
minChunkSize,
|
||||
customDelimiter,
|
||||
semanticBreakpointPercentile,
|
||||
preserveTables,
|
||||
preserveCodeBlocks,
|
||||
preserveLists,
|
||||
@@ -294,7 +297,7 @@ function previewAffectingOptions() {
|
||||
chunkSize,
|
||||
chunkOverlap,
|
||||
minChunkSize,
|
||||
customDelimiter: chunkMethod === 'custom' ? customDelimiter : '',
|
||||
semanticBreakpointPercentile,
|
||||
preserveTables,
|
||||
preserveCodeBlocks,
|
||||
preserveLists,
|
||||
|
||||
Reference in New Issue
Block a user