mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-06-01 10:09:24 +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>
|
</Select>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<EntityTypesItem></EntityTypesItem>
|
|
||||||
<Form.Item noStyle dependencies={['parser_id']}>
|
<Form.Item noStyle dependencies={['parser_id']}>
|
||||||
{({ getFieldValue }) => {
|
{({ getFieldValue }) => {
|
||||||
const parserId = getFieldValue('parser_id');
|
const parserId = getFieldValue('parser_id');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
{parserId === 'knowledge_graph' && (
|
||||||
|
<EntityTypesItem></EntityTypesItem>
|
||||||
|
)}
|
||||||
{parserId === 'naive' && (
|
{parserId === 'naive' && (
|
||||||
<>
|
<>
|
||||||
<MaxTokenNumber></MaxTokenNumber>
|
<MaxTokenNumber></MaxTokenNumber>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user