Class: Xberg::SparseEmbeddingConfig

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSparseEmbeddingConfig

Returns a new instance of SparseEmbeddingConfig.

Parameters:



549
# File 'sig/types.rbs', line 549

def initialize: (?model: SparseEmbeddingModelType, ?batch_size: Integer, ?max_length: Integer, ?show_download_progress: bool, ?cache_dir: String, ?acceleration: AccelerationConfig, ?max_embed_duration_secs: Integer) -> void

Instance Attribute Details

#accelerationAccelerationConfig?

Returns the value of attribute acceleration.

Returns:



546
547
548
# File 'sig/types.rbs', line 546

def acceleration
  @acceleration
end

#batch_sizeInteger?

Returns the value of attribute batch_size.

Returns:

  • (Integer, nil)


542
543
544
# File 'sig/types.rbs', line 542

def batch_size
  @batch_size
end

#cache_dirString?

Returns the value of attribute cache_dir.

Returns:

  • (String, nil)


545
546
547
# File 'sig/types.rbs', line 545

def cache_dir
  @cache_dir
end

#max_embed_duration_secsInteger?

Returns the value of attribute max_embed_duration_secs.

Returns:

  • (Integer, nil)


547
548
549
# File 'sig/types.rbs', line 547

def max_embed_duration_secs
  @max_embed_duration_secs
end

#max_lengthInteger?

Returns the value of attribute max_length.

Returns:

  • (Integer, nil)


543
544
545
# File 'sig/types.rbs', line 543

def max_length
  @max_length
end

#modelSparseEmbeddingModelType?

Returns the value of attribute model.

Returns:



541
542
543
# File 'sig/types.rbs', line 541

def model
  @model
end

#show_download_progressBoolean?

Returns the value of attribute show_download_progress.

Returns:

  • (Boolean, nil)


544
545
546
# File 'sig/types.rbs', line 544

def show_download_progress
  @show_download_progress
end

Class Method Details

.defaultSparseEmbeddingConfig



550
# File 'sig/types.rbs', line 550

def self.default: () -> SparseEmbeddingConfig