Skip to main content

Interface: NodeParser

A NodeParser generates Nodes from Documents

Extends

Methods

getNodesFromDocuments()

getNodesFromDocuments(documents): BaseNode<Metadata>[]

Generates an array of nodes from an array of documents.

Parameters

documents: BaseNode<Metadata>[]

The documents to generate nodes from.

Returns

BaseNode<Metadata>[]

An array of nodes.

Defined in

packages/llamaindex/src/nodeParsers/types.ts:12


transform()

transform(nodes, options?): Promise<BaseNode<Metadata>[]>

Parameters

nodes: BaseNode<Metadata>[]

options?: any

Returns

Promise<BaseNode<Metadata>[]>

Inherited from

TransformComponent.transform

Defined in

packages/core/dist/schema/index.d.ts:167