Class: Xberg::EmbeddingModelTypePreset

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
EmbeddingModelType
Defined in:
lib/xberg/native.rb

Overview

Use a preset model configuration (recommended)

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



458
459
460
# File 'lib/xberg/native.rb', line 458

def name
  @name
end

Class Method Details

.from_hash(hash) ⇒ Object



477
478
479
# File 'lib/xberg/native.rb', line 477

def self.from_hash(hash)
  new(name: hash[:name] || hash["name"])
end

Instance Method Details

#custom?Boolean

Returns:

  • (Boolean)


469
# File 'lib/xberg/native.rb', line 469

def custom? = false

#llm?Boolean

Returns:

  • (Boolean)


471
# File 'lib/xberg/native.rb', line 471

def llm? = false

#plugin?Boolean

Returns:

  • (Boolean)


473
474
475
# File 'lib/xberg/native.rb', line 473

def plugin? = false
# @param hash [Hash] deserialized from the native extension
# @return [self]

#preset?Boolean

Returns:

  • (Boolean)


467
# File 'lib/xberg/native.rb', line 467

def preset? = true