Load the vectors from a path.
(path: Path)
| 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: |