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

Method __init__

vicinity/backends/basic.py:22–32  ·  view source on GitHub ↗

A basic vector store that just stores vectors. Note that we use kwargs in order to use this class as a mixin. :param vectors: The vectors to store. :param **kwargs: Additional arguments. These are passed on to the super class.

(self, *, vectors: npt.NDArray, **kwargs: Any)

Source from the content-addressed store, hash-verified

20
21class BasicVectorStore:
22 def __init__(self, *, vectors: npt.NDArray, **kwargs: Any) -> None:
23 """
24 A basic vector store that just stores vectors.
25
26 Note that we use kwargs in order to use this class as a mixin.
27
28 :param vectors: The vectors to store.
29 :param **kwargs: Additional arguments. These are passed on to the super class.
30 """
31 super().__init__(**kwargs)
32 self._vectors = vectors
33
34 def _update_precomputed_data(self) -> None:
35 """Update precomputed data based on the metric."""

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected