From 1d65b2ce47f2e964c002367d2faf5b8e1efacc2f Mon Sep 17 00:00:00 2001 From: Simon Suo Date: Fri, 10 Nov 2023 16:00:17 -0800 Subject: [PATCH] add back compat --- llama_index/node_parser/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llama_index/node_parser/__init__.py b/llama_index/node_parser/__init__.py index 34f61679cc17b..5c32929197eca 100644 --- a/llama_index/node_parser/__init__.py +++ b/llama_index/node_parser/__init__.py @@ -23,6 +23,9 @@ from llama_index.node_parser.text.sentence_window import SentenceWindowNodeParser from llama_index.node_parser.text.token import TokenTextSplitter +# deprecated, for backwards compatibility +SimpleNodeParser = SentenceSplitter + __all__ = [ "TokenTextSplitter", "SentenceSplitter", @@ -40,4 +43,6 @@ "UnstructuredElementNodeParser", "get_leaf_nodes", "get_root_nodes", + # deprecated, for backwards compatibility + "SimpleNodeParser", ]