Class: SimpleNodeParser
SimpleNodeParser is the default NodeParser. It splits documents into TextNodes using a splitter, by default SentenceSplitter
Implements
Constructors
constructor
• new SimpleNodeParser(init?
): SimpleNodeParser
Parameters
Name | Type |
---|---|
init? | Object |
init.chunkOverlap? | number |
init.chunkSize? | number |
init.includeMetadata? | boolean |
init.includePrevNextRel? | boolean |
init.splitLongSentences? | boolean |
init.textSplitter? | SentenceSplitter |
Returns
Defined in
packages/core/src/nodeParsers/SimpleNodeParser.ts:24
Properties
includeMetadata
• includeMetadata: boolean
Whether to include metadata in the nodes.
Defined in
packages/core/src/nodeParsers/SimpleNodeParser.ts:18
includePrevNextRel
• includePrevNextRel: boolean
Whether to include previous and next relationships in the nodes.
Defined in
packages/core/src/nodeParsers/SimpleNodeParser.ts:22