TextSplitter
Defined in: .build/typescript/packages/core/src/node-parser/base.ts:123
Extends
Section titled “Extends”Extended by
Section titled “Extended by”
abstractTextSplitter<Options>(nodes,options?):TextNode<Metadata>[]
Defined in: .build/typescript/packages/core/src/node-parser/base.ts:123
Type Parameters
Section titled “Type Parameters”Options
Section titled “Options”Options extends Record<string, unknown>
Parameters
Section titled “Parameters”options?
Section titled “options?”Options
Returns
Section titled “Returns”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TextSplitter():
TextSplitter
Defined in: .build/typescript/packages/core/src/node-parser/base.ts:20
Returns
Section titled “Returns”TextSplitter
Inherited from
Section titled “Inherited from”Properties
Section titled “Properties”includeMetadata
Section titled “includeMetadata”includeMetadata:
boolean=true
Defined in: .build/typescript/packages/core/src/node-parser/base.ts:17
Inherited from
Section titled “Inherited from”includePrevNextRel
Section titled “includePrevNextRel”includePrevNextRel:
boolean=true
Defined in: .build/typescript/packages/core/src/node-parser/base.ts:18
Inherited from
Section titled “Inherited from”id:
string
Defined in: .build/typescript/packages/core/src/schema/type.ts:22
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”postProcessParsedNodes()
Section titled “postProcessParsedNodes()”
protectedpostProcessParsedNodes(nodes,parentDocMap):TextNode<Metadata>[]
Defined in: .build/typescript/packages/core/src/node-parser/base.ts:27
Parameters
Section titled “Parameters”parentDocMap
Section titled “parentDocMap”Map<string, TextNode<Metadata>>
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”NodeParser.postProcessParsedNodes
getNodesFromDocuments()
Section titled “getNodesFromDocuments()”Defined in: .build/typescript/packages/core/src/node-parser/base.ts:84
Parameters
Section titled “Parameters”documents
Section titled “documents”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”NodeParser.getNodesFromDocuments
splitText()
Section titled “splitText()”
abstractsplitText(text):string[]
Defined in: .build/typescript/packages/core/src/node-parser/base.ts:124
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string[]
splitTexts()
Section titled “splitTexts()”splitTexts(
texts):string[]
Defined in: .build/typescript/packages/core/src/node-parser/base.ts:126
Parameters
Section titled “Parameters”string[]
Returns
Section titled “Returns”string[]
parseNodes()
Section titled “parseNodes()”Defined in: .build/typescript/packages/core/src/node-parser/base.ts:130