mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Add background color to GraphRag configuration #4980 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { useTranslate } from '@/hooks/common-hooks';
|
||||
import { Divider, Form, Select, Switch } from 'antd';
|
||||
import { Form, Select, Switch } from 'antd';
|
||||
import { upperFirst } from 'lodash';
|
||||
import { useCallback, useMemo } from 'react';
|
||||
import EntityTypesItem from '../entity-types-item';
|
||||
@ -50,8 +50,7 @@ const GraphRagItems = () => {
|
||||
);
|
||||
|
||||
return (
|
||||
<>
|
||||
<Divider></Divider>
|
||||
<div className="border p-2 rounded-lg bg-slate-50 dark:bg-gray-600">
|
||||
<Form.Item
|
||||
name={['parser_config', 'graphrag', 'use_graphrag']}
|
||||
label={t('useGraphRag')}
|
||||
@ -113,7 +112,7 @@ const GraphRagItems = () => {
|
||||
);
|
||||
}}
|
||||
</Form.Item>
|
||||
</>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user