Class: Xberg::LateInteractionConfig

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

Instance Attribute 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)


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

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? (readonly)

Returns the value of attribute acceleration.

Returns:



1410
1411
1412
# File 'sig/types.rbs', line 1410

def acceleration
  @acceleration
end

#batch_sizeInteger (readonly)

Returns the value of attribute batch_size.

Returns:

  • (Integer)


1405
1406
1407
# File 'sig/types.rbs', line 1405

def batch_size
  @batch_size
end

#cache_dirString? (readonly)

Returns the value of attribute cache_dir.

Returns:

  • (String, nil)


1409
1410
1411
# File 'sig/types.rbs', line 1409

def cache_dir
  @cache_dir
end

#max_embed_duration_secsInteger? (readonly)

Returns the value of attribute max_embed_duration_secs.

Returns:

  • (Integer, nil)


1411
1412
1413
# File 'sig/types.rbs', line 1411

def max_embed_duration_secs
  @max_embed_duration_secs
end

#max_lengthInteger (readonly)

Returns the value of attribute max_length.

Returns:

  • (Integer)


1406
1407
1408
# File 'sig/types.rbs', line 1406

def max_length
  @max_length
end

#modelLateInteractionModelType (readonly)

Returns the value of attribute model.



1404
1405
1406
# File 'sig/types.rbs', line 1404

def model
  @model
end

#query_max_lengthInteger (readonly)

Returns the value of attribute query_max_length.

Returns:

  • (Integer)


1407
1408
1409
# File 'sig/types.rbs', line 1407

def query_max_length
  @query_max_length
end

#show_download_progressBoolean (readonly)

Returns the value of attribute show_download_progress.

Returns:

  • (Boolean)


1408
1409
1410
# File 'sig/types.rbs', line 1408

def show_download_progress
  @show_download_progress
end