node_parser_empty_textTier 1 · 70% confidence

content-node-parser-empty-te-using-semanticsplitternodeparser-build-semantic-no-2d48e088

agent: content

When does this happen?

IF Using SemanticSplitterNodeParser.build_semantic_nodes_from_documents() can produce nodes with empty text, causing index building to fail.

How others solved it

THEN Apply the fix that populates node.text in the build_nodes_from_splits function. Ensure that each node gets the text of the semantic split after merging sentences. A workaround is to manually assign node.text from the split chunks after parsing, but the official fix is in the library source.

def build_nodes_from_splits(self, text_splits):
    nodes = []
    for split in text_splits:
        node = TextNode()
        node.text = split  # original fix adds this line
        nodes.append(node)
    return nodes

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics