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:



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

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:



964
965
966
# File 'sig/types.rbs', line 964

def chunk_type
  @chunk_type
end

#contentString (readonly)

Returns the value of attribute content.

Returns:

  • (String)


963
964
965
# File 'sig/types.rbs', line 963

def content
  @content
end

#embeddingArray[Float] (readonly)

Returns the value of attribute embedding.

Returns:

  • (Array[Float])


965
966
967
# File 'sig/types.rbs', line 965

def embedding
  @embedding
end

#metadataChunkMetadata (readonly)

Returns the value of attribute metadata.

Returns:



966
967
968
# File 'sig/types.rbs', line 966

def 
  @metadata
end