Class: Xberg::RerankerConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRerankerConfig

Returns a new instance of RerankerConfig.

Parameters:

  • model: (RerankerModelType)
  • top_k: (Integer)
  • batch_size: (Integer)
  • show_download_progress: (Boolean)
  • cache_dir: (String)
  • acceleration: (AccelerationConfig)
  • max_rerank_duration_secs: (Integer)


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

def initialize: (?model: RerankerModelType, ?top_k: Integer, ?batch_size: Integer, ?show_download_progress: bool, ?cache_dir: String, ?acceleration: AccelerationConfig, ?max_rerank_duration_secs: Integer) -> void

Instance Attribute Details

#accelerationAccelerationConfig? (readonly)

Returns the value of attribute acceleration.

Returns:



2311
2312
2313
# File 'sig/types.rbs', line 2311

def acceleration
  @acceleration
end

#batch_sizeInteger (readonly)

Returns the value of attribute batch_size.

Returns:

  • (Integer)


2308
2309
2310
# File 'sig/types.rbs', line 2308

def batch_size
  @batch_size
end

#cache_dirString? (readonly)

Returns the value of attribute cache_dir.

Returns:

  • (String, nil)


2310
2311
2312
# File 'sig/types.rbs', line 2310

def cache_dir
  @cache_dir
end

#max_rerank_duration_secsInteger? (readonly)

Returns the value of attribute max_rerank_duration_secs.

Returns:

  • (Integer, nil)


2312
2313
2314
# File 'sig/types.rbs', line 2312

def max_rerank_duration_secs
  @max_rerank_duration_secs
end

#modelRerankerModelType (readonly)

Returns the value of attribute model.

Returns:



2306
2307
2308
# File 'sig/types.rbs', line 2306

def model
  @model
end

#show_download_progressBoolean (readonly)

Returns the value of attribute show_download_progress.

Returns:

  • (Boolean)


2309
2310
2311
# File 'sig/types.rbs', line 2309

def show_download_progress
  @show_download_progress
end

#top_kInteger? (readonly)

Returns the value of attribute top_k.

Returns:

  • (Integer, nil)


2307
2308
2309
# File 'sig/types.rbs', line 2307

def top_k
  @top_k
end