Procházet zdrojové kódy

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

tags/1.5.0
onlylhf před 4 měsíci
rodič
revize
f2f6e95880
Žádný účet není propojen s e-mailovou adresou tvůrce revize

+ 7
- 0
web/app/components/datasets/create/step-two/index.tsx Zobrazit soubor

@@ -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()
}

Načítá se…
Zrušit
Uložit