mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-13 07:51:01 +00:00
### What problem does this PR solve? Fix: Fixed the issue of retrieval operator text overlapping #3221 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
34 lines
860 B
TypeScript
34 lines
860 B
TypeScript
import { FormLayout } from '@/constants/form';
|
|
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')}
|
|
layout={FormLayout.Horizontal}
|
|
></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')}
|
|
layout={FormLayout.Horizontal}
|
|
></SliderInputFormField>
|
|
);
|
|
}
|