mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-25 08:06:48 +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)
17 lines
381 B
TypeScript
17 lines
381 B
TypeScript
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>
|
|
);
|
|
}
|