Feat: Remove the pageindex option from the extraction operator. (#17826)

This commit is contained in:
balibabu
2026-08-05 10:57:10 +08:00
committed by GitHub
parent 9b81112db0
commit b0061fb4cc
4 changed files with 8 additions and 20 deletions

View File

@@ -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',

View File

@@ -2939,7 +2939,6 @@ Tokenizer 会根据所选方式将内容存储为对应的数据结构。`,
keywords: '关键词',
questions: '问题',
metadata: '元数据',
toc: 'PageIndex',
fieldName: '结果目的地',
prompts: {
system: {

View File

@@ -97,7 +97,6 @@ export enum ContextGeneratorFieldName {
Keywords = 'keywords',
Questions = 'questions',
Metadata = 'metadata',
TableOfContents = 'toc',
}
export const FileId = 'File'; // BeginId

View File

@@ -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 = ({
)}
</RAGFlowFormItem>
{!isToc && (
<RAGFlowFormItem label={t('flow.systemPrompt')} name="sys_prompt">
<PromptEditor
placeholder={t('flow.messagePlaceholder')}
showToolbar={true}
baseOptions={promptOptions}
></PromptEditor>
</RAGFlowFormItem>
)}
<RAGFlowFormItem label={t('flow.systemPrompt')} name="sys_prompt">
<PromptEditor
placeholder={t('flow.messagePlaceholder')}
showToolbar={true}
baseOptions={promptOptions}
></PromptEditor>
</RAGFlowFormItem>
<RAGFlowFormItem
label={isToc ? t('flow.tocDataSource') : t('flow.userPrompt')}
name="prompts"
>
<RAGFlowFormItem label={t('flow.userPrompt')} name="prompts">
<PromptEditor
showToolbar={true}
baseOptions={promptOptions}