Class: BaseNode<T>
Generic abstract class for retrievable nodes
Type parameters
Name | Type |
---|---|
T | extends Metadata = Metadata |
Hierarchy
-
BaseNode
↳
TextNode
Constructors
constructor
• new BaseNode<T
>(init?
)
Type parameters
Name | Type |
---|---|
T | extends Metadata = Metadata |
Parameters
Name | Type |
---|---|
init? | Partial <BaseNode <T >> |
Defined in
Properties
embedding
• Optional
embedding: number
[]
Defined in
excludedEmbedMetadataKeys
• excludedEmbedMetadataKeys: string
[] = []
Defined in
excludedLlmMetadataKeys
• excludedLlmMetadataKeys: string
[] = []
Defined in
hash
• hash: string
= ""
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.
Defined in
metadata
• metadata: T
Defined in
relationships
• relationships: Partial
<Record
<NodeRelationship
, RelatedNodeType
<T
>>> = {}