Class: IndexNode<T>
TextNode is the default node type for text. Most common node type in LlamaIndex.TS
Type parameters
Name | Type |
---|---|
T | extends Metadata = Metadata |
Hierarchy
-
TextNode
<T
>↳
IndexNode
Constructors
constructor
• new IndexNode<T
>(init?
): IndexNode
<T
>
Type parameters
Name | Type |
---|---|
T | extends Metadata = Metadata |
Parameters
Name | Type |
---|---|
init? | Partial <IndexNode <T >> |
Returns
IndexNode
<T
>
Overrides
Defined in
Properties
embedding
• Optional
embedding: number
[]
Inherited from
Defined in
endCharIdx
• Optional
endCharIdx: number
Inherited from
Defined in
excludedEmbedMetadataKeys
• excludedEmbedMetadataKeys: string
[] = []
Inherited from
TextNode.excludedEmbedMetadataKeys
Defined in
excludedLlmMetadataKeys
• excludedLlmMetadataKeys: string
[] = []
Inherited from
TextNode.excludedLlmMetadataKeys
Defined in
hash
• hash: string
= ""
Inherited from
Defined in
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
Defined in
indexId
• indexId: string
= ""
Defined in
metadata
• metadata: T
Inherited from
Defined in
metadataSeparator
• metadataSeparator: string
= "\n"
Inherited from
Defined in
relationships
• relationships: Partial
<Record
<NodeRelationship
, RelatedNodeType
<T
>>> = {}
Inherited from
Defined in
startCharIdx
• Optional
startCharIdx: number
Inherited from
Defined in
text
• text: string
= ""
Inherited from
Defined in
textTemplate
• textTemplate: string
= ""
Inherited from
Defined in
Accessors
childNodes
• get
childNodes(): undefined
| RelatedNodeInfo
<T
>[]
Returns
undefined
| RelatedNodeInfo
<T
>[]
Inherited from
TextNode.childNodes
Defined in
nextNode
• get
nextNode(): undefined
| RelatedNodeInfo
<T
>
Returns
undefined
| RelatedNodeInfo
<T
>
Inherited from
TextNode.nextNode
Defined in
parentNode
• get
parentNode(): undefined
| RelatedNodeInfo
<T
>