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.
463 |
# File 'sig/types.rbs', line 463
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.
459 460 461 |
# File 'sig/types.rbs', line 459 def acceleration @acceleration end |
#batch_size ⇒ Integer?
Returns the value of attribute batch_size.
456 457 458 |
# File 'sig/types.rbs', line 456 def batch_size @batch_size end |
#cache_dir ⇒ String?
Returns the value of attribute cache_dir.
458 459 460 |
# File 'sig/types.rbs', line 458 def cache_dir @cache_dir end |
#max_embed_duration_secs ⇒ Integer?
Returns the value of attribute max_embed_duration_secs.
460 461 462 |
# File 'sig/types.rbs', line 460 def @max_embed_duration_secs end |
#max_sequence_length ⇒ Integer?
Returns the value of attribute max_sequence_length.
461 462 463 |
# File 'sig/types.rbs', line 461 def max_sequence_length @max_sequence_length end |
#model ⇒ EmbeddingModelType?
Returns the value of attribute model.
454 455 456 |
# File 'sig/types.rbs', line 454 def model @model end |
#normalize ⇒ Boolean?
Returns the value of attribute normalize.
455 456 457 |
# File 'sig/types.rbs', line 455 def normalize @normalize end |
#show_download_progress ⇒ Boolean?
Returns the value of attribute show_download_progress.
457 458 459 |
# File 'sig/types.rbs', line 457 def show_download_progress @show_download_progress end |
Class Method Details
.default ⇒ EmbeddingConfig
464 |
# File 'sig/types.rbs', line 464
def self.default: () -> EmbeddingConfig
|