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