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
572 573 574 |
# File 'lib/xberg/native.rb', line 572 def name @name end |
Class Method Details
.from_hash(hash) ⇒ Object
591 592 593 |
# File 'lib/xberg/native.rb', line 591 def self.from_hash(hash) new(name: hash[:name] || hash["name"]) end |
Instance Method Details
#custom? ⇒ Boolean
583 |
# File 'lib/xberg/native.rb', line 583 def custom? = false |
#llm? ⇒ Boolean
585 |
# File 'lib/xberg/native.rb', line 585 def llm? = false |
#plugin? ⇒ Boolean
587 588 589 |
# File 'lib/xberg/native.rb', line 587 def plugin? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#preset? ⇒ Boolean
581 |
# File 'lib/xberg/native.rb', line 581 def preset? = true |