Class: Neighbor::Redis::SvsVamanaIndex
- Defined in:
- lib/neighbor/redis/svs_vamana_index.rb
Instance Method Summary collapse
-
#initialize(*args, compression: nil, construction_window_size: nil, graph_max_degree: nil, search_window_size: nil, epsilon: nil, training_threshold: nil, reduce: nil, **options) ⇒ SvsVamanaIndex
constructor
A new instance of SvsVamanaIndex.
Methods inherited from Index
#add, #add_all, #count, create, #create, #drop, #exists?, #find, #find_in_batches, #info, #member?, #metadata, #promote, #remove, #remove_all, #remove_metadata, #search, #search_id, #set_metadata
Constructor Details
#initialize(*args, compression: nil, construction_window_size: nil, graph_max_degree: nil, search_window_size: nil, epsilon: nil, training_threshold: nil, reduce: nil, **options) ⇒ SvsVamanaIndex
Returns a new instance of SvsVamanaIndex.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/neighbor/redis/svs_vamana_index.rb', line 4 def initialize( *args, compression: nil, construction_window_size: nil, graph_max_degree: nil, search_window_size: nil, epsilon: nil, training_threshold: nil, reduce: nil, ** ) super(*args, **) @algorithm = "SVS-VAMANA" @compression = compression @construction_window_size = construction_window_size @graph_max_degree = graph_max_degree @search_window_size = search_window_size @epsilon = epsilon @training_threshold = training_threshold @reduce = reduce end |