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
647 648 649 |
# File 'lib/xberg/native.rb', line 647 def name @name end |
Class Method Details
.from_hash(hash) ⇒ Object
666 667 668 |
# File 'lib/xberg/native.rb', line 666 def self.from_hash(hash) new(name: hash[:name] || hash["name"]) end |
Instance Method Details
#custom? ⇒ Boolean
658 |
# File 'lib/xberg/native.rb', line 658 def custom? = false |
#llm? ⇒ Boolean
660 |
# File 'lib/xberg/native.rb', line 660 def llm? = false |
#plugin? ⇒ Boolean
662 663 664 |
# File 'lib/xberg/native.rb', line 662 def plugin? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#preset? ⇒ Boolean
656 |
# File 'lib/xberg/native.rb', line 656 def preset? = true |