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.
-
#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.
446 |
# File 'sig/types.rbs', line 446
def initialize: (?model: EmbeddingModelType, ?normalize: bool, ?batch_size: Integer, ?show_download_progress: bool, ?cache_dir: String, ?acceleration: AccelerationConfig, ?max_embed_duration_secs: Integer) -> void
|
Instance Attribute Details
#acceleration ⇒ AccelerationConfig?
Returns the value of attribute acceleration.
443 444 445 |
# File 'sig/types.rbs', line 443 def acceleration @acceleration end |
#batch_size ⇒ Integer?
Returns the value of attribute batch_size.
440 441 442 |
# File 'sig/types.rbs', line 440 def batch_size @batch_size end |
#cache_dir ⇒ String?
Returns the value of attribute cache_dir.
442 443 444 |
# File 'sig/types.rbs', line 442 def cache_dir @cache_dir end |
#max_embed_duration_secs ⇒ Integer?
Returns the value of attribute max_embed_duration_secs.
444 445 446 |
# File 'sig/types.rbs', line 444 def @max_embed_duration_secs end |
#model ⇒ EmbeddingModelType?
Returns the value of attribute model.
438 439 440 |
# File 'sig/types.rbs', line 438 def model @model end |
#normalize ⇒ Boolean?
Returns the value of attribute normalize.
439 440 441 |
# File 'sig/types.rbs', line 439 def normalize @normalize end |
#show_download_progress ⇒ Boolean?
Returns the value of attribute show_download_progress.
441 442 443 |
# File 'sig/types.rbs', line 441 def show_download_progress @show_download_progress end |
Class Method Details
.default ⇒ EmbeddingConfig
447 |
# File 'sig/types.rbs', line 447
def self.default: () -> EmbeddingConfig
|