Class: IndexNode<T>
TextNode is the default node type for text. Most common node type in LlamaIndex.TS
Extends
TextNode
<T
>
Type parameters
• T extends Metadata
= Metadata
Constructors
new IndexNode()
new IndexNode<
T
>(init
?):IndexNode
<T
>
Parameters
• init?: IndexNodeParams
<T
>
Returns
IndexNode
<T
>
Overrides
Source
Properties
embedding?
optional
embedding:number
[]
Inherited from
Source
endCharIdx?
optional
endCharIdx:number
Inherited from
Source
excludedEmbedMetadataKeys
excludedEmbedMetadataKeys:
string
[]
Inherited from
TextNode
. excludedEmbedMetadataKeys
Source
excludedLlmMetadataKeys
excludedLlmMetadataKeys:
string
[]
Inherited from
TextNode
. excludedLlmMetadataKeys
Source
id_
id_:
string
The unique ID of the Node/Document. The trailing underscore is here to avoid collisions with the id keyword in Python.
Set to a UUID by default.
Inherited from
Source
indexId
indexId:
string
Source
metadata
metadata:
T
Inherited from
Source
metadataSeparator
metadataSeparator:
string
Inherited from
Source
relationships
relationships:
Partial
<Record
<NodeRelationship
,RelatedNodeType
<T
>>>
Inherited from
Source
startCharIdx?
optional
startCharIdx:number
Inherited from
Source
text
text:
string
Inherited from
Source
textTemplate
textTemplate:
string
Inherited from
Source
Accessors
childNodes
get
childNodes():undefined
|RelatedNodeInfo
<T
>[]
Returns
undefined
| RelatedNodeInfo
<T
>[]
Source
hash
nextNode
get
nextNode():undefined
|RelatedNodeInfo
<T
>
Returns
undefined
| RelatedNodeInfo
<T
>
Source
parentNode
get
parentNode():undefined
|RelatedNodeInfo
<T
>
Returns
undefined
| RelatedNodeInfo
<T
>
Source
prevNode
get
prevNode():undefined
|RelatedNodeInfo
<T
>
Returns
undefined
| RelatedNodeInfo
<T
>
Source
sourceNode
get
sourceNode():undefined
|RelatedNodeInfo
<T
>
Returns
undefined
| RelatedNodeInfo
<T
>
Source
type
get
type():ObjectType