RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
feat: add toc option in transformer node in ingestion pipeline (#11992)
Jimmy Ben Klievee58271ef76a8
diff --git a/web/src/locales/en.ts b/web/src/locales/en.tsindex 9329c2c61a..bd126f1158 100644--- a/web/src/locales/en.ts+++ b/web/src/locales/en.ts@@ -1925,6 +1925,7 @@ The Indexer will store the content in the corresponding data structures for thekeywords: 'Keywords',questions: 'Questions',metadata: 'Metadata',+ toc: 'Table of contents',fieldName: 'Result destination',prompts: {system: {diff --git a/web/src/pages/agent/constant/pipeline.tsx b/web/src/pages/agent/constant/pipeline.tsxindex 849340bfa4..c799cf959a 100644--- a/web/src/pages/agent/constant/pipeline.tsx+++ b/web/src/pages/agent/constant/pipeline.tsx@@ -85,6 +85,7 @@ export enum ContextGeneratorFieldName {Keywords = 'keywords',Questions = 'questions',Metadata = 'metadata',+ TableOfContents = 'toc',}export const FileId = 'File'; // BeginIddiff --git a/web/src/pages/agent/form/extractor-form/index.tsx b/web/src/pages/agent/form/extractor-form/index.tsxindex 391d8c09ef..78480d6656 100644--- a/web/src/pages/agent/form/extractor-form/index.tsx+++ b/web/src/pages/agent/form/extractor-form/index.tsx@@ -76,19 +76,23 @@ const ExtractorForm = ({ node }: INextOperatorForm) => {></SelectWithSearch>)}</RAGFlowFormItem>- <RAGFlowFormItem label={t('flow.systemPrompt')} name="sys_prompt">- <PromptEditor- placeholder={t('flow.messagePlaceholder')}- showToolbar={true}- baseOptions={promptOptions}- ></PromptEditor>- </RAGFlowFormItem>- <RAGFlowFormItem label={t('flow.userPrompt')} name="prompts">- <PromptEditor- showToolbar={true}- baseOptions={promptOptions}- ></PromptEditor>- </RAGFlowFormItem>+ {form.getValues('field_name') !== 'toc' && (+ <>+ <RAGFlowFormItem label={t('flow.systemPrompt')} name="sys_prompt">+ <PromptEditor+ placeholder={t('flow.messagePlaceholder')}+ showToolbar={true}+ baseOptions={promptOptions}+ ></PromptEditor>+ </RAGFlowFormItem>+ <RAGFlowFormItem label={t('flow.userPrompt')} name="prompts">+ <PromptEditor+ showToolbar={true}+ baseOptions={promptOptions}+ ></PromptEditor>+ </RAGFlowFormItem>+ </>+ )}<Output list={outputList}></Output></FormWrapper>{visible && (