diff --git a/web/app/components/datasets/create/step-two/index.tsx b/web/app/components/datasets/create/step-two/index.tsx index 69ebc0a958..c122f940e7 100644 --- a/web/app/components/datasets/create/step-two/index.tsx +++ b/web/app/components/datasets/create/step-two/index.tsx @@ -7,11 +7,13 @@ import { useBoolean } from 'ahooks' import { XMarkIcon } from '@heroicons/react/20/solid' import { RocketLaunchIcon } from '@heroicons/react/24/outline' import { + RiCloseLine, RiSearchEyeLine, } from '@remixicon/react' import Link from 'next/link' import { groupBy } from 'lodash-es' import Image from 'next/image' +import { Switch } from '@headlessui/react' import SettingCog from '../assets/setting-gear-mod.svg' import OrangeEffect from '../assets/option-card-effect-orange.svg' import FamilyMod from '../assets/family-mod.svg' @@ -24,6 +26,7 @@ import s from './index.module.css' import unescape from './unescape' import escape from './escape' import { OptionCard } from './option-card' +import LanguageSelect from './language-select' import cn from '@/utils/classnames' import type { CrawlOptions, CrawlResultItem, CreateDocumentReq, CustomFile, FileIndexingEstimateResponse, FullDocumentDetail, IndexingEstimateParams, NotionInfo, PreProcessingRule, ProcessRule, Rules, createDocumentResponse } from '@/models/datasets' import { @@ -56,6 +59,8 @@ import type { DefaultModel } from '@/app/components/header/account-setting/model import { ModelTypeEnum } from '@/app/components/header/account-setting/model-provider-page/declarations' import Checkbox from '@/app/components/base/checkbox' import RadioCard from '@/app/components/base/radio-card' +import { MessageChatSquare } from '@/app/components/base/icons/src/public/common' +import { IS_CE_EDITION } from '@/config' const TextLabel: FC = (props) => { return @@ -857,6 +862,35 @@ const StepTwo = ({ {t('datasetCreation.stepTwo.datasetSettingLink')} )} + {IS_CE_EDITION && indexType === IndexingType.QUALIFIED && ( +
+
+
+ +
+
+
{t('datasetCreation.stepTwo.QATitle')}
+
+ {t('datasetCreation.stepTwo.QALanguage')} + +
+
+
+ +
+
+ {docForm === DocForm.QA && !QATipHide && ( +
+ {t('datasetCreation.stepTwo.QATip')} + setQATipHide(true)} /> +
+ )} +
+ )} {/* Embedding model */} {indexType === IndexingType.QUALIFIED && (