File tree Expand file tree Collapse file tree
vectordb_bench/backend/clients/oss_opensearch Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -226,10 +226,9 @@ def index_param(self) -> dict:
226226 f"{ 'compression_level: ' + self .compression_level if self .on_disk else '' } "
227227 )
228228
229- method_config = {
230229 # JVector uses DiskANN algorithm
231230 if self .engine == OSSOS_Engine .jvector :
232- return {
231+ method_config = {
233232 "name" : "disk_ann" ,
234233 "engine" : self .engine .value ,
235234 "space_type" : self .parse_metric (),
@@ -238,17 +237,17 @@ def index_param(self) -> dict:
238237 "m" : self .M ,
239238 },
240239 }
241-
242- # FAISS and Lucene use HNSW
243- return {
244- "name" : "hnsw" ,
245- "engine" : resolved_engine .value ,
246- "space_type" : space_type ,
247- "parameters" : {
248- "ef_construction" : self .efConstruction ,
249- "m" : self .M ,
250- },
251- }
240+ else :
241+ # FAISS and Lucene use HNSW
242+ method_config = {
243+ "name" : "hnsw" ,
244+ "engine" : resolved_engine .value ,
245+ "space_type" : space_type ,
246+ "parameters" : {
247+ "ef_construction" : self .efConstruction ,
248+ "m" : self .M ,
249+ },
250+ }
252251
253252 # Add encoder for in-memory quantization
254253 if self .use_quant :
You can’t perform that action at this time.
0 commit comments