Insert vectors into the backend.
(self, vectors: npt.NDArray)
| 155 | return list(zip(indices, distances)) |
| 156 | |
| 157 | def insert(self, vectors: npt.NDArray) -> None: |
| 158 | """Insert vectors into the backend.""" |
| 159 | if self.arguments.metric == "cosine": |
| 160 | vectors = normalize(vectors) |
| 161 | self.index.add(vectors) |
| 162 | |
| 163 | def delete(self, indices: list[int]) -> None: |
| 164 | """Delete vectors from the backend.""" |
nothing calls this directly
no test coverage detected