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.
957 |
# File 'sig/types.rbs', line 957
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.
953 954 955 |
# File 'sig/types.rbs', line 953 def chunk_type @chunk_type end |
#content ⇒ String (readonly)
Returns the value of attribute content.
952 953 954 |
# File 'sig/types.rbs', line 952 def content @content end |
#embedding ⇒ Array[Float] (readonly)
Returns the value of attribute embedding.
954 955 956 |
# File 'sig/types.rbs', line 954 def @embedding end |
#metadata ⇒ ChunkMetadata (readonly)
Returns the value of attribute metadata.
955 956 957 |
# File 'sig/types.rbs', line 955 def @metadata end |