mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-11-30 02:08:37 +08:00
fix: remove empty segment in splitter (#68)
This commit is contained in:
parent
ce492d13f1
commit
0587ff0fba
@ -343,7 +343,7 @@ class IndexingRunner:
|
||||
|
||||
# parse document to nodes
|
||||
nodes = node_parser.get_nodes_from_documents([text_doc])
|
||||
|
||||
nodes = [node for node in nodes if node.text is not None and node.text.strip()]
|
||||
all_nodes.extend(nodes)
|
||||
|
||||
return all_nodes
|
||||
|
Loading…
Reference in New Issue
Block a user