Class: Xberg::RerankerConfig
- Inherits:
-
Object
- Object
- Xberg::RerankerConfig
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#acceleration ⇒ AccelerationConfig?
Returns the value of attribute acceleration.
-
#batch_size ⇒ Integer?
Returns the value of attribute batch_size.
-
#cache_dir ⇒ String?
Returns the value of attribute cache_dir.
-
#max_rerank_duration_secs ⇒ Integer?
Returns the value of attribute max_rerank_duration_secs.
-
#model ⇒ RerankerModelType?
Returns the value of attribute model.
-
#show_download_progress ⇒ Boolean?
Returns the value of attribute show_download_progress.
-
#top_k ⇒ Integer?
Returns the value of attribute top_k.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ RerankerConfig
constructor
A new instance of RerankerConfig.
Constructor Details
#initialize ⇒ RerankerConfig
Returns a new instance of RerankerConfig.
491 |
# File 'sig/types.rbs', line 491
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
#acceleration ⇒ AccelerationConfig?
Returns the value of attribute acceleration.
488 489 490 |
# File 'sig/types.rbs', line 488 def acceleration @acceleration end |
#batch_size ⇒ Integer?
Returns the value of attribute batch_size.
485 486 487 |
# File 'sig/types.rbs', line 485 def batch_size @batch_size end |
#cache_dir ⇒ String?
Returns the value of attribute cache_dir.
487 488 489 |
# File 'sig/types.rbs', line 487 def cache_dir @cache_dir end |
#max_rerank_duration_secs ⇒ Integer?
Returns the value of attribute max_rerank_duration_secs.
489 490 491 |
# File 'sig/types.rbs', line 489 def max_rerank_duration_secs @max_rerank_duration_secs end |
#model ⇒ RerankerModelType?
Returns the value of attribute model.
483 484 485 |
# File 'sig/types.rbs', line 483 def model @model end |
#show_download_progress ⇒ Boolean?
Returns the value of attribute show_download_progress.
486 487 488 |
# File 'sig/types.rbs', line 486 def show_download_progress @show_download_progress end |
#top_k ⇒ Integer?
Returns the value of attribute top_k.
484 485 486 |
# File 'sig/types.rbs', line 484 def top_k @top_k end |
Class Method Details
.default ⇒ RerankerConfig
492 |
# File 'sig/types.rbs', line 492
def self.default: () -> RerankerConfig
|