| | |
| | | return ( |
| | | <div className='space-y-2'> |
| | | {supportRetrievalMethods.includes(RETRIEVE_METHOD.semantic) && ( |
| | | <OptionCard disabled={disabled} icon={<Image className='h-4 w-4' src={retrievalIcon.vector} alt='' />} |
| | | <OptionCard disabled={disabled} icon={<Image className='w-4 h-4' src={retrievalIcon.vector} alt='' />} |
| | | title={t('dataset.retrieval.semantic_search.title')} |
| | | description={t('dataset.retrieval.semantic_search.description')} |
| | | isActive={ |
| | |
| | | </OptionCard> |
| | | )} |
| | | {supportRetrievalMethods.includes(RETRIEVE_METHOD.fullText) && ( |
| | | <OptionCard disabled={disabled} icon={<Image className='h-4 w-4' src={retrievalIcon.fullText} alt='' />} |
| | | <OptionCard disabled={disabled} icon={<Image className='w-4 h-4' src={retrievalIcon.fullText} alt='' />} |
| | | title={t('dataset.retrieval.full_text_search.title')} |
| | | description={t('dataset.retrieval.full_text_search.description')} |
| | | isActive={ |
| | |
| | | </OptionCard> |
| | | )} |
| | | {supportRetrievalMethods.includes(RETRIEVE_METHOD.hybrid) && ( |
| | | <OptionCard disabled={disabled} icon={<Image className='h-4 w-4' src={retrievalIcon.hybrid} alt='' />} |
| | | <OptionCard disabled={disabled} icon={<Image className='w-4 h-4' src={retrievalIcon.hybrid} alt='' />} |
| | | title={ |
| | | <div className='flex items-center space-x-1'> |
| | | <div>{t('dataset.retrieval.hybrid_search.title')}</div> |
| | | <Badge text={t('dataset.retrieval.hybrid_search.recommend')!} className='ml-1 h-[18px] border-text-accent-secondary text-text-accent-secondary' uppercase /> |
| | | <Badge text={t('dataset.retrieval.hybrid_search.recommend')!} className='border-text-accent-secondary text-text-accent-secondary ml-1 h-[18px]' uppercase /> |
| | | </div> |
| | | } |
| | | description={t('dataset.retrieval.hybrid_search.description')} isActive={ |