2025-07-03 19:04:06 +08:00
|
|
|
import { FormLayout } from '@/constants/form';
|
2025-04-25 11:15:44 +08:00
|
|
|
import { useTranslate } from '@/hooks/common-hooks';
|
|
|
|
|
import { SliderInputFormField } from './slider-input-form-field';
|
|
|
|
|
|
|
|
|
|
export function AutoKeywordsFormField() {
|
|
|
|
|
const { t } = useTranslate('knowledgeDetails');
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<SliderInputFormField
|
|
|
|
|
name={'parser_config.auto_keywords'}
|
|
|
|
|
label={t('autoKeywords')}
|
|
|
|
|
max={30}
|
|
|
|
|
min={0}
|
|
|
|
|
tooltip={t('autoKeywordsTip')}
|
2025-07-03 19:04:06 +08:00
|
|
|
layout={FormLayout.Horizontal}
|
2025-04-25 11:15:44 +08:00
|
|
|
></SliderInputFormField>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function AutoQuestionsFormField() {
|
|
|
|
|
const { t } = useTranslate('knowledgeDetails');
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<SliderInputFormField
|
|
|
|
|
name={'parser_config.auto_questions'}
|
|
|
|
|
label={t('autoQuestions')}
|
|
|
|
|
max={10}
|
|
|
|
|
min={0}
|
|
|
|
|
tooltip={t('autoQuestionsTip')}
|
2025-07-03 19:04:06 +08:00
|
|
|
layout={FormLayout.Horizontal}
|
2025-04-25 11:15:44 +08:00
|
|
|
></SliderInputFormField>
|
|
|
|
|
);
|
|
|
|
|
}
|