Class: Xberg::LateInteractionModelTypeCustom
- Inherits:
-
Data
- Object
- Data
- Xberg::LateInteractionModelTypeCustom
- Extended by:
- T::Sig
- Includes:
- LateInteractionModelType
- Defined in:
- lib/xberg/native.rb
Overview
Use a custom ColBERT ONNX model from HuggingFace.
Instance Attribute Summary collapse
-
#additional_files ⇒ Object
readonly
Returns the value of attribute additional_files.
-
#max_length ⇒ Object
readonly
Returns the value of attribute max_length.
-
#model_file ⇒ Object
readonly
Returns the value of attribute model_file.
-
#model_id ⇒ Object
readonly
Returns the value of attribute model_id.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#additional_files ⇒ Object (readonly)
Returns the value of attribute additional_files
2939 2940 2941 |
# File 'lib/xberg/native.rb', line 2939 def additional_files @additional_files end |
#max_length ⇒ Object (readonly)
Returns the value of attribute max_length
2939 2940 2941 |
# File 'lib/xberg/native.rb', line 2939 def max_length @max_length end |
#model_file ⇒ Object (readonly)
Returns the value of attribute model_file
2939 2940 2941 |
# File 'lib/xberg/native.rb', line 2939 def model_file @model_file end |
#model_id ⇒ Object (readonly)
Returns the value of attribute model_id
2939 2940 2941 |
# File 'lib/xberg/native.rb', line 2939 def model_id @model_id end |
Class Method Details
.from_hash(hash) ⇒ Object
2965 2966 2967 2968 2969 2970 2971 2972 |
# File 'lib/xberg/native.rb', line 2965 def self.from_hash(hash) new( model_id: hash[:model_id] || hash["model_id"], model_file: hash[:model_file] || hash["model_file"], additional_files: hash[:additional_files] || hash["additional_files"], max_length: hash[:max_length] || hash["max_length"] ) end |
Instance Method Details
#custom? ⇒ Boolean
2959 |
# File 'lib/xberg/native.rb', line 2959 def custom? = true |
#plugin? ⇒ Boolean
2961 2962 2963 |
# File 'lib/xberg/native.rb', line 2961 def plugin? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#preset? ⇒ Boolean
2957 |
# File 'lib/xberg/native.rb', line 2957 def preset? = false |