Skip to main content

Interface: NodeParser

A NodeParser generates Nodes from Documents

Implemented by

Methods

getNodesFromDocuments

getNodesFromDocuments(documents): BaseNode<Metadata>[]

Generates an array of nodes from an array of documents.

Parameters

NameTypeDescription
documentsBaseNode<Metadata>[]The documents to generate nodes from.

Returns

BaseNode<Metadata>[]

An array of nodes.

Defined in

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