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)
| 20 | |
| 21 | class 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.""" |