Browse Source

Fix: Remove the document language parameter. #5640 (#5728)

### What problem does this PR solve?

Fix: Remove the document language parameter. #5686

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.17.1
balibabu 7 months ago
parent
commit
5229a76f68
No account linked to committer's email address

+ 1
- 16
web/src/pages/add-knowledge/components/knowledge-setting/configuration/index.tsx View File

import { useTranslate } from '@/hooks/common-hooks'; import { useTranslate } from '@/hooks/common-hooks';
import { normFile } from '@/utils/file-util'; import { normFile } from '@/utils/file-util';
import { PlusOutlined } from '@ant-design/icons'; import { PlusOutlined } from '@ant-design/icons';
import { Button, Form, Input, Radio, Select, Space, Upload } from 'antd';
import { Button, Form, Input, Radio, Space, Upload } from 'antd';
import { FormInstance } from 'antd/lib'; import { FormInstance } from 'antd/lib';
import { useEffect, useMemo, useState } from 'react'; import { useEffect, useMemo, useState } from 'react';
import { import {


import styles from '../index.less'; import styles from '../index.less';


const { Option } = Select;

const ConfigurationComponentMap = { const ConfigurationComponentMap = {
[DocumentParserType.Naive]: NaiveConfiguration, [DocumentParserType.Naive]: NaiveConfiguration,
[DocumentParserType.Qa]: QAConfiguration, [DocumentParserType.Qa]: QAConfiguration,
<Form.Item name="description" label={t('description')}> <Form.Item name="description" label={t('description')}>
<Input /> <Input />
</Form.Item> </Form.Item>
<Form.Item
label={t('language')}
name="language"
initialValue={'English'}
rules={[{ required: true, message: t('languageMessage') }]}
>
<Select placeholder={t('languagePlaceholder')}>
<Option value="English">{t('english')}</Option>
<Option value="Chinese">{t('chinese')}</Option>
<Option value="Vietnamese">{t('vietnamese')}</Option>
<Option value="Portuguese (Brazil)">{t('portugueseBr')}</Option>
</Select>
</Form.Item>
<Form.Item <Form.Item
name="permission" name="permission"
label={t('permissions')} label={t('permissions')}

Loading…
Cancel
Save