add workaround code
This commit is contained in:
@@ -143,6 +143,9 @@ class HNSWBuilder(LeannBackendBuilderInterface):
|
||||
if success:
|
||||
print("✅ CSR conversion successful.")
|
||||
import shutil
|
||||
# rename index_file to index_file.old
|
||||
index_file_old = index_file.with_suffix(".old")
|
||||
shutil.move(str(index_file), str(index_file_old))
|
||||
shutil.move(str(csr_temp_file), str(index_file))
|
||||
print(f"INFO: Replaced original index with {mode_str} version at '{index_file}'")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user