|
|
|
|
@ -63,6 +63,7 @@ import CustomDialog from '@/app/components/base/dialog'
|
|
|
|
|
import { PortalToFollowElem, PortalToFollowElemContent, PortalToFollowElemTrigger } from '@/app/components/base/portal-to-follow-elem'
|
|
|
|
|
import { AlertTriangle } from '@/app/components/base/icons/src/vender/solid/alertsAndFeedback'
|
|
|
|
|
import { noop } from 'lodash-es'
|
|
|
|
|
import { useDocLink } from '@/context/i18n'
|
|
|
|
|
|
|
|
|
|
const TextLabel: FC<PropsWithChildren> = (props) => {
|
|
|
|
|
return <label className='system-sm-semibold text-text-secondary'>{props.children}</label>
|
|
|
|
|
@ -146,6 +147,7 @@ const StepTwo = ({
|
|
|
|
|
updateRetrievalMethodCache,
|
|
|
|
|
}: StepTwoProps) => {
|
|
|
|
|
const { t } = useTranslation()
|
|
|
|
|
const docLink = useDocLink()
|
|
|
|
|
const { locale } = useContext(I18n)
|
|
|
|
|
const media = useBreakpoints()
|
|
|
|
|
const isMobile = media === MediaType.mobile
|
|
|
|
|
@ -962,7 +964,7 @@ const StepTwo = ({
|
|
|
|
|
<div className={'mb-1'}>
|
|
|
|
|
<div className='system-md-semibold mb-0.5 text-text-secondary'>{t('datasetSettings.form.retrievalSetting.title')}</div>
|
|
|
|
|
<div className='body-xs-regular text-text-tertiary'>
|
|
|
|
|
<a target='_blank' rel='noopener noreferrer' href='https://docs.dify.ai/guides/knowledge-base/create-knowledge-and-upload-documents#id-4-retrieval-settings' className='text-text-accent'>{t('datasetSettings.form.retrievalSetting.learnMore')}</a>
|
|
|
|
|
<a target='_blank' rel='noopener noreferrer' href={docLink('/guides/knowledge-base/create-knowledge-and-upload-documents')} className='text-text-accent'>{t('datasetSettings.form.retrievalSetting.learnMore')}</a>
|
|
|
|
|
{t('datasetSettings.form.retrievalSetting.longDescription')}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|