Class: Raif::ModelManifest::EmbeddingEntry

Inherits:
Struct
  • Object
show all
Defined in:
lib/raif/model_manifest.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#adapter_class_name ⇒ Object

Returns the value of attribute adapter_class_name

Returns:

  • (Object) —

    the current value of adapter_class_name



127
128
129
# File 'lib/raif/model_manifest.rb', line 127

def adapter_class_name
  @adapter_class_name
end

#api_name ⇒ Object

Returns the value of attribute api_name

Returns:

  • (Object) —

    the current value of api_name



127
128
129
# File 'lib/raif/model_manifest.rb', line 127

def api_name
  @api_name
end

#default_output_vector_size ⇒ Object

Returns the value of attribute default_output_vector_size

Returns:

  • (Object) —

    the current value of default_output_vector_size



127
128
129
# File 'lib/raif/model_manifest.rb', line 127

def default_output_vector_size
  @default_output_vector_size
end

#display_name ⇒ Object

Returns the value of attribute display_name

Returns:

  • (Object) —

    the current value of display_name



127
128
129
# File 'lib/raif/model_manifest.rb', line 127

def display_name
  @display_name
end

#input_per_million ⇒ Object

Returns the value of attribute input_per_million

Returns:

  • (Object) —

    the current value of input_per_million



127
128
129
# File 'lib/raif/model_manifest.rb', line 127

def input_per_million
  @input_per_million
end

#key ⇒ Object

Returns the value of attribute key

Returns:

  • (Object) —

    the current value of key



127
128
129
# File 'lib/raif/model_manifest.rb', line 127

def key
  @key
end

#lifecycle ⇒ Object

Returns the value of attribute lifecycle

Returns:

  • (Object) —

    the current value of lifecycle



127
128
129
# File 'lib/raif/model_manifest.rb', line 127

def lifecycle
  @lifecycle
end

#provider_name ⇒ Object

Returns the value of attribute provider_name

Returns:

  • (Object) —

    the current value of provider_name



127
128
129
# File 'lib/raif/model_manifest.rb', line 127

def provider_name
  @provider_name
end

#source_path ⇒ Object

Returns the value of attribute source_path

Returns:

  • (Object) —

    the current value of source_path



127
128
129
# File 'lib/raif/model_manifest.rb', line 127

def source_path
  @source_path
end

Instance Method Details

#active? ⇒ Boolean

Returns:

  • (Boolean)


134
# File 'lib/raif/model_manifest.rb', line 134

def active? = status == :active

#deprecated? ⇒ Boolean

Returns:

  • (Boolean)


135
# File 'lib/raif/model_manifest.rb', line 135

def deprecated? = status == :deprecated

#retired? ⇒ Boolean

Returns:

  • (Boolean)


136
# File 'lib/raif/model_manifest.rb', line 136

def retired? = status == :retired

#status ⇒ Object



133
# File 'lib/raif/model_manifest.rb', line 133

def status = lifecycle.fetch(:status)