fix: Update the logic for segment type settings to support parent-child mode selection. (#21278)

This commit is contained in:
onlylhf
2025-06-23 10:36:30 +08:00
committed by GitHub
parent 725a221315
commit f2f6e95880

View File

@@ -207,7 +207,14 @@ const StepTwo = ({
} }
if (value === ChunkingMode.parentChild && indexType === IndexingType.ECONOMICAL) if (value === ChunkingMode.parentChild && indexType === IndexingType.ECONOMICAL)
setIndexType(IndexingType.QUALIFIED) setIndexType(IndexingType.QUALIFIED)
setDocForm(value) setDocForm(value)
if (value === ChunkingMode.parentChild)
setSegmentationType(ProcessMode.parentChild)
else
setSegmentationType(ProcessMode.general)
// eslint-disable-next-line ts/no-use-before-define // eslint-disable-next-line ts/no-use-before-define
currentEstimateMutation.reset() currentEstimateMutation.reset()
} }