From 179927ed3556d1d85dff3b96889eaf5ded85fe68 Mon Sep 17 00:00:00 2001 From: Xiangyu Wang Date: Tue, 7 Nov 2023 01:45:59 +0800 Subject: [PATCH] correct index_path_prefix in __init__ function of static disk index (#483) --- python/src/_static_disk_index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/_static_disk_index.py b/python/src/_static_disk_index.py index 769099d8f..27300e8b3 100644 --- a/python/src/_static_disk_index.py +++ b/python/src/_static_disk_index.py @@ -101,7 +101,7 @@ def __init__( _index = _native_dap.StaticDiskFloatIndex self._index = _index( distance_metric=dap_metric, - index_path_prefix=os.path.join(index_directory, index_prefix), + index_path_prefix=index_prefix, num_threads=num_threads, num_nodes_to_cache=num_nodes_to_cache, cache_mechanism=cache_mechanism,