mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +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:
@ -1,3 +1,8 @@
|
||||
import {
|
||||
AutoKeywordsItem,
|
||||
AutoQuestionsItem,
|
||||
} from '@/components/auto-keywords-item';
|
||||
import { useShowAutoKeywords } from '@/components/chunk-method-modal/hooks';
|
||||
import Delimiter from '@/components/delimiter';
|
||||
import EntityTypesItem from '@/components/entity-types-item';
|
||||
import ExcelToHtml from '@/components/excel-to-html';
|
||||
@ -27,6 +32,7 @@ const ConfigurationForm = ({ form }: { form: FormInstance }) => {
|
||||
useFetchKnowledgeConfigurationOnMount(form);
|
||||
const { t } = useTranslate('knowledgeConfiguration');
|
||||
const handleChunkMethodSelectChange = useHandleChunkMethodSelectChange(form);
|
||||
const showAutoKeywords = useShowAutoKeywords();
|
||||
|
||||
return (
|
||||
<Form form={form} name="validateOnly" layout="vertical" autoComplete="off">
|
||||
@ -120,6 +126,12 @@ const ConfigurationForm = ({ form }: { form: FormInstance }) => {
|
||||
<Delimiter></Delimiter>
|
||||
</>
|
||||
)}
|
||||
{showAutoKeywords(parserId) && (
|
||||
<>
|
||||
<AutoKeywordsItem></AutoKeywordsItem>
|
||||
<AutoQuestionsItem></AutoQuestionsItem>
|
||||
</>
|
||||
)}
|
||||
{parserId === 'naive' && (
|
||||
<>
|
||||
<MaxTokenNumber></MaxTokenNumber>
|
||||
@ -128,6 +140,7 @@ const ConfigurationForm = ({ form }: { form: FormInstance }) => {
|
||||
<ExcelToHtml></ExcelToHtml>
|
||||
</>
|
||||
)}
|
||||
|
||||
{showRaptorParseConfiguration(parserId) && (
|
||||
<ParseConfiguration></ParseConfiguration>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user