mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-05 07:10:29 +08:00
fix: align pipeline delimiter chunking (#17723)
This commit is contained in:
@@ -1131,6 +1131,7 @@ class Parser(ProcessBase):
|
||||
blob,
|
||||
conf.get("chunk_token_num", 128),
|
||||
conf.get("delimiter", "\n!?;。;!?"),
|
||||
keep_delimiters=True,
|
||||
)
|
||||
if conf.get("output_format") == "json":
|
||||
self.set_output("json", [{"text": section[0], "doc_type_kwd": "text"} for section in sections if section[0]])
|
||||
|
||||
Reference in New Issue
Block a user