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:



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

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:



953
954
955
# File 'sig/types.rbs', line 953

def chunk_type
  @chunk_type
end

#contentString (readonly)

Returns the value of attribute content.

Returns:

  • (String)


952
953
954
# File 'sig/types.rbs', line 952

def content
  @content
end

#embeddingArray[Float] (readonly)

Returns the value of attribute embedding.

Returns:

  • (Array[Float])


954
955
956
# File 'sig/types.rbs', line 954

def embedding
  @embedding
end

#metadataChunkMetadata (readonly)

Returns the value of attribute metadata.

Returns:



955
956
957
# File 'sig/types.rbs', line 955

def 
  @metadata
end