mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-24 07:26:47 +08:00
### What problem does this PR solve? Feat: Added toc enhance field to chat and retrieval operator configuration #10436 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
16
web/src/components/toc-enhance-form-field.tsx
Normal file
16
web/src/components/toc-enhance-form-field.tsx
Normal file
@ -0,0 +1,16 @@
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { SwitchFormField } from './switch-fom-field';
|
||||
|
||||
type Props = { name: string };
|
||||
|
||||
export function TOCEnhanceFormField({ name }: Props) {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<SwitchFormField
|
||||
name={name}
|
||||
label={t('chat.tocEnhance')}
|
||||
tooltip={t('chat.tocEnhanceTip')}
|
||||
></SwitchFormField>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user