Class: Xberg::Chunk

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeChunk



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: ) -> void

Instance Attribute Details

#chunk_typeenum_ChunkType (readonly)

Returns the value of attribute chunk_type.



141
142
143
# File 'sig/types.rbs', line 141

def chunk_type
  @chunk_type
end

#contentString (readonly)

Returns the value of attribute content.



140
141
142
# File 'sig/types.rbs', line 140

def content
  @content
end

#embeddingArray[Float]? (readonly)

Returns the value of attribute embedding.



142
143
144
# File 'sig/types.rbs', line 142

def embedding
  @embedding
end

#late_interactionMultiVectorEmbedding? (readonly)

Returns the value of attribute late_interaction.



144
145
146
# File 'sig/types.rbs', line 144

def late_interaction
  @late_interaction
end

#metadataChunkMetadata (readonly)

Returns the value of attribute metadata.



145
146
147
# File 'sig/types.rbs', line 145

def 
  
end

#sparse_embeddingSparseEmbedding? (readonly)

Returns the value of attribute sparse_embedding.



143
144
145
# File 'sig/types.rbs', line 143

def sparse_embedding
  @sparse_embedding
end