fix: remove empty segment in splitter

This commit is contained in:
John Wang 2023-05-17 15:02:30 +08:00
parent 74d954610f
commit f93aac0172
1 changed files with 1 additions and 1 deletions

View File

@ -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