Update demo/modules/search.py
Browse files- 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):
|