Class: Xberg::EmbeddingConfig

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEmbeddingConfig

Returns a new instance of EmbeddingConfig.

Parameters:

  • model: (EmbeddingModelType)
  • normalize: (Boolean)
  • batch_size: (Integer)
  • show_download_progress: (Boolean)
  • cache_dir: (String)
  • acceleration: (AccelerationConfig)
  • max_embed_duration_secs: (Integer)


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

#accelerationAccelerationConfig?

Returns the value of attribute acceleration.

Returns:



443
444
445
# File 'sig/types.rbs', line 443

def acceleration
  @acceleration
end

#batch_sizeInteger?

Returns the value of attribute batch_size.

Returns:

  • (Integer, nil)


440
441
442
# File 'sig/types.rbs', line 440

def batch_size
  @batch_size
end

#cache_dirString?

Returns the value of attribute cache_dir.

Returns:

  • (String, nil)


442
443
444
# File 'sig/types.rbs', line 442

def cache_dir
  @cache_dir
end

#max_embed_duration_secsInteger?

Returns the value of attribute max_embed_duration_secs.

Returns:

  • (Integer, nil)


444
445
446
# File 'sig/types.rbs', line 444

def max_embed_duration_secs
  @max_embed_duration_secs
end

#modelEmbeddingModelType?

Returns the value of attribute model.

Returns:



438
439
440
# File 'sig/types.rbs', line 438

def model
  @model
end

#normalizeBoolean?

Returns the value of attribute normalize.

Returns:

  • (Boolean, nil)


439
440
441
# File 'sig/types.rbs', line 439

def normalize
  @normalize
end

#show_download_progressBoolean?

Returns the value of attribute show_download_progress.

Returns:

  • (Boolean, nil)


441
442
443
# File 'sig/types.rbs', line 441

def show_download_progress
  @show_download_progress
end

Class Method Details

.defaultEmbeddingConfig

Returns:



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

def self.default: () -> EmbeddingConfig