Browse Source

Feat: Even if the knowledge base has slices, the chunk method can be changed #7115 (#7201)

### What problem does this PR solve?

Feat: Even if the knowledge base has slices, the chunk method can be
changed #7115

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
tags/v0.18.0
balibabu 6 months ago
parent
commit
dde8c26feb
No account linked to committer's email address

+ 0
- 2
web/src/pages/add-knowledge/components/knowledge-setting/configuration/common-item.tsx View File

const { t } = useTranslate('knowledgeConfiguration'); const { t } = useTranslate('knowledgeConfiguration');
const form = Form.useFormInstance(); const form = Form.useFormInstance();
const handleChunkMethodSelectChange = useHandleChunkMethodSelectChange(form); const handleChunkMethodSelectChange = useHandleChunkMethodSelectChange(form);
const disabled = useHasParsedDocument();
const parserList = useSelectChunkMethodList(); const parserList = useSelectChunkMethodList();


return ( return (
> >
<Select <Select
placeholder={t('chunkMethodPlaceholder')} placeholder={t('chunkMethodPlaceholder')}
disabled={disabled}
onChange={handleChunkMethodSelectChange} onChange={handleChunkMethodSelectChange}
options={parserList} options={parserList}
></Select> ></Select>

Loading…
Cancel
Save