Skip to content

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

Fix: A pipeline created from a template fails immediately upon execution with a "hierarchy does not exist" error. (#16151)

balibabucf7b06c0f3d8
diff --git a/web/src/pages/agent/form/title-chunker-form/index.tsx b/web/src/pages/agent/form/title-chunker-form/index.tsx
index 5cc8efcd23..1e56df20c3 100644
--- a/web/src/pages/agent/form/title-chunker-form/index.tsx
+++ b/web/src/pages/agent/form/title-chunker-form/index.tsx
@@ -71,6 +71,7 @@ export enum TitleChunkerRulesField {
export type TitleChunkerFormSchemaType = z.infer<typeof FormSchema> & {
rules: z.infer<typeof rulesSchema>;
+ hierarchy: string;
};
type LevelItemProps = {
diff --git a/web/src/pages/agent/utils.ts b/web/src/pages/agent/utils.ts
index 5ae01936e7..06832ae85f 100644
--- a/web/src/pages/agent/utils.ts
+++ b/web/src/pages/agent/utils.ts
@@ -364,9 +364,9 @@ function transformTitleChunkerParams(params: TitleChunkerFormSchemaType) {
);
const hierarchyValue =
- params.method === TitleChunkerMethod.Group
+ (params.method === TitleChunkerMethod.Group
? params.hierarchyGroup
- : params.hierarchyHierarchy;
+ : params.hierarchyHierarchy) ?? params.hierarchy;
return {
...omit(params, [