Class: Xberg::Chunk

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeChunk

Returns a new instance of Chunk.

Parameters:



997
# File 'sig/types.rbs', line 997

def initialize: (content: String, chunk_type: ChunkType, ?embedding: Array[Float], metadata: ChunkMetadata) -> void

Instance Attribute Details

#chunk_typeChunkType (readonly)

Returns the value of attribute chunk_type.

Returns:



993
994
995
# File 'sig/types.rbs', line 993

def chunk_type
  @chunk_type
end

#contentString (readonly)

Returns the value of attribute content.

Returns:

  • (String)


992
993
994
# File 'sig/types.rbs', line 992

def content
  @content
end

#embeddingArray[Float] (readonly)

Returns the value of attribute embedding.

Returns:

  • (Array[Float])


994
995
996
# File 'sig/types.rbs', line 994

def embedding
  @embedding
end

#metadataChunkMetadata (readonly)

Returns the value of attribute metadata.

Returns:



995
996
997
# File 'sig/types.rbs', line 995

def 
  @metadata
end