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:



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

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:



518
519
520
# File 'sig/types.rbs', line 518

def acceleration
  @acceleration
end

#batch_sizeInteger?

Returns the value of attribute batch_size.

Returns:

  • (Integer, nil)


514
515
516
# File 'sig/types.rbs', line 514

def batch_size
  @batch_size
end

#cache_dirString?

Returns the value of attribute cache_dir.

Returns:

  • (String, nil)


517
518
519
# File 'sig/types.rbs', line 517

def cache_dir
  @cache_dir
end

#max_embed_duration_secsInteger?

Returns the value of attribute max_embed_duration_secs.

Returns:

  • (Integer, nil)


519
520
521
# File 'sig/types.rbs', line 519

def max_embed_duration_secs
  @max_embed_duration_secs
end

#max_lengthInteger?

Returns the value of attribute max_length.

Returns:

  • (Integer, nil)


515
516
517
# File 'sig/types.rbs', line 515

def max_length
  @max_length
end

#modelSparseEmbeddingModelType?

Returns the value of attribute model.

Returns:



513
514
515
# File 'sig/types.rbs', line 513

def model
  @model
end

#show_download_progressBoolean?

Returns the value of attribute show_download_progress.

Returns:

  • (Boolean, nil)


516
517
518
# File 'sig/types.rbs', line 516

def show_download_progress
  @show_download_progress
end

Class Method Details

.defaultSparseEmbeddingConfig



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

def self.default: () -> SparseEmbeddingConfig