Skip to content

Commit 04306ac

Browse files
committed
Added fix for voyager issue
1 parent b6dcb92 commit 04306ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

vicinity/backends/voyager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ def load(cls: type[VoyagerBackend], base_path: Path) -> VoyagerBackend:
7777
"""Load the vectors from a path."""
7878
path = Path(base_path) / "index.bin"
7979
arguments = VoyagerArgs.load(base_path / "arguments.json")
80-
with open(path, "rb"):
81-
index = Index.load(str(path))
80+
with open(path, "rb") as f:
81+
index = Index.load(f)
8282
return cls(index, arguments=arguments)
8383

8484
def save(self, base_path: Path) -> None:

0 commit comments

Comments
 (0)