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)
  • max_sequence_length: (Integer)


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

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

#accelerationAccelerationConfig?

Returns the value of attribute acceleration.

Returns:



460
461
462
# File 'sig/types.rbs', line 460

def acceleration
  @acceleration
end

#batch_sizeInteger?

Returns the value of attribute batch_size.

Returns:

  • (Integer, nil)


457
458
459
# File 'sig/types.rbs', line 457

def batch_size
  @batch_size
end

#cache_dirString?

Returns the value of attribute cache_dir.

Returns:

  • (String, nil)


459
460
461
# File 'sig/types.rbs', line 459

def cache_dir
  @cache_dir
end

#max_embed_duration_secsInteger?

Returns the value of attribute max_embed_duration_secs.

Returns:

  • (Integer, nil)


461
462
463
# File 'sig/types.rbs', line 461

def max_embed_duration_secs
  @max_embed_duration_secs
end

#max_sequence_lengthInteger?

Returns the value of attribute max_sequence_length.

Returns:

  • (Integer, nil)


462
463
464
# File 'sig/types.rbs', line 462

def max_sequence_length
  @max_sequence_length
end

#modelEmbeddingModelType?

Returns the value of attribute model.

Returns:



455
456
457
# File 'sig/types.rbs', line 455

def model
  @model
end

#normalizeBoolean?

Returns the value of attribute normalize.

Returns:

  • (Boolean, nil)


456
457
458
# File 'sig/types.rbs', line 456

def normalize
  @normalize
end

#show_download_progressBoolean?

Returns the value of attribute show_download_progress.

Returns:

  • (Boolean, nil)


458
459
460
# File 'sig/types.rbs', line 458

def show_download_progress
  @show_download_progress
end

Class Method Details

.defaultEmbeddingConfig

Returns:



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

def self.default: () -> EmbeddingConfig