mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-02-04 09:35:06 +08:00
### What problem does this PR solve? feat: Added auto_keywords and auto_questions fields to the parsing configuration page #2687 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
36
web/src/components/auto-keywords-item.tsx
Normal file
36
web/src/components/auto-keywords-item.tsx
Normal file
@ -0,0 +1,36 @@
|
||||
import { useTranslate } from '@/hooks/common-hooks';
|
||||
import { Form, InputNumber } from 'antd';
|
||||
|
||||
const style = {
|
||||
width: '100%',
|
||||
};
|
||||
|
||||
export const AutoKeywordsItem = () => {
|
||||
const { t } = useTranslate('knowledgeDetails');
|
||||
|
||||
return (
|
||||
<Form.Item
|
||||
label={t('autoKeywords')}
|
||||
name={['parser_config', 'auto_keywords']}
|
||||
tooltip={t('autoKeywordsTip')}
|
||||
initialValue={0}
|
||||
>
|
||||
<InputNumber style={style}></InputNumber>
|
||||
</Form.Item>
|
||||
);
|
||||
};
|
||||
|
||||
export const AutoQuestionsItem = () => {
|
||||
const { t } = useTranslate('knowledgeDetails');
|
||||
|
||||
return (
|
||||
<Form.Item
|
||||
label={t('autoQuestions')}
|
||||
name={['parser_config', 'auto_questions']}
|
||||
tooltip={t('autoQuestionsTip')}
|
||||
initialValue={0}
|
||||
>
|
||||
<InputNumber style={style}></InputNumber>
|
||||
</Form.Item>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user