Class: Neighbor::Redis::SvsVamanaIndex

Inherits:
Index
  • Object
show all
Defined in:
lib/neighbor/redis/svs_vamana_index.rb

Instance Method Summary collapse

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,
  **options
)
  super(*args, **options)
  @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