Interface: NodeParser
A NodeParser generates Nodes from Documents
Hierarchy
-
↳
NodeParser
Implemented by
Methods
getNodesFromDocuments
▸ getNodesFromDocuments(documents
): BaseNode
<Metadata
>[]
Generates an array of nodes from an array of documents.
Parameters
Name | Type | Description |
---|---|---|
documents | BaseNode <Metadata >[] | The documents to generate nodes from. |
Returns
An array of nodes.
Defined in
packages/core/src/nodeParsers/types.ts:13
transform
▸ transform(nodes
, options?
): Promise
<BaseNode
<Metadata
>[]>
Parameters
Name | Type |
---|---|
nodes | BaseNode <Metadata >[] |
options? | any |