mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-05-31 02:25:49 +08:00
### What problem does this PR solve? fix: Entity types are only displayed when the knowledge graph is selected #1594 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
parent
3c19e3125b
commit
06dfb83529
@ -98,13 +98,16 @@ const ConfigurationForm = ({ form }: { form: FormInstance }) => {
|
||||
))}
|
||||
</Select>
|
||||
</Form.Item>
|
||||
<EntityTypesItem></EntityTypesItem>
|
||||
|
||||
<Form.Item noStyle dependencies={['parser_id']}>
|
||||
{({ getFieldValue }) => {
|
||||
const parserId = getFieldValue('parser_id');
|
||||
|
||||
return (
|
||||
<>
|
||||
{parserId === 'knowledge_graph' && (
|
||||
<EntityTypesItem></EntityTypesItem>
|
||||
)}
|
||||
{parserId === 'naive' && (
|
||||
<>
|
||||
<MaxTokenNumber></MaxTokenNumber>
|
||||
|
Loading…
x
Reference in New Issue
Block a user