Class: Xberg::LateInteractionConfig

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLateInteractionConfig

Returns a new instance of LateInteractionConfig.

Parameters:

  • model: (LateInteractionModelType)
  • batch_size: (Integer)
  • max_length: (Integer)
  • query_max_length: (Integer)
  • show_download_progress: (Boolean)
  • cache_dir: (String)
  • acceleration: (AccelerationConfig)
  • max_embed_duration_secs: (Integer)


300
# File 'sig/types.rbs', line 300

def initialize: (?model: LateInteractionModelType, ?batch_size: Integer, ?max_length: Integer, ?query_max_length: Integer, ?show_download_progress: bool, ?cache_dir: String, ?acceleration: AccelerationConfig, ?max_embed_duration_secs: Integer) -> void

Instance Attribute Details

#accelerationAccelerationConfig?

Returns the value of attribute acceleration.

Returns:



297
298
299
# File 'sig/types.rbs', line 297

def acceleration
  @acceleration
end

#batch_sizeInteger?

Returns the value of attribute batch_size.

Returns:

  • (Integer, nil)


292
293
294
# File 'sig/types.rbs', line 292

def batch_size
  @batch_size
end

#cache_dirString?

Returns the value of attribute cache_dir.

Returns:

  • (String, nil)


296
297
298
# File 'sig/types.rbs', line 296

def cache_dir
  @cache_dir
end

#max_embed_duration_secsInteger?

Returns the value of attribute max_embed_duration_secs.

Returns:

  • (Integer, nil)


298
299
300
# File 'sig/types.rbs', line 298

def max_embed_duration_secs
  @max_embed_duration_secs
end

#max_lengthInteger?

Returns the value of attribute max_length.

Returns:

  • (Integer, nil)


293
294
295
# File 'sig/types.rbs', line 293

def max_length
  @max_length
end

#modelLateInteractionModelType?

Returns the value of attribute model.

Returns:



291
292
293
# File 'sig/types.rbs', line 291

def model
  @model
end

#query_max_lengthInteger?

Returns the value of attribute query_max_length.

Returns:

  • (Integer, nil)


294
295
296
# File 'sig/types.rbs', line 294

def query_max_length
  @query_max_length
end

#show_download_progressBoolean?

Returns the value of attribute show_download_progress.

Returns:

  • (Boolean, nil)


295
296
297
# File 'sig/types.rbs', line 295

def show_download_progress
  @show_download_progress
end

Class Method Details

.defaultLateInteractionConfig



301
# File 'sig/types.rbs', line 301

def self.default: () -> LateInteractionConfig