Node Parser#

llama_index.node_parser Package#

Node parsers.

Functions#

get_leaf_nodes(nodes)

Get leaf nodes.

get_root_nodes(nodes)

Get root nodes.

Classes#

TokenTextSplitter

Implementation of splitting text that looks at word tokens.

SentenceSplitter

Parse text with a preference for complete sentences.

CodeSplitter

Split code using a AST parser.

SimpleFileNodeParser

Simple file node parser.

HTMLNodeParser

HTML node parser.

MarkdownNodeParser

Markdown node parser.

JSONNodeParser

JSON node parser.

SentenceWindowNodeParser

Sentence window node parser.

SemanticSplitterNodeParser

Semantic node parser.

NodeParser

Base interface for node parser.

HierarchicalNodeParser

Hierarchical node parser.

TextSplitter

MarkdownElementNodeParser

Markdown element node parser.

MetadataAwareTextSplitter

LangchainNodeParser

Basic wrapper around langchain's text splitter.

UnstructuredElementNodeParser

Unstructured element node parser.

SimpleNodeParser

alias of SentenceSplitter