Class: Xberg::SparseEmbeddingModelTypePlugin
- Inherits:
-
Data
- Object
- Data
- Xberg::SparseEmbeddingModelTypePlugin
- Extended by:
- T::Sig
- Includes:
- SparseEmbeddingModelType
- Defined in:
- lib/xberg/native.rb
Overview
In-process sparse-embedding backend registered via the plugin system.
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
964 965 966 |
# File 'lib/xberg/native.rb', line 964 def name @name end |
Class Method Details
.from_hash(hash) ⇒ Object
981 982 983 |
# File 'lib/xberg/native.rb', line 981 def self.from_hash(hash) new(name: hash[:name] || hash["name"]) end |
Instance Method Details
#custom? ⇒ Boolean
975 |
# File 'lib/xberg/native.rb', line 975 def custom? = false |
#plugin? ⇒ Boolean
977 978 979 |
# File 'lib/xberg/native.rb', line 977 def plugin? = true # @param hash [Hash] deserialized from the native extension # @return [self] |
#preset? ⇒ Boolean
973 |
# File 'lib/xberg/native.rb', line 973 def preset? = false |