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

pull/21278/head
onlylhf 11 months ago
parent 223448af18
commit dea9dd5421

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

Loading…
Cancel
Save