Class: MistralModels::Embedding
- Inherits:
-
Object
- Object
- MistralModels::Embedding
- Defined in:
- lib/mistral_rb/response_models.rb
Instance Attribute Summary collapse
-
#embedding ⇒ Object
readonly
Returns the value of attribute embedding.
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(embedding_hash) ⇒ Embedding
constructor
A new instance of Embedding.
Constructor Details
#initialize(embedding_hash) ⇒ Embedding
Returns a new instance of Embedding.
48 49 50 51 52 |
# File 'lib/mistral_rb/response_models.rb', line 48 def initialize() @object = ["object"] @embedding = ["embedding"] @index = ["index"] end |
Instance Attribute Details
#embedding ⇒ Object (readonly)
Returns the value of attribute embedding.
46 47 48 |
# File 'lib/mistral_rb/response_models.rb', line 46 def @embedding end |
#index ⇒ Object (readonly)
Returns the value of attribute index.
46 47 48 |
# File 'lib/mistral_rb/response_models.rb', line 46 def index @index end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
46 47 48 |
# File 'lib/mistral_rb/response_models.rb', line 46 def object @object end |