ragflow/web/src/components/auto-keywords-form-field.tsx
balibabu 3234a15aae
Fix: Fixed the issue of retrieval operator text overlapping #3221 (#8652)
### 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)
2025-07-03 19:04:06 +08:00

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>
);
}