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

pull/21354/head
onlylhf 8 months ago committed by GitHub
parent 725a221315
commit f2f6e95880
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -207,7 +207,14 @@ 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