Class: Xberg::Chunk
- Inherits:
-
Object
- Object
- Xberg::Chunk
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#chunk_type ⇒ enum_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.
-
#late_interaction ⇒ MultiVectorEmbedding?
readonly
Returns the value of attribute late_interaction.
-
#metadata ⇒ ChunkMetadata
readonly
Returns the value of attribute metadata.
-
#sparse_embedding ⇒ SparseEmbedding?
readonly
Returns the value of attribute sparse_embedding.
Instance Method Summary collapse
-
#initialize ⇒ Chunk
constructor
A new instance of Chunk.
Constructor Details
#initialize ⇒ Chunk
147 |
# File 'sig/types.rbs', line 147 def initialize: (content: String, chunk_type: enum_ChunkType, ?embedding: Array[Float], ?sparse_embedding: SparseEmbedding, ?late_interaction: MultiVectorEmbedding, metadata: ChunkMetadata) -> void |
Instance Attribute Details
#chunk_type ⇒ enum_ChunkType (readonly)
Returns the value of attribute chunk_type.
141 142 143 |
# File 'sig/types.rbs', line 141 def chunk_type @chunk_type end |
#content ⇒ String (readonly)
Returns the value of attribute content.
140 141 142 |
# File 'sig/types.rbs', line 140 def content @content end |
#embedding ⇒ Array[Float]? (readonly)
Returns the value of attribute embedding.
142 143 144 |
# File 'sig/types.rbs', line 142 def end |
#late_interaction ⇒ MultiVectorEmbedding? (readonly)
Returns the value of attribute late_interaction.
144 145 146 |
# File 'sig/types.rbs', line 144 def late_interaction @late_interaction end |
#metadata ⇒ ChunkMetadata (readonly)
Returns the value of attribute metadata.
145 146 147 |
# File 'sig/types.rbs', line 145 def end |
#sparse_embedding ⇒ SparseEmbedding? (readonly)
Returns the value of attribute sparse_embedding.
143 144 145 |
# File 'sig/types.rbs', line 143 def end |