| 150 | |
| 151 | public: |
| 152 | void |
| 153 | Build(py::array_t<float> vectors, py::array_t<int64_t> ids, size_t num_elements, size_t dim) { |
| 154 | auto dataset = vsag::Dataset::Make(); |
| 155 | dataset->Owner(false) |
| 156 | ->Dim(dim) |
| 157 | ->NumElements(num_elements) |
| 158 | ->Ids(ids.mutable_data()) |
| 159 | ->Float32Vectors(vectors.mutable_data()); |
| 160 | index_->Build(dataset); |
| 161 | } |
| 162 | |
| 163 | void |
| 164 | SparseBuild(py::array_t<uint32_t> index_pointers, |
no test coverage detected