Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix: Remove the mode from the compiler operator. (#19150)

balibabu68a2c1d58aed
diff --git a/web/src/pages/agent/constant/pipeline.tsx b/web/src/pages/agent/constant/pipeline.tsx
index 9c916a4285..66fa1121d0 100644
--- a/web/src/pages/agent/constant/pipeline.tsx
+++ b/web/src/pages/agent/constant/pipeline.tsx
@@ -409,7 +409,6 @@ export function getInitialExtractorValues() {
export const initialCompilationValues = {
compilation_template_group_id: '',
llm_id: '',
- mode: 'entity',
outputs: {
chunks: { type: 'Array<Object>', value: [] },
},
diff --git a/web/src/pages/agent/form/compilation-form/index.tsx b/web/src/pages/agent/form/compilation-form/index.tsx
index b5fdbce082..9a757654a2 100644
--- a/web/src/pages/agent/form/compilation-form/index.tsx
+++ b/web/src/pages/agent/form/compilation-form/index.tsx
@@ -1,10 +1,7 @@
import { CompilationTemplateFormField } from '@/components/compilation-template-form-field';
import { LargeModelFormField } from '@/components/large-model-form-field';
-import { SelectWithSearch } from '@/components/originui/select-with-search';
import { useSyncExternalFormErrors } from '@/components/pipeline-operator-tabs/use-sync-external-form-errors';
-import { RAGFlowFormItem } from '@/components/ragflow-form';
import { Form } from '@/components/ui/form';
-import { useIsGoBackend } from '@/utils/backend-variant';
import { zodResolver } from '@hookform/resolvers/zod';
import type { TFunction } from 'i18next';
import { memo } from 'react';
@@ -27,7 +24,6 @@ export function buildCompilationFormSchema(t: TFunction) {
.string()
.min(1, t('knowledgeConfiguration.compilationTemplateRequired')),
llm_id: z.string().optional(),
- mode: z.enum(['entity', 'topic']),
});
}
@@ -50,9 +46,7 @@ const CompilationForm = ({
}: INextOperatorForm) => {
const defaultValues = useFormValues(initialCompilationValues, node);
const ownerTenantId = useOwnerTenantId();
- const { t } = useTranslation();
const FormSchema = useFormSchema();
- const isGo = useIsGoBackend();
const form = useForm<CompilationFormSchemaType>({
defaultValues,
@@ -73,30 +67,6 @@ const CompilationForm = ({
name="llm_id"
ownerTenantId={ownerTenantId}
></LargeModelFormField>
- {isGo && (
- <RAGFlowFormItem
- name="mode"
- label={t('knowledgeCompilation.wikiMode')}
- tooltip={t('knowledgeCompilation.wikiModeTip')}
- >
- {(field) => (
- <SelectWithSearch
- value={field.value}
- onChange={field.onChange}
- options={[
- {
- label: t('knowledgeCompilation.entityMode'),
- value: 'entity',
- },
- {
- label: t('knowledgeCompilation.topicMode'),
- value: 'topic',
- },
- ]}
- />
- )}
- </RAGFlowFormItem>
- )}
</FormWrapper>
{!hideOutputs && (
<div className="p-5">