mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 15:31:05 +08:00
Fix: A pipeline created from a template fails immediately upon execution with a "hierarchy does not exist" error. (#16151)
### What problem does this PR solve? Fix: A pipeline created from a template fails immediately upon execution with a "hierarchy does not exist" error.
This commit is contained in:
@@ -71,6 +71,7 @@ export enum TitleChunkerRulesField {
|
||||
|
||||
export type TitleChunkerFormSchemaType = z.infer<typeof FormSchema> & {
|
||||
rules: z.infer<typeof rulesSchema>;
|
||||
hierarchy: string;
|
||||
};
|
||||
|
||||
type LevelItemProps = {
|
||||
|
||||
@@ -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, [
|
||||
|
||||
Reference in New Issue
Block a user