mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-01 17:45:28 +08:00
### What problem does this PR solve? Feat: Display the document configuration dialog with shadcn #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
30
web/src/components/auto-keywords-form-field.tsx
Normal file
30
web/src/components/auto-keywords-form-field.tsx
Normal file
@ -0,0 +1,30 @@
|
||||
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')}
|
||||
></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')}
|
||||
></SliderInputFormField>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user