mirror of
https://github.com/langgenius/dify.git
synced 2025-12-28 10:32:31 +00:00
fix: Update the logic for segment type settings to support parent-child mode selection. (#21278)
This commit is contained in:
parent
725a221315
commit
f2f6e95880
@ -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…
x
Reference in New Issue
Block a user