MCPcopy Create free account
hub / github.com/antgroup/vsag / Build

Method Build

python_bindings/binding.cpp:152–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150
151public:
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,

Callers 1

SparseBuildMethod · 0.45

Calls 5

Float32VectorsMethod · 0.45
IdsMethod · 0.45
NumElementsMethod · 0.45
DimMethod · 0.45
OwnerMethod · 0.45

Tested by

no test coverage detected