fix: remove empty segment in splitter (#68)

pull/73/head
John Wang 3 years ago committed by GitHub
parent ce492d13f1
commit 0587ff0fba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save