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:



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

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:



1023
1024
1025
# File 'sig/types.rbs', line 1023

def chunk_type
  @chunk_type
end

#contentString (readonly)

Returns the value of attribute content.

Returns:

  • (String)


1022
1023
1024
# File 'sig/types.rbs', line 1022

def content
  @content
end

#embeddingArray[Float] (readonly)

Returns the value of attribute embedding.

Returns:

  • (Array[Float])


1024
1025
1026
# File 'sig/types.rbs', line 1024

def embedding
  @embedding
end

#metadataChunkMetadata (readonly)

Returns the value of attribute metadata.

Returns:



1025
1026
1027
# File 'sig/types.rbs', line 1025

def 
  @metadata
end