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)


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

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:



273
274
275
# File 'sig/types.rbs', line 273

def acceleration
  @acceleration
end

#batch_sizeInteger?

Returns the value of attribute batch_size.

Returns:

  • (Integer, nil)


268
269
270
# File 'sig/types.rbs', line 268

def batch_size
  @batch_size
end

#cache_dirString?

Returns the value of attribute cache_dir.

Returns:

  • (String, nil)


272
273
274
# File 'sig/types.rbs', line 272

def cache_dir
  @cache_dir
end

#max_embed_duration_secsInteger?

Returns the value of attribute max_embed_duration_secs.

Returns:

  • (Integer, nil)


274
275
276
# File 'sig/types.rbs', line 274

def max_embed_duration_secs
  @max_embed_duration_secs
end

#max_lengthInteger?

Returns the value of attribute max_length.

Returns:

  • (Integer, nil)


269
270
271
# File 'sig/types.rbs', line 269

def max_length
  @max_length
end

#modelLateInteractionModelType?

Returns the value of attribute model.

Returns:



267
268
269
# File 'sig/types.rbs', line 267

def model
  @model
end

#query_max_lengthInteger?

Returns the value of attribute query_max_length.

Returns:

  • (Integer, nil)


270
271
272
# File 'sig/types.rbs', line 270

def query_max_length
  @query_max_length
end

#show_download_progressBoolean?

Returns the value of attribute show_download_progress.

Returns:

  • (Boolean, nil)


271
272
273
# File 'sig/types.rbs', line 271

def show_download_progress
  @show_download_progress
end

Class Method Details

.defaultLateInteractionConfig



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

def self.default: () -> LateInteractionConfig