Class: Xberg::SparseEmbeddingConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSparseEmbeddingConfig

Returns a new instance of SparseEmbeddingConfig.

Parameters:



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

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

Returns the value of attribute acceleration.

Returns:



2392
2393
2394
# File 'sig/types.rbs', line 2392

def acceleration
  @acceleration
end

#batch_sizeInteger (readonly)

Returns the value of attribute batch_size.

Returns:

  • (Integer)


2388
2389
2390
# File 'sig/types.rbs', line 2388

def batch_size
  @batch_size
end

#cache_dirString? (readonly)

Returns the value of attribute cache_dir.

Returns:

  • (String, nil)


2391
2392
2393
# File 'sig/types.rbs', line 2391

def cache_dir
  @cache_dir
end

#max_embed_duration_secsInteger? (readonly)

Returns the value of attribute max_embed_duration_secs.

Returns:

  • (Integer, nil)


2393
2394
2395
# File 'sig/types.rbs', line 2393

def max_embed_duration_secs
  @max_embed_duration_secs
end

#max_lengthInteger (readonly)

Returns the value of attribute max_length.

Returns:

  • (Integer)


2389
2390
2391
# File 'sig/types.rbs', line 2389

def max_length
  @max_length
end

#modelSparseEmbeddingModelType (readonly)

Returns the value of attribute model.



2387
2388
2389
# File 'sig/types.rbs', line 2387

def model
  @model
end

#show_download_progressBoolean (readonly)

Returns the value of attribute show_download_progress.

Returns:

  • (Boolean)


2390
2391
2392
# File 'sig/types.rbs', line 2390

def show_download_progress
  @show_download_progress
end