Class: LiterLlm::EmbeddingObject

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEmbeddingObject

Returns a new instance of EmbeddingObject.

Parameters:

  • object: (String)
  • embedding: (Array[Float])
  • index: (Integer)


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

def initialize: (object: String, embedding: Array[Float], index: Integer) -> void

Instance Attribute Details

#embeddingArray[Float] (readonly)

Returns the value of attribute embedding.

Returns:

  • (Array[Float])


286
287
288
# File 'sig/types.rbs', line 286

def embedding
  @embedding
end

#indexInteger (readonly)

Returns the value of attribute index.

Returns:

  • (Integer)


287
288
289
# File 'sig/types.rbs', line 287

def index
  @index
end

#objectString (readonly)

Returns the value of attribute object.

Returns:

  • (String)


285
286
287
# File 'sig/types.rbs', line 285

def object
  @object
end