From b0061fb4ccba542c0f9dd6addc5dcb4c01c7a5b4 Mon Sep 17 00:00:00 2001 From: balibabu Date: Wed, 5 Aug 2026 10:57:10 +0800 Subject: [PATCH] Feat: Remove the pageindex option from the extraction operator. (#17826) --- web/src/locales/en.ts | 4 ---- web/src/locales/zh.ts | 1 - web/src/pages/agent/constant/pipeline.tsx | 1 - .../pages/agent/form/extractor-form/index.tsx | 22 +++++++------------ 4 files changed, 8 insertions(+), 20 deletions(-) diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts index e72b6e0e5a..2fc072f459 100644 --- a/web/src/locales/en.ts +++ b/web/src/locales/en.ts @@ -3115,7 +3115,6 @@ This delimiter is used to split the input text into several text pieces echo of variableSettings: 'Variable settings', systemPrompt: 'System prompt', userPrompt: 'User prompt', - tocDataSource: 'Data source', tagFile: 'Tag file', addCategory: 'Add category', categoryName: 'Category name', @@ -3352,7 +3351,6 @@ The Indexer will store the content in the corresponding data structures for the keywords: 'Keywords', questions: 'Questions', metadata: 'Metadata', - toc: 'PageIndex', fieldName: 'Result destination', prompts: { system: { @@ -3390,7 +3388,6 @@ Key Instructions: metadata: `Extract important structured information from the given content. Output ONLY a valid JSON string with no additional text. If no important structured information is found, output an empty JSON object: {}. Important structured information may include: names, dates, locations, events, key facts, numerical data, or other extractable entities.`, - toc: '', }, user: { keywords: `Text Content @@ -3400,7 +3397,6 @@ Important structured information may include: names, dates, locations, events, k summary: `Text to Summarize: [Insert text here]`, metadata: `Content: [INSERT CONTENT HERE]`, - toc: '[Insert text here]', }, }, cancel: 'Cancel', diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.ts index 1076886997..dd7d21926f 100644 --- a/web/src/locales/zh.ts +++ b/web/src/locales/zh.ts @@ -2939,7 +2939,6 @@ Tokenizer 会根据所选方式将内容存储为对应的数据结构。`, keywords: '关键词', questions: '问题', metadata: '元数据', - toc: 'PageIndex', fieldName: '结果目的地', prompts: { system: { diff --git a/web/src/pages/agent/constant/pipeline.tsx b/web/src/pages/agent/constant/pipeline.tsx index dbfc0e3372..f09cc15686 100644 --- a/web/src/pages/agent/constant/pipeline.tsx +++ b/web/src/pages/agent/constant/pipeline.tsx @@ -97,7 +97,6 @@ export enum ContextGeneratorFieldName { Keywords = 'keywords', Questions = 'questions', Metadata = 'metadata', - TableOfContents = 'toc', } export const FileId = 'File'; // BeginId diff --git a/web/src/pages/agent/form/extractor-form/index.tsx b/web/src/pages/agent/form/extractor-form/index.tsx index c51a313f9f..e296adda31 100644 --- a/web/src/pages/agent/form/extractor-form/index.tsx +++ b/web/src/pages/agent/form/extractor-form/index.tsx @@ -80,7 +80,6 @@ const ExtractorForm = ({ useFormChangeCallback(form, onValuesChange); const ownerTenantId = useOwnerTenantId(); - const isToc = form.getValues('field_name') === 'toc'; const { treeData, loadData } = useTagFileTree(); @@ -131,20 +130,15 @@ const ExtractorForm = ({ )} - {!isToc && ( - - - - )} + + + - +