Insert vectors into the vector space.
(self, vectors: npt.NDArray)
| 222 | return 1 - sim |
| 223 | |
| 224 | def insert(self, vectors: npt.NDArray) -> None: |
| 225 | """Insert vectors into the vector space.""" |
| 226 | # Normalize the new vectors |
| 227 | _norm_vectors = normalize_or_copy(vectors) |
| 228 | self._vectors = np.vstack([self._vectors, _norm_vectors]) |
| 229 | |
| 230 | |
| 231 | class EuclideanBasicBackend(BasicBackend): |
nothing calls this directly
no test coverage detected