Class: Xberg::LateInteractionModelTypePreset

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
LateInteractionModelType
Defined in:
lib/xberg/native.rb

Overview

Use a preset ColBERT model (recommended).

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



295
296
297
# File 'lib/xberg/native.rb', line 295

def name
  @name
end

Class Method Details

.from_hash(hash) ⇒ Object



312
313
314
# File 'lib/xberg/native.rb', line 312

def self.from_hash(hash)
  new(name: hash[:name] || hash["name"])
end

Instance Method Details

#custom?Boolean

Returns:

  • (Boolean)


306
# File 'lib/xberg/native.rb', line 306

def custom? = false

#plugin?Boolean

Returns:

  • (Boolean)


308
309
310
# File 'lib/xberg/native.rb', line 308

def plugin? = false
# @param hash [Hash] deserialized from the native extension
# @return [self]

#preset?Boolean

Returns:

  • (Boolean)


304
# File 'lib/xberg/native.rb', line 304

def preset? = true