We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6dcb92 commit 04306acCopy full SHA for 04306ac
1 file changed
vicinity/backends/voyager.py
@@ -77,8 +77,8 @@ def load(cls: type[VoyagerBackend], base_path: Path) -> VoyagerBackend:
77
"""Load the vectors from a path."""
78
path = Path(base_path) / "index.bin"
79
arguments = VoyagerArgs.load(base_path / "arguments.json")
80
- with open(path, "rb"):
81
- index = Index.load(str(path))
+ with open(path, "rb") as f:
+ index = Index.load(f)
82
return cls(index, arguments=arguments)
83
84
def save(self, base_path: Path) -> None:
0 commit comments