Class: Xberg::EmbeddingConfig
- Inherits:
-
Object
- Object
- Xberg::EmbeddingConfig
- 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_embed_duration_secs ⇒ Integer?
Returns the value of attribute max_embed_duration_secs.
-
#max_sequence_length ⇒ Integer?
Returns the value of attribute max_sequence_length.
-
#model ⇒ EmbeddingModelType?
Returns the value of attribute model.
-
#normalize ⇒ Boolean?
Returns the value of attribute normalize.
-
#show_download_progress ⇒ Boolean?
Returns the value of attribute show_download_progress.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ EmbeddingConfig
constructor
A new instance of EmbeddingConfig.
Constructor Details
#initialize ⇒ EmbeddingConfig
Returns a new instance of EmbeddingConfig.
448 |
# File 'sig/types.rbs', line 448
def initialize: (?model: EmbeddingModelType, ?normalize: bool, ?batch_size: Integer, ?show_download_progress: bool, ?cache_dir: String, ?acceleration: AccelerationConfig, ?max_embed_duration_secs: Integer, ?max_sequence_length: Integer) -> void
|
Instance Attribute Details
#acceleration ⇒ AccelerationConfig?
Returns the value of attribute acceleration.
444 445 446 |
# File 'sig/types.rbs', line 444 def acceleration @acceleration end |
#batch_size ⇒ Integer?
Returns the value of attribute batch_size.
441 442 443 |
# File 'sig/types.rbs', line 441 def batch_size @batch_size end |
#cache_dir ⇒ String?
Returns the value of attribute cache_dir.
443 444 445 |
# File 'sig/types.rbs', line 443 def cache_dir @cache_dir end |
#max_embed_duration_secs ⇒ Integer?
Returns the value of attribute max_embed_duration_secs.
445 446 447 |
# File 'sig/types.rbs', line 445 def @max_embed_duration_secs end |
#max_sequence_length ⇒ Integer?
Returns the value of attribute max_sequence_length.
446 447 448 |
# File 'sig/types.rbs', line 446 def max_sequence_length @max_sequence_length end |
#model ⇒ EmbeddingModelType?
Returns the value of attribute model.
439 440 441 |
# File 'sig/types.rbs', line 439 def model @model end |
#normalize ⇒ Boolean?
Returns the value of attribute normalize.
440 441 442 |
# File 'sig/types.rbs', line 440 def normalize @normalize end |
#show_download_progress ⇒ Boolean?
Returns the value of attribute show_download_progress.
442 443 444 |
# File 'sig/types.rbs', line 442 def show_download_progress @show_download_progress end |
Class Method Details
.default ⇒ EmbeddingConfig
449 |
# File 'sig/types.rbs', line 449
def self.default: () -> EmbeddingConfig
|