Class: ImageNode<T>
TextNode is the default node type for text. Most common node type in LlamaIndex.TS
Extends
TextNode
<T
>
Extended by
Type Parameters
• T extends Metadata
= Metadata
Constructors
new ImageNode()
new ImageNode<
T
>(init
):ImageNode
<T
>
Parameters
• init: ImageNodeParams
<T
>
Returns
ImageNode
<T
>
Overrides
Defined in
packages/core/schema/dist/index.d.ts:140
Properties
embedding
embedding:
undefined
|number
[]
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:52
endCharIdx?
optional
endCharIdx:number
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:99
excludedEmbedMetadataKeys
excludedEmbedMetadataKeys:
string
[]
Inherited from
TextNode
.excludedEmbedMetadataKeys
Defined in
packages/core/schema/dist/index.d.ts:54
excludedLlmMetadataKeys
excludedLlmMetadataKeys:
string
[]
Inherited from
TextNode
.excludedLlmMetadataKeys
Defined in
packages/core/schema/dist/index.d.ts:55
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
packages/core/schema/dist/index.d.ts:51
image
image:
ImageType
Defined in
packages/core/schema/dist/index.d.ts:139
metadata
metadata:
T
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:53
metadataSeparator
metadataSeparator:
string
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:100
relationships
relationships:
Partial
<Record
<NodeRelationship
,RelatedNodeType
<T
>>>
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:56
startCharIdx?
optional
startCharIdx:number
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:98
text
text:
string
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:96
textTemplate
textTemplate:
string
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:97
Accessors
childNodes
Get Signature
get childNodes():
undefined
|RelatedNodeInfo
<T
>[]
Returns
undefined
| RelatedNodeInfo
<T
>[]
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:67
hash
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:57
nextNode
Get Signature
get nextNode():
undefined
|RelatedNodeInfo
<T
>
Returns
undefined
| RelatedNodeInfo
<T
>
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:65
parentNode
Get Signature
get parentNode():
undefined
|RelatedNodeInfo
<T
>
Returns
undefined
| RelatedNodeInfo
<T
>
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:66
prevNode
Get Signature
get prevNode():
undefined
|RelatedNodeInfo
<T
>
Returns
undefined
| RelatedNodeInfo
<T
>
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:64
sourceNode
Get Signature
get sourceNode():
undefined
|RelatedNodeInfo
<T
>
Returns
undefined
| RelatedNodeInfo
<T
>
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:63
type
Get Signature
get type():
ObjectType
Returns
Overrides
Defined in
packages/core/schema/dist/index.d.ts:141
Methods
asRelatedNodeInfo()
asRelatedNodeInfo():
RelatedNodeInfo
<T
>
Returns
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:70
clone()
Returns
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:77
generateHash()
generateHash():
string
Generate a hash of the text node. The ID is not part of the hash as it can change independent of content.
Returns
string
Overrides
Defined in
packages/core/schema/dist/index.d.ts:144
getContent()
getContent(
metadataMode
?):string
Parameters
• metadataMode?: MetadataMode
Returns
string
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:109
getEmbedding()
getEmbedding():
number
[]
Returns
number
[]
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:69
getMetadataStr()
getMetadataStr(
metadataMode
):string
Parameters
• metadataMode: MetadataMode
Returns
string
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:110
getNodeInfo()
getNodeInfo():
object
Returns
object
end
end:
undefined
|number
start
start:
undefined
|number
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:112
getText()
getText():
string
Returns
string
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:116
getUrl()
getUrl():
URL
Returns
URL
Defined in
packages/core/schema/dist/index.d.ts:142