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

Method BuildIndex

tests/python/test_base.py:31–35  ·  view source on GitHub ↗

Build index for testing

(index: pyvsag.Index, dataset: TestDataset)

Source from the content-addressed store, hash-verified

29
30 @staticmethod
31 def BuildIndex(index: pyvsag.Index, dataset: TestDataset):
32 """Build index for testing"""
33 index.build(
34 dataset.base_vectors, dataset.ids, dataset.num_elements, dataset.dim
35 )
36
37 @staticmethod
38 def SaveIndex(index: pyvsag.Index, file_path: str):

Callers 5

test_buildMethod · 0.80
test_buildMethod · 0.80
test_buildMethod · 0.80
test_base.pyFile · 0.80
test_buildMethod · 0.80

Calls 1

buildMethod · 0.45

Tested by

no test coverage detected