Modules
NodeParser
The NodeParser
in LlamaIndex is responsible for splitting Document
objects into more manageable Node
objects. When you call .fromDocuments()
, the NodeParser
from the Settings
is used to do this automatically for you. Alternatively, you can use it to split documents ahead of time.
TextSplitter
The underlying text splitter will split text by sentences. It can also be used as a standalone module for splitting raw text.
MarkdownNodeParser
The MarkdownNodeParser
is a more advanced NodeParser
that can handle markdown documents. It will split the markdown into nodes and then parse the nodes into a Document
object.
The output metadata will be something like:
API Reference
Edit on GitHub
Last updated on