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

Method insert

vicinity/backends/basic.py:224–228  ·  view source on GitHub ↗

Insert vectors into the vector space.

(self, vectors: npt.NDArray)

Source from the content-addressed store, hash-verified

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
231class EuclideanBasicBackend(BasicBackend):

Callers

nothing calls this directly

Calls 1

normalize_or_copyFunction · 0.90

Tested by

no test coverage detected