add
API Definition
def add(n: int, input: numpy.ndarray, consecutive: int, level: int) -> int
Function
Build a graph index.
Parameters
Parameter |
Description |
Data Type |
Value Range |
|---|---|---|---|
n |
Data volume. |
int |
≥ 1 It is recommended that the value be less than 1 billion. |
input |
Data. |
numpy.ndarray |
The value cannot be null. The expected length is n × K_features (data volume × feature dimension). |
consecutive |
Block size. |
int |
[1, 31] |
level |
Quantization level. |
int |
[0, 5]
|
Return Value
Data Type |
Description |
|---|---|
int |
The API is encapsulated by the underlying C++ API, which controls the exception throwing. |
Parent topic: Python