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)


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

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])


276
277
278
# File 'sig/types.rbs', line 276

def embedding
  @embedding
end

#indexInteger (readonly)

Returns the value of attribute index.

Returns:

  • (Integer)


277
278
279
# File 'sig/types.rbs', line 277

def index
  @index
end

#objectString (readonly)

Returns the value of attribute object.

Returns:

  • (String)


275
276
277
# File 'sig/types.rbs', line 275

def object
  @object
end