Skip to content

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

Fix: dataset update parent child (#14167)

Lynnf194a09cd611
diff --git a/web/src/hooks/use-knowledge-request.ts b/web/src/hooks/use-knowledge-request.ts
index 9a908a2da5..715707e59c 100644
--- a/web/src/hooks/use-knowledge-request.ts
+++ b/web/src/hooks/use-knowledge-request.ts
@@ -302,6 +302,9 @@ export const useUpdateKnowledge = (shouldFetchList = false) => {
filename_embd_weight,
task_page_size,
pages,
+ children_delimiter,
+ use_parent_child,
+ enable_children,
ext,
...parserExt
} = parserConfig;
@@ -319,6 +322,15 @@ export const useUpdateKnowledge = (shouldFetchList = false) => {
filename_embd_weight,
task_page_size,
pages,
+ parent_child:
+ children_delimiter !== undefined ||
+ use_parent_child !== undefined ||
+ enable_children !== undefined
+ ? {
+ children_delimiter,
+ use_parent_child: use_parent_child ?? enable_children,
+ }
+ : undefined,
ext: { ...ext, ...parserExt },
};
};