Feat: Remove "page index" and "use kg" from chat and retrieval form. (#17627)

This commit is contained in:
balibabu
2026-07-31 16:40:53 +08:00
committed by GitHub
parent ec7a9797cb
commit 4f058667ff
9 changed files with 7 additions and 64 deletions

View File

@@ -1,16 +0,0 @@
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>
);
}

View File

@@ -1,20 +0,0 @@
import { useTranslation } from 'react-i18next';
import { SwitchFormField } from './switch-fom-field';
interface UseKnowledgeGraphFormFieldProps {
name: string;
}
export function UseKnowledgeGraphFormField({
name,
}: UseKnowledgeGraphFormFieldProps) {
const { t } = useTranslation();
return (
<SwitchFormField
name={name}
label={t('chat.useKnowledgeGraph')}
tooltip={t('chat.useKnowledgeGraphTip')}
></SwitchFormField>
);
}