Sfoglia il codice sorgente

fix: remove empty segment in splitter (#68)

tags/0.2.2
John Wang 2 anni fa
parent
commit
0587ff0fba
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      api/core/indexing_runner.py

+ 1
- 1
api/core/indexing_runner.py Vedi 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

Loading…
Annulla
Salva