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



268
269
270
# File 'lib/xberg/native.rb', line 268

def name
  @name
end

Class Method Details

.from_hash(hash) ⇒ Object



285
286
287
# File 'lib/xberg/native.rb', line 285

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

Instance Method Details

#custom?Boolean

Returns:

  • (Boolean)


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

def custom? = false

#plugin?Boolean

Returns:

  • (Boolean)


281
282
283
# File 'lib/xberg/native.rb', line 281

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

#preset?Boolean

Returns:

  • (Boolean)


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

def preset? = true