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
452 453 454 |
# File 'lib/xberg/native.rb', line 452 def name @name end |
Class Method Details
.from_hash(hash) ⇒ Object
471 472 473 |
# File 'lib/xberg/native.rb', line 471 def self.from_hash(hash) new(name: hash[:name] || hash["name"]) end |
Instance Method Details
#custom? ⇒ Boolean
463 |
# File 'lib/xberg/native.rb', line 463 def custom? = false |
#llm? ⇒ Boolean
465 |
# File 'lib/xberg/native.rb', line 465 def llm? = false |
#plugin? ⇒ Boolean
467 468 469 |
# File 'lib/xberg/native.rb', line 467 def plugin? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#preset? ⇒ Boolean
461 |
# File 'lib/xberg/native.rb', line 461 def preset? = true |