Class: Xberg::LateInteractionModelTypePreset
- Inherits:
-
Data
- Object
- Data
- Xberg::LateInteractionModelTypePreset
- Extended by:
- T::Sig
- Includes:
- LateInteractionModelType
- Defined in:
- lib/xberg/native.rb
Overview
Use a preset ColBERT model (recommended).
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name
2918 2919 2920 |
# File 'lib/xberg/native.rb', line 2918 def name @name end |
Class Method Details
.from_hash(hash) ⇒ Object
2934 2935 2936 |
# File 'lib/xberg/native.rb', line 2934 def self.from_hash(hash) new(name: hash[:name] || hash["name"]) end |
Instance Method Details
#custom? ⇒ Boolean
2928 |
# File 'lib/xberg/native.rb', line 2928 def custom? = false |
#plugin? ⇒ Boolean
2930 2931 2932 |
# File 'lib/xberg/native.rb', line 2930 def plugin? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#preset? ⇒ Boolean
2926 |
# File 'lib/xberg/native.rb', line 2926 def preset? = true |