본문으로 건너뛰기

Interface: NodeParser

A NodeParser generates Nodes from Documents

Hierarchy

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:13


transform

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

Parameters

NameType
nodesBaseNode<Metadata>[]
options?any

Returns

Promise<BaseNode<Metadata>[]>

Inherited from

TransformComponent.transform

Defined in

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