diff --git a/api/utils/validation_utils.py b/api/utils/validation_utils.py index 31ba61b845..e6a16f3a89 100644 --- a/api/utils/validation_utils.py +++ b/api/utils/validation_utils.py @@ -417,6 +417,8 @@ class ParserConfig(Base): html4excel: Annotated[bool, Field(default=False)] layout_recognize: Annotated[str, Field(default="DeepDOC")] parent_child: Annotated[ParentChildConfig, Field(default_factory=lambda: ParentChildConfig(use_parent_child=False))] + enable_children: Annotated[bool, Field(default=False)] + children_delimiter: Annotated[str, Field(default="", min_length=0)] raptor: Annotated[RaptorConfig, Field(default_factory=lambda: RaptorConfig(use_raptor=False))] tag_kb_ids: Annotated[list[str], Field(default_factory=list)] topn_tags: Annotated[int, Field(default=1, ge=1, le=10)] diff --git a/web/src/hooks/parser-config-utils.ts b/web/src/hooks/parser-config-utils.ts index e6e7cccb43..06029d83fb 100644 --- a/web/src/hooks/parser-config-utils.ts +++ b/web/src/hooks/parser-config-utils.ts @@ -93,6 +93,8 @@ export const extractParserConfigExt = ( filename_embd_weight, task_page_size, pages, + children_delimiter, + enable_children, parent_child: enable_children ? { children_delimiter,