Class: Xberg::EmbeddingConfig

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

Instance Attribute 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)


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

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? (readonly)

Returns the value of attribute acceleration.

Returns:



775
776
777
# File 'sig/types.rbs', line 775

def acceleration
  @acceleration
end

#batch_sizeInteger (readonly)

Returns the value of attribute batch_size.

Returns:

  • (Integer)


772
773
774
# File 'sig/types.rbs', line 772

def batch_size
  @batch_size
end

#cache_dirString? (readonly)

Returns the value of attribute cache_dir.

Returns:

  • (String, nil)


774
775
776
# File 'sig/types.rbs', line 774

def cache_dir
  @cache_dir
end

#max_embed_duration_secsInteger? (readonly)

Returns the value of attribute max_embed_duration_secs.

Returns:

  • (Integer, nil)


776
777
778
# File 'sig/types.rbs', line 776

def max_embed_duration_secs
  @max_embed_duration_secs
end

#max_sequence_lengthInteger? (readonly)

Returns the value of attribute max_sequence_length.

Returns:

  • (Integer, nil)


777
778
779
# File 'sig/types.rbs', line 777

def max_sequence_length
  @max_sequence_length
end

#modelEmbeddingModelType (readonly)

Returns the value of attribute model.

Returns:



770
771
772
# File 'sig/types.rbs', line 770

def model
  @model
end

#normalizeBoolean (readonly)

Returns the value of attribute normalize.

Returns:

  • (Boolean)


771
772
773
# File 'sig/types.rbs', line 771

def normalize
  @normalize
end

#show_download_progressBoolean (readonly)

Returns the value of attribute show_download_progress.

Returns:

  • (Boolean)


773
774
775
# File 'sig/types.rbs', line 773

def show_download_progress
  @show_download_progress
end