mirror of
https://github.com/langgenius/dify.git
synced 2026-03-30 17:20:16 +08:00
fix: remove empty segment in splitter
This commit is contained in:
parent
74d954610f
commit
f93aac0172
@ -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