fix file path bug still compatiable bug in hnsw search
This commit is contained in:
@@ -151,7 +151,7 @@ class HNSWBackend(LeannBackendFactoryInterface):
|
||||
@staticmethod
|
||||
def searcher(index_path: str, **kwargs) -> LeannBackendSearcherInterface:
|
||||
path = Path(index_path)
|
||||
meta_path = path.parent / f"{path.stem}.hnsw.meta.json"
|
||||
meta_path = path.parent / f"{path.name}.meta.json"
|
||||
if not meta_path.exists():
|
||||
raise FileNotFoundError(f"Leann metadata file not found at {meta_path}. Cannot infer vector dimension for searcher.")
|
||||
|
||||
|
||||
Submodule packages/leann-backend-hnsw/third_party/faiss updated: b906ceeb8f...2365db59a7
Reference in New Issue
Block a user