Skip to content

Commit

Permalink
Resolve circle import (#11722)
Browse files Browse the repository at this point in the history
  • Loading branch information
hatianzhang authored Mar 6, 2024
1 parent 2fd9a02 commit f916839
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
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), \
Expand Down Expand Up @@ -261,6 +260,8 @@ def get_nodes_from_elements(
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 = []
Expand Down

0 comments on commit f916839

Please sign in to comment.