From f916839e81ff8bd3006fe3bf4df3f59ba7f37da3 Mon Sep 17 00:00:00 2001
From: Haotian Zhang <socool.king@gmail.com>
Date: Wed, 6 Mar 2024 18:01:08 -0500
Subject: [PATCH] Resolve circle import (#11722)

---
 .../llama_index/core/node_parser/relational/base_element.py    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/llama-index-core/llama_index/core/node_parser/relational/base_element.py b/llama-index-core/llama_index/core/node_parser/relational/base_element.py
index 17ea964ac8..9a11ffd7a0 100644
--- a/llama-index-core/llama_index/core/node_parser/relational/base_element.py
+++ b/llama-index-core/llama_index/core/node_parser/relational/base_element.py
@@ -13,7 +13,6 @@ from llama_index.core.llms.llm import LLM
 from llama_index.core.node_parser.interface import NodeParser
 from llama_index.core.schema import BaseNode, Document, IndexNode, TextNode
 from llama_index.core.utils import get_tqdm_iterable
-from llama_index.core.node_parser import SentenceSplitter
 
 DEFAULT_SUMMARY_QUERY_STR = """\
 What is this table about? Give a very concise summary (imagine you are adding a new caption and summary for this table), \
@@ -261,6 +260,8 @@ class BaseElementNodeParser(NodeParser):
         metadata_inherited: Optional[Dict[str, Any]] = None,
     ) -> List[BaseNode]:
         """Get nodes and mappings."""
+        from llama_index.core.node_parser import SentenceSplitter
+
         node_parser = self.nested_node_parser or SentenceSplitter()
 
         nodes = []
-- 
GitLab