Class: Xberg::EmbeddingConfig
- Inherits:
-
Object
- Object
- Xberg::EmbeddingConfig
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#acceleration ⇒ AccelerationConfig?
readonly
Returns the value of attribute acceleration.
-
#batch_size ⇒ Integer
readonly
Returns the value of attribute batch_size.
-
#cache_dir ⇒ String?
readonly
Returns the value of attribute cache_dir.
-
#max_embed_duration_secs ⇒ Integer?
readonly
Returns the value of attribute max_embed_duration_secs.
-
#max_sequence_length ⇒ Integer?
readonly
Returns the value of attribute max_sequence_length.
-
#model ⇒ EmbeddingModelType
readonly
Returns the value of attribute model.
-
#normalize ⇒ Boolean
readonly
Returns the value of attribute normalize.
-
#show_download_progress ⇒ Boolean
readonly
Returns the value of attribute show_download_progress.
Instance Method Summary collapse
-
#initialize ⇒ EmbeddingConfig
constructor
A new instance of EmbeddingConfig.
Constructor Details
#initialize ⇒ EmbeddingConfig
Returns a new instance of EmbeddingConfig.
779 |
# File 'sig/types.rbs', line 779 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? (readonly)
Returns the value of attribute acceleration.
775 776 777 |
# File 'sig/types.rbs', line 775 def acceleration @acceleration end |
#batch_size ⇒ Integer (readonly)
Returns the value of attribute batch_size.
772 773 774 |
# File 'sig/types.rbs', line 772 def batch_size @batch_size end |
#cache_dir ⇒ String? (readonly)
Returns the value of attribute cache_dir.
774 775 776 |
# File 'sig/types.rbs', line 774 def cache_dir @cache_dir end |
#max_embed_duration_secs ⇒ Integer? (readonly)
Returns the value of attribute max_embed_duration_secs.
776 777 778 |
# File 'sig/types.rbs', line 776 def end |
#max_sequence_length ⇒ Integer? (readonly)
Returns the value of attribute max_sequence_length.
777 778 779 |
# File 'sig/types.rbs', line 777 def max_sequence_length @max_sequence_length end |
#model ⇒ EmbeddingModelType (readonly)
Returns the value of attribute model.
770 771 772 |
# File 'sig/types.rbs', line 770 def model @model end |
#normalize ⇒ Boolean (readonly)
Returns the value of attribute normalize.
771 772 773 |
# File 'sig/types.rbs', line 771 def normalize @normalize end |
#show_download_progress ⇒ Boolean (readonly)
Returns the value of attribute show_download_progress.
773 774 775 |
# File 'sig/types.rbs', line 773 def show_download_progress @show_download_progress end |