Class: abstract
TextSplitter()
Extends
Extended by
abstract
TextSplitter<Options
>(nodes
,options
?):Promise
<BaseNode
<Metadata
>[]>
Type Parameters
• Options extends Record
<string
, unknown
>
Parameters
• options?: Options
Returns
Defined in
packages/core/dist/node-parser/index.d.ts:13
Constructors
new TextSplitter()
new TextSplitter():
TextSplitter
Returns
Inherited from
Defined in
packages/core/dist/node-parser/index.d.ts:8
Properties
id
id:
string
Inherited from
Defined in
packages/core/dist/schema/index.d.ts:171
includeMetadata
includeMetadata:
boolean
Inherited from
Defined in
packages/core/dist/node-parser/index.d.ts:6
includePrevNextRel
includePrevNextRel:
boolean
Inherited from
Defined in
packages/core/dist/node-parser/index.d.ts:7
Methods
getNodesFromDocuments()
Parameters
• documents: TextNode
<Metadata
>[]
Returns
Inherited from
NodeParser
.getNodesFromDocuments
Defined in
packages/core/dist/node-parser/index.d.ts:11
parseNodes()
Parameters
Returns
Overrides
Defined in
packages/core/dist/node-parser/index.d.ts:16
postProcessParsedNodes()
protected
postProcessParsedNodes(nodes
,parentDocMap
):TextNode
<Metadata
>[]
Parameters
• parentDocMap: Map
<string
, TextNode
<Metadata
>>
Returns
Inherited from
NodeParser
.postProcessParsedNodes
Defined in
packages/core/dist/node-parser/index.d.ts:9
splitText()
abstract
splitText(text
):string
[]
Parameters
• text: string
Returns
string
[]
Defined in
packages/core/dist/node-parser/index.d.ts:14
splitTexts()
splitTexts(
texts
):string
[]
Parameters
• texts: string
[]
Returns
string
[]
Defined in
packages/core/dist/node-parser/index.d.ts:15