Class: Xberg::EmbeddingModelTypePreset
- Inherits:
-
Data
- Object
- Data
- Xberg::EmbeddingModelTypePreset
- Extended by:
- T::Sig
- Includes:
- EmbeddingModelType
- Defined in:
- lib/xberg/native.rb
Overview
Use a preset model configuration (recommended)
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
432 433 434 |
# File 'lib/xberg/native.rb', line 432 def name @name end |
Class Method Details
.from_hash(hash) ⇒ Object
450 451 452 |
# File 'lib/xberg/native.rb', line 450 def self.from_hash(hash) new(name: hash[:name] || hash["name"]) end |
Instance Method Details
#custom? ⇒ Boolean
442 |
# File 'lib/xberg/native.rb', line 442 def custom? = false |
#llm? ⇒ Boolean
444 |
# File 'lib/xberg/native.rb', line 444 def llm? = false |
#plugin? ⇒ Boolean
446 447 448 |
# File 'lib/xberg/native.rb', line 446 def plugin? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#preset? ⇒ Boolean
440 |
# File 'lib/xberg/native.rb', line 440 def preset? = true |