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)


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

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:



487
488
489
# File 'sig/types.rbs', line 487

def acceleration
  @acceleration
end

#batch_sizeInteger?

Returns the value of attribute batch_size.

Returns:

  • (Integer, nil)


484
485
486
# File 'sig/types.rbs', line 484

def batch_size
  @batch_size
end

#cache_dirString?

Returns the value of attribute cache_dir.

Returns:

  • (String, nil)


486
487
488
# File 'sig/types.rbs', line 486

def cache_dir
  @cache_dir
end

#max_embed_duration_secsInteger?

Returns the value of attribute max_embed_duration_secs.

Returns:

  • (Integer, nil)


488
489
490
# File 'sig/types.rbs', line 488

def max_embed_duration_secs
  @max_embed_duration_secs
end

#max_sequence_lengthInteger?

Returns the value of attribute max_sequence_length.

Returns:

  • (Integer, nil)


489
490
491
# File 'sig/types.rbs', line 489

def max_sequence_length
  @max_sequence_length
end

#modelEmbeddingModelType?

Returns the value of attribute model.

Returns:



482
483
484
# File 'sig/types.rbs', line 482

def model
  @model
end

#normalizeBoolean?

Returns the value of attribute normalize.

Returns:

  • (Boolean, nil)


483
484
485
# File 'sig/types.rbs', line 483

def normalize
  @normalize
end

#show_download_progressBoolean?

Returns the value of attribute show_download_progress.

Returns:

  • (Boolean, nil)


485
486
487
# File 'sig/types.rbs', line 485

def show_download_progress
  @show_download_progress
end

Class Method Details

.defaultEmbeddingConfig

Returns:



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

def self.default: () -> EmbeddingConfig