mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-14 20:54:30 +08:00
Feat: pipeline support ONE chunking method (#14024)
### What problem does this PR solve? Feat: pipeline support ONE chunking method ### Type of change - [x] New Feature (non-breaking change which adds functionality) --------- Co-authored-by: Yingfeng <yingfeng.zhang@gmail.com>
This commit is contained in:
@@ -969,10 +969,6 @@ class Parser(ProcessBase):
|
||||
self.callback(random.randint(1, 5) / 100.0, "Start to work on a text or code file.")
|
||||
conf = self._param.setups["text&code"]
|
||||
self.set_output("output_format", conf["output_format"])
|
||||
|
||||
print("\n\n")
|
||||
print(conf.get("output_format"))
|
||||
print("\n\n")
|
||||
|
||||
sections = TxtParser()(
|
||||
name,
|
||||
@@ -984,10 +980,6 @@ class Parser(ProcessBase):
|
||||
self.set_output("json", [{"text": section[0], "doc_type_kwd": "text"} for section in sections if section[0]])
|
||||
return
|
||||
|
||||
print("\n", "-"*150, "\n")
|
||||
print(sections)
|
||||
print("\n", "-"*150, "\n")
|
||||
|
||||
self.set_output("text", "\n".join([section[0] for section in sections if section[0]]))
|
||||
|
||||
def _html(self, name, blob, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user