Skip to content

Commit

Permalink
Fix the formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
preemoDez committed Feb 15, 2024
1 parent d1fb461 commit 7b406a2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions llama-index-core/llama_index/core/node_parser/node_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ def build_nodes_from_splits(
"""Calling as_related_node_info() on a document recomputes the hash for the whole text and metadata"""
"""It is not that bad, when creating relationships between the nodes, but is terrible when adding a relationship"""
"""between the node and a document, hence we create the relationship only once here and pass it to the nodes"""
relationships = {
NodeRelationship.SOURCE: ref_doc.as_related_node_info()
}
relationships = {NodeRelationship.SOURCE: ref_doc.as_related_node_info()}
for i, text_chunk in enumerate(text_splits):
logger.debug(f"> Adding chunk: {truncate_text(text_chunk, 50)}")

Expand Down

0 comments on commit 7b406a2

Please sign in to comment.