mirror of
				https://github.com/langgenius/dify.git
				synced 2025-10-31 19:03:09 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			721 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			721 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { useTranslation } from 'react-i18next'
 | |
| import {
 | |
|   IndexMethodEnum,
 | |
|   RetrievalSearchMethodEnum,
 | |
| } from '../types'
 | |
| 
 | |
| export const useSettingsDisplay = () => {
 | |
|   const { t } = useTranslation()
 | |
| 
 | |
|   return {
 | |
|     [IndexMethodEnum.QUALIFIED]: t('datasetCreation.stepTwo.qualified'),
 | |
|     [IndexMethodEnum.ECONOMICAL]: t('datasetSettings.form.indexMethodEconomy'),
 | |
|     [RetrievalSearchMethodEnum.semantic]: t('dataset.retrieval.semantic_search.title'),
 | |
|     [RetrievalSearchMethodEnum.fullText]: t('dataset.retrieval.full_text_search.title'),
 | |
|     [RetrievalSearchMethodEnum.hybrid]: t('dataset.retrieval.hybrid_search.title'),
 | |
|     [RetrievalSearchMethodEnum.invertedIndex]: t('dataset.retrieval.invertedIndex.title'),
 | |
|   }
 | |
| }
 | 
