Skip to content

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

Fix: If the extractor is not configured with a model, a prompt is displayed in the checklist. (#20113)

balibabufd7c5aefc373
diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts
index c43ef0c5c4..1ee381e0a2 100644
--- a/web/src/locales/en.ts
+++ b/web/src/locales/en.ts
@@ -3527,6 +3527,7 @@ This process aggregates variables from multiple branches into a single variable
tokenizerRequired: 'Please add the Indexer node first',
nodeFormInvalid: 'Invalid settings, please fix them first',
agentModelMissing: 'No model selected, please choose one first',
+ extractorModelMissing: 'No model selected, please choose one first',
retrievalDatasetMissing: 'No dataset selected, please choose one first',
retrievalMemoryMissing: 'No memories selected, please choose them first',
checklist: 'Checklist',
diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.ts
index bc41a181f3..6a604ea143 100644
--- a/web/src/locales/zh.ts
+++ b/web/src/locales/zh.ts
@@ -3050,6 +3050,7 @@ NER:使用 spaCy NER 和基于规则的关键词提取来抽取 Entities 和 R
tokenizerRequired: '请先添加索引器节点',
nodeFormInvalid: '配置有误,请先修正',
agentModelMissing: '未选择模型,请先选择',
+ extractorModelMissing: '未选择模型,请先选择',
retrievalDatasetMissing: '未选择知识库,请先选择',
retrievalMemoryMissing: '未选择记忆,请先选择',
checklist: '检查清单',
diff --git a/web/src/pages/agent/utils/__tests__/canvas-checklist.test.ts b/web/src/pages/agent/utils/__tests__/canvas-checklist.test.ts
index e2645eca8a..cf117cd335 100644
--- a/web/src/pages/agent/utils/__tests__/canvas-checklist.test.ts
+++ b/web/src/pages/agent/utils/__tests__/canvas-checklist.test.ts
@@ -411,6 +411,20 @@ describe('collectCanvasIssues: missing required fields', () => {
);
});
+ it('flags an Extractor node without a model', () => {
+ const issues = collect({
+ nodes: [makeNode('Extractor:e1', 'Extractor', { llm_id: '' })],
+ });
+
+ expect(issues).toContainEqual(
+ expect.objectContaining({
+ nodeId: 'Extractor:e1',
+ type: CanvasIssueType.MissingRequired,
+ messageKey: 'flow.extractorModelMissing',
+ }),
+ );
+ });
+
it('flags an invalid Parser form only after the node was edited', () => {
const parserNode = makeNode('Parser:p1', 'Parser', { setups: [] });
const connected = [makeEdge('File', 'Parser:p1')];
diff --git a/web/src/pages/agent/utils/canvas-checklist.ts b/web/src/pages/agent/utils/canvas-checklist.ts
index 2b2580c17a..0cc27366dc 100644
--- a/web/src/pages/agent/utils/canvas-checklist.ts
+++ b/web/src/pages/agent/utils/canvas-checklist.ts
@@ -439,7 +439,8 @@ export function collectCanvasIssues({
if (
label &&
!OrphanExemptOperators.includes(label) &&
- (beginComponentIds ? !beginComponentIds.has(node.id)
+ (beginComponentIds
+ ? !beginComponentIds.has(node.id)
: !connectedNodeIds.has(node.id))
) {
issues.push({
@@ -504,6 +505,19 @@ export function collectCanvasIssues({
}
}
+ if (label === Operator.Extractor) {
+ // Same always-on policy as the Agent model check: a template-created
+ // pipeline ships an empty llm_id and must flag on load, not only after
+ // edits.
+ if (!form?.llm_id) {
+ issues.push({
+ ...target,
+ type: CanvasIssueType.MissingRequired,
+ messageKey: 'flow.extractorModelMissing',
+ });
+ }
+ }
+
if (label === Operator.Compiler) {
// Same always-on policy as the Agent model check: an empty operator
// must flag on load, not only after edits.