소스 검색

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

tags/1.5.0
onlylhf 4 달 전
부모
커밋
f2f6e95880
No account linked to committer's email address
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7
    0
      web/app/components/datasets/create/step-two/index.tsx

+ 7
- 0
web/app/components/datasets/create/step-two/index.tsx 파일 보기

@@ -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…
취소
저장