mirror of https://github.com/langgenius/dify.git
parent
77ba3e8f26
commit
1a078657d8
|
|
@ -20,7 +20,6 @@ const VALUE_LIMIT = {
|
|||
max: 1,
|
||||
}
|
||||
|
||||
const key = 'score_threshold'
|
||||
const ScoreThresholdItem: FC<Props> = ({
|
||||
className,
|
||||
value,
|
||||
|
|
@ -39,9 +38,9 @@ const ScoreThresholdItem: FC<Props> = ({
|
|||
return (
|
||||
<ParamItem
|
||||
className={className}
|
||||
id={key}
|
||||
name={t(`appDebug.datasetConfig.${key}`)}
|
||||
tip={t(`appDebug.datasetConfig.${key}Tip`) as string}
|
||||
id='score_threshold'
|
||||
name={t('appDebug.datasetConfig.score_threshold')}
|
||||
tip={t('appDebug.datasetConfig.score_thresholdTip') as string}
|
||||
{...VALUE_LIMIT}
|
||||
value={value}
|
||||
enable={enable}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ const VALUE_LIMIT = {
|
|||
max: maxTopK,
|
||||
}
|
||||
|
||||
const key = 'top_k'
|
||||
const TopKItem: FC<Props> = ({
|
||||
className,
|
||||
value,
|
||||
|
|
@ -41,9 +40,9 @@ const TopKItem: FC<Props> = ({
|
|||
return (
|
||||
<ParamItem
|
||||
className={className}
|
||||
id={key}
|
||||
name={t(`appDebug.datasetConfig.${key}`)}
|
||||
tip={t(`appDebug.datasetConfig.${key}Tip`) as string}
|
||||
id='top_k'
|
||||
name={t('appDebug.datasetConfig.top_k')}
|
||||
tip={t('appDebug.datasetConfig.top_kTip') as string}
|
||||
{...VALUE_LIMIT}
|
||||
value={value}
|
||||
enable={enable}
|
||||
|
|
|
|||
Loading…
Reference in New Issue