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)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



1144
1145
1146
# File 'lib/xberg/native.rb', line 1144

def name
  @name
end

Class Method Details

.from_hash(hash) ⇒ Object



1162
1163
1164
# File 'lib/xberg/native.rb', line 1162

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

Instance Method Details

#custom?Boolean

Returns:

  • (Boolean)


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

def custom? = false

#llm?Boolean

Returns:

  • (Boolean)


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

def llm? = false

#plugin?Boolean

Returns:

  • (Boolean)


1158
1159
1160
# File 'lib/xberg/native.rb', line 1158

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

#preset?Boolean

Returns:

  • (Boolean)


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

def preset? = true