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.

Source

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


transform()

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

Parameters

nodes: BaseNode <Metadata>[]

options?: any

Returns

Promise <BaseNode <Metadata>[]>

Inherited from

TransformComponent . transform

Source

packages/core/src/ingestion/types.ts:4