LTEnjoy commited on
Commit
43977ca
·
verified ·
1 Parent(s): 42e763d

Update demo/modules/search.py

Browse files
Files changed (1) hide show
  1. demo/modules/search.py +3 -2
demo/modules/search.py CHANGED
@@ -206,8 +206,9 @@ def check_index_ivf(index_type: str, subsection_type: str = None) -> bool:
206
  elif index_type == "text":
207
  index = all_index["text"][db][subsection_type]["index"]
208
 
209
- nprobe_visible = True if hasattr(index, "nprobe") else False
210
- return nprobe_visible
 
211
 
212
 
213
  def change_db_type(query_type: str, subsection_type: str, db_type: str):
 
206
  elif index_type == "text":
207
  index = all_index["text"][db][subsection_type]["index"]
208
 
209
+ # nprobe_visible = True if hasattr(index, "nprobe") else False
210
+ # return nprobe_visible
211
+ return False
212
 
213
 
214
  def change_db_type(query_type: str, subsection_type: str, db_type: str):