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

Method LoadIndex

tests/python/test_base.py:43–45  ·  view source on GitHub ↗

Load index for testing

(index: pyvsag.Index, file_path: str)

Source from the content-addressed store, hash-verified

41
42 @staticmethod
43 def LoadIndex(index: pyvsag.Index, file_path: str):
44 """Load index for testing"""
45 index.load(file_path)
46
47 @staticmethod
48 def CalRecall(results: np.ndarray, gt_ids: np.ndarray, topk: int = 10) -> float:

Callers 4

test_load_saveMethod · 0.45
test_load_saveMethod · 0.45
test_load_saveMethod · 0.45
test_load_saveMethod · 0.45

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected