Class: Xberg::Chunk
- Inherits:
-
Object
- Object
- Xberg::Chunk
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#chunk_type ⇒ ChunkType
readonly
Returns the value of attribute chunk_type.
-
#content ⇒ String
readonly
Returns the value of attribute content.
-
#embedding ⇒ Array[Float]
readonly
Returns the value of attribute embedding.
-
#metadata ⇒ ChunkMetadata
readonly
Returns the value of attribute metadata.
Instance Method Summary collapse
-
#initialize ⇒ Chunk
constructor
A new instance of Chunk.
Constructor Details
#initialize ⇒ Chunk
Returns a new instance of Chunk.
1026 |
# File 'sig/types.rbs', line 1026
def initialize: (content: String, chunk_type: ChunkType, ?embedding: Array[Float], metadata: ChunkMetadata) -> void
|
Instance Attribute Details
#chunk_type ⇒ ChunkType (readonly)
Returns the value of attribute chunk_type.
1022 1023 1024 |
# File 'sig/types.rbs', line 1022 def chunk_type @chunk_type end |
#content ⇒ String (readonly)
Returns the value of attribute content.
1021 1022 1023 |
# File 'sig/types.rbs', line 1021 def content @content end |
#embedding ⇒ Array[Float] (readonly)
Returns the value of attribute embedding.
1023 1024 1025 |
# File 'sig/types.rbs', line 1023 def @embedding end |
#metadata ⇒ ChunkMetadata (readonly)
Returns the value of attribute metadata.
1024 1025 1026 |
# File 'sig/types.rbs', line 1024 def @metadata end |