block selector
parent
dc2b63b832
commit
28726b6cf3
@ -0,0 +1,18 @@
|
|||||||
|
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'),
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue