MCPcopy Create free account
hub / github.com/MinishLab/vicinity / _load_vectors

Method _load_vectors

vicinity/backends/basic.py:60–66  ·  view source on GitHub ↗

Load the vectors from a path.

(path: Path)

Source from the content-addressed store, hash-verified

58
59 @staticmethod
60 def _load_vectors(path: Path) -> npt.NDArray:
61 """Load the vectors from a path."""
62 path = path / "vectors.npy"
63 with open(path, "rb") as f:
64 vectors = np.load(f)
65
66 return vectors
67
68 @classmethod
69 def load(cls, path: Path) -> BasicVectorStore:

Callers 2

loadMethod · 0.80
loadMethod · 0.80

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected