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:



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

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:



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

def chunk_type
  @chunk_type
end

#contentString (readonly)

Returns the value of attribute content.

Returns:

  • (String)


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

def content
  @content
end

#embeddingArray[Float] (readonly)

Returns the value of attribute embedding.

Returns:

  • (Array[Float])


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

def embedding
  @embedding
end

#metadataChunkMetadata (readonly)

Returns the value of attribute metadata.

Returns:



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

def 
  @metadata
end